basnijholt/rsync-time-machine.py

Log directory $HOME/.rsync-time-backup is empty

jesusguevarautomotriz opened this issue · 3 comments

I got a message: "Backup completed without errors". (690GB). But when I want to check the log-file to take a look at what it has backed up or detect some "error", the $HOME/.rsync-time-backup directory is empty.
Screenshot 2023-06-09 002914

Thanks for reporting.

edit: turns out this is not a bug, see next comment.

Actually, it turns out the default for auto_delete_log=True:

auto_delete_log=True,

This means that when there are no errors, the log will automatically be deleted.

This did highlight another error, auto_delete_log should be set to False when specifying --log-dir, fixed in #24.

So whenever an error occurred or when using --log-dir the log files are preserved. When not using --log-dir and no errors, the log file will be deleted.