Skip to content

Commit

Permalink
fix: Fetch latest files filtered by names (frappe#11056)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza authored Jul 23, 2020
1 parent c9dbf9c commit 0472800
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frappe/utils/backups.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ def get_recent_backup(self, older_than):
this_file = cstr(this_file)
this_file_path = os.path.join(get_backup_path(), this_file)
if not is_file_old(this_file_path, older_than):
if "_private_files" in this_file_path:
if "-private-files" in this_file_path:
backup_path_private_files = this_file_path
elif "_files" in this_file_path:
elif "-files" in this_file_path:
backup_path_files = this_file_path
elif "_database" in this_file_path:
elif "-database" in this_file_path:
backup_path_db = this_file_path
elif "site_config" in this_file_path:
site_config_backup_path = this_file_path
Expand Down

0 comments on commit 0472800

Please sign in to comment.