Michael Johnson - MJ <mj at revmj.com> wrote:> rsync -av /src/ /dst/ && touch /dst/doneAaaaahhhh, 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.
Or
rsync -avH ${all_gubbins} / user at remote.machine:/dest/ && ssh user at
remote.machine touch /etc/donefile
so your client touches a file on your server (that sounds so wrong...)
Am 28.04.2015 um 13:36 schrieb Simon Hobson:> 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.
>
Lorenz Weber <mail at lenzw.de> wrote:> rsync -avH ${all_gubbins} / user at remote.machine:/dest/ && ssh user at remote.machine touch /etc/donefileNo SSH access between them, only rsync. Besides, it would add the overhead of managing ssh access (users and keys) as well as Rsync.