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

No backup when using %F in the snapshot-format #290

Open
Grinzold opened this issue Jan 30, 2025 · 0 comments
Open

No backup when using %F in the snapshot-format #290

Grinzold opened this issue Jan 30, 2025 · 0 comments

Comments

@Grinzold
Copy link

I tried using the time format %F, which is a shortcut for %Y-%m-%d:

> date +%F; date +%Y-%m-%d
2025-01-30
2025-01-30

When using %F the snapshots are created OK, but nothing gets backed up.

Furthermore the return value is 0, so no problem is reported!

As a workaround using %Y-%m-%d instead of %F does the job. So, one could check for %F in the format and

  • output an error message, or
  • (silently) replace it with '%Y-%m-%d'

The actual format I used was --snapshot-format "{}_%F_%H%M%S", which did not work.

BTW, for testing it would be really helpful to just specify a snapshot as a source, instead of a backup-name and setting the corresponding property...

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