Skip to content

Commit

Permalink
Save include and excludes for tarball method
Browse files Browse the repository at this point in the history
- Closes #52
- Save included files and directories as a list
- Save excluded files and directories as a list
  • Loading branch information
hsbasu committed Nov 6, 2024
1 parent 909ee62 commit c6f45fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/LeaptimeManager/dataBackup.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def finish_tar_backup(self):
class UserData():
"""
GUI class for backing up and restoring user data
using rsync
using tarball or rsync
"""
def __init__(self, builder, window, stack, edit_button, browse_button, remove_button) -> None:
module_logger.info(_("Initializing user data backup class..."))
Expand Down Expand Up @@ -596,7 +596,9 @@ def backup_data(self):
"filename": os.path.basename(self.tarfilename),
"created" : self.timestamp,
"repeat" : self.repeat,
"comment" : self.backup_desc
"comment" : self.backup_desc,
"exclude" : (self.excluded_dirs, self.excluded_files),
"include" : (self.included_dirs, self.included_files),
}

self.data_db_list.append(data_backup_dict)
Expand Down

0 comments on commit c6f45fe

Please sign in to comment.