mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-27 10:50:10 +03:00
Bug #3970: Fix automatic onedb backup file name
This commit is contained in:
parent
475e163ad1
commit
d12c81e679
@ -69,6 +69,8 @@ class OneDB
|
||||
end
|
||||
|
||||
def backup(bck_file, ops, backend=@backend)
|
||||
bck_file = backend.bck_file if bck_file.nil?
|
||||
|
||||
if !ops[:force] && File.exists?(bck_file)
|
||||
raise "File #{bck_file} exists, backup aborted. Use -f " <<
|
||||
"to overwrite."
|
||||
|
Loading…
x
Reference in New Issue
Block a user