beeb / awsbck

Backup a folder to AWS S3, once or periodically
https://crates.io/crates/awsbck
Apache License 2.0
6 stars 0 forks source link

Breaking: add cron scheduling #20

Closed beeb closed 1 year ago

beeb commented 1 year ago

This PR introduces a new feature to define periodic backups using cron expressions instead of an interval in seconds.

This offers more flexibility. The new option is available through the -c or --cron CLI arguments, as well as the AWSBCK_CRON environment variable.

The old -i/--interval option and AWSBCK_INTERVAL are not supported anymore. To perform backup based on an interval, use for instance -c "@hourly", -c "@daily" or -c "0 0 */6 * * * *".

beeb commented 1 year ago

Closes https://github.com/beeb/awsbck/issues/16