You might be interested in looking at syncthing. Its designed to replicate 
things from 1 place to another. You can even set it up such that one is the 
"master" and it doesn't accept changes from other nodes.

Regarding rsync:

If you exclude something from 1 rsync job, and you still want it copied, you 
would need to create an additional job

The exclude option can either be inline (if its simple) or you can have a file 
that contains exclude lines, and you reference the file (--exclude-from).


> On Nov 15, 2018, at 9:53 AM, Rich Shepard <[email protected]> wrote:
> 
>  I want to update ~/ on the new desktop with changes made in ~/ on the old
> desktop using rsync in a daily cron job. The old desktop has a directory
> ~/data while the newdesktop has a /data partition separate from /home.
> 
>  There is an --exclude option to rsync and I'm not sure where it should go
> in the command line. Is this correct if run from my crontab?
> 
> rsync salmo: --exclude=data .
> 
>  Would a separate rsync command be needed to copy changes from salmo:data/
> to baetis:/data or could both be accomplished with the same command?
> 
> TIA,
> 
> Rich
> _______________________________________________
> PLUG mailing list
> [email protected]
> http://lists.pdxlinux.org/mailman/listinfo/plug

--
Louis Kowolowski                                [email protected] 
<mailto:[email protected]>
Cryptomonkeys:                                   http://www.cryptomonkeys.com/ 
<http://www.cryptomonkeys.com/>

Making life more interesting for people since 1977

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to