Options for a "I'm done" flag file

Simon Hobson linux at thehobsons.co.uk
Tue Apr 28 05:36:42 MDT 2015


Michael Johnson - MJ <mj at revmj.com> wrote:

> rsync -av /src/ /dst/ && touch /dst/done

Aaaaahhhh, knew I'd miss some detail.
All the syncs are pushed to the backup server.

But that does give me an idea. I guess I could do that on the source, then sync the flag file over.
rsync -avH ${other_gubbins} / user at remote.machine:/dest/ &&
  touch /etc/donefile &&
  rsync -av ${some_other_gubbins} /etc/donefile user at remote.machine:/dest/

That (or some variation of it) could work.



More information about the rsync mailing list