[PLUG] PLUG Digest, Vol 156, Issue 17
John Jason Jordan
johnxj at gmx.com
Sun Sep 10 16:12:24 UTC 2017
On Sun, 10 Sep 2017 08:17:56 -0700
Denis Heidtmann <denis.heidtmann at gmail.com> dijo:
>cp -pr * /home/household/ will bring all the dot folders&files in
>/home/household, numbering about 24 dot folders and 19 dot files. The
>exclude option in rsync will do it when I can figure out how to write
>the PATTERN --exclude requires. The shell gets first shot at it.
Here is the command that I use to back up the folder /Movies on a USB
drive to my Synology network drive:
rsync -rptog --progress --stats --delete
--exclude-from=/media/jjj/Movies/rsync_exclusions /media/jjj/Movies/ /media/jjj/Synology
I added the --delete option because I want the network drive to be a
mirror of the USB drive, so if I delete anything from the USB drive I
want it deleted from the Synology as well. The --progress and --stats
options just give me reports of what rsync is doing / did and are not
necessary for the successful operation of the command. Note that my
command uses --exclude-from rather than just --exclude, where I have a
text file to tell rsync not to include certain files and folders.
More information about the PLUG
mailing list