I have an anacron job that creates zfs snapshots using zfs-auto-snapshot package.
I now want to create a job that sends the latest snapshot via zfs send to a backup server.
As I understood, anacron means it will run the jobs anachronistic at least once a hour, day, week, month etc. So if I just create a second job hourly containing zfs send command, it will just run it when ever it can once a hour.
That would mean, that the backup job could run before or parallel to the snapshot job, is that correct?
If yes, how do I make sure that snapshot is always finished before backup runs?
&&
so that the second one runs when the first is completed. – Nasir Riley Jun 20 '19 at 11:34