1
0
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:
Carlos Martín 2015-09-08 16:30:23 +02:00
parent 475e163ad1
commit d12c81e679

View File

@ -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."