[minor] fix backup

This commit is contained in:
Pratik Vyas 2013-10-09 11:52:01 +05:30
parent a8c96957bb
commit 918a388bef

View file

@ -43,7 +43,7 @@ class BackupGenerator:
last_db, last_file = self.get_recent_backup(older_than)
if not (self.backup_path_files and self.backup_path_db):
self.set_backup_file_name()
if not last_db and last_file:
if not last_db and not last_file:
self.take_dump()
if not ignore_files:
self.zip_files()