Revision d12c81e6

View differences:

src/onedb/onedb.rb
69 69
    end
70 70

  
71 71
    def backup(bck_file, ops, backend=@backend)
72
        bck_file = backend.bck_file if bck_file.nil?
73

  
72 74
        if !ops[:force] && File.exists?(bck_file)
73 75
            raise "File #{bck_file} exists, backup aborted. Use -f " <<
74 76
                  "to overwrite."

Also available in: Unified diff