Revision ab63767e src/onedb/onedb.rb

View differences:

src/onedb/onedb.rb
71 71
    end
72 72

  
73 73
    def backup(bck_file, ops, backend=@backend)
74
        bck_file = backend.bck_file if bck_file.nil?
74
        bck_file = backend.bck_file(ops[:federated]) if bck_file.nil?
75 75

  
76 76
        if !ops[:force] && File.exists?(bck_file)
77 77
            raise "File #{bck_file} exists, backup aborted. Use -f " <<
78 78
                  "to overwrite."
79 79
        end
80 80

  
81
        backend.backup(bck_file)
81
        backend.backup(bck_file, ops[:federated])
82 82
        return 0
83 83
    end
84 84

  
......
89 89

  
90 90
        one_not_running
91 91

  
92
        backend.restore(bck_file, ops[:force])
92
        backend.restore(bck_file, ops[:force], ops[:federated])
93 93
        return 0
94 94
    end
95 95

  

Also available in: Unified diff