3 ms·
You could do this with the `timeout` command. `timeout -s SIGINT 1h restic...` That would let restic run for one hour, and then once the hour elapses send a S
by lykron 5y ago
You could do this with the `timeout` command.
`timeout -s SIGINT 1h restic...`
That would let restic run for one hour, and then once the hour elapses send a SIGINT which will stop the process (see https://github.com/restic/restic/blob/a29777f46794ea4e35548fce7dd9412b45ef572c/cmd/restic/cleanup.go#L58= https://github.com/restic/restic/blob/a29777f46794ea4e35548f...)
- sydney6 5y agoAnd restic would then resume the backup next time it runs. [1] https://restic.readthedocs.io/en/latest/faq.html#will-restic-resume-an-interrupted-backup https://restic.readthedocs.io/en/latest/faq.html#will-restic...