azinchen / duplicacy

Automated backups with Docker and duplicacy, with backup rotation, email notifications
MIT License
31 stars 17 forks source link

Proposal: BACKUP_END_CRON #8

Closed GlennToms closed 3 years ago

GlennToms commented 3 years ago

Hi,

Here is my proposal for adding a BACKUP_END_CRON environment variable to be executed on CRON schedule.

My need is that I have a limited window for backing up and needed a way for end the current backup. This uses the kill -2 (or Ctrl-C) which tells duplicacy to write the incomplete file before exiting allowing the backup to resume with current uploaded progress.

azinchen commented 3 years ago

Merged to master and release branches

azinchen commented 3 years ago

Ok, I decided to revert this implementation. Limiting the duration of duplicacy backup command via timeout command would be more convenient.

azinchen commented 3 years ago

Ok, I decided to leave both solutions ;)