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

Confusing if "recent" is not used. #8

Open
guettli opened this issue Dec 29, 2020 · 0 comments
Open

Confusing if "recent" is not used. #8

guettli opened this issue Dec 29, 2020 · 0 comments

Comments

@guettli
Copy link

guettli commented Dec 29, 2020

crontab:

@hourly pg_dump -Fc > backup/db-$(date -Isecond).dump; timegaps --delete hours24,days7,weeks4,months6 backup/*.dump

This immediately deletes the files created a millisecond before. The directory backup will be empty for ever.

That's confusing.

I found the solution: You need to add recent.

Example:

@hourly pg_dump -Fc > backup/db-$(date -Isecond).dump; timegaps --delete recent1,hours24,days7,weeks4,months6 backup/*.dump

The "first time user experience" could get improved.

Why not switch to

if "recent" is missing, all recent file are kept?

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