Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log file name does not match snapshot name #255

Open
ehoffman2 opened this issue Dec 28, 2022 · 0 comments
Open

Log file name does not match snapshot name #255

ehoffman2 opened this issue Dec 28, 2022 · 0 comments

Comments

@ehoffman2
Copy link

ehoffman2 commented Dec 28, 2022

When creating snapshot, the name is derived from current date/time.

NOW=$(date +"%Y-%m-%d-%H%M%S")
// ...
DEST="$DEST_FOLDER/$NOW"

However, the log file name is later generated from current date
LOG_FILE="$LOG_DIR/$(date +"%Y-%m-%d-%H%M%S").log"

This has the effect that I end up having a snapshot directory with a different name than the log file (off by 1 second).

The log file name should be generated from the same date as the snapshot, i.e.

LOG_FILE="$LOG_DIR/$NOW.log"

basnijholt added a commit to basnijholt/rsync-time-machine.py that referenced this issue May 11, 2023
Repository owner deleted a comment from basnijholt May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant