How do I schedule a linux backup job on a machine that's not always on?

0

I'd like to backup my files at midnight every day. Sometimes, I don't leave my computer on all night, and sometimes I don't use it for 2 or 3 days. When I turn my machine on, I want it to immediately run the job if it missed the backup scheduled. If I don't turn on my machine all week, I only still want it to run the backup once.

Is this possible? Can anacron, systemd, or another common linux tool be configured to do this?

ForeverConfused

Posted 2016-09-10T20:13:58.940

Reputation: 183

Answers

1

This can be done with systemd's option Persistent=true. Example

Gabscap

Posted 2016-09-10T20:13:58.940

Reputation: 26