mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-10 06:24:35 +09:00
onedb, if the backup already exists stop the upgrade process
This commit is contained in:
1 parent
6d139a9b75
commit
ffce8af029
1 file changed
+1
-1
+1
-1
@@ -51,7 +51,7 @@ class OneDB
|
||||
|
||||
if !ops[:force] && File.exists?(bck_file)
|
||||
puts "File #{bck_file} exists, backup aborted. Use -f to overwrite."
|
||||
return -1
|
||||
raise
|
||||
end
|
||||
|
||||
@backend.backup(bck_file)
|
||||
|
||||
Reference in new issue
Block a user