[mdlug] RSYNC Question
Robert Citek
robert.citek at gmail.com
Thu Sep 28 16:35:18 EDT 2017
Another solution is to explicitly specify what you want by using the
-R (--relative) option and specify the "root" using /./
For example:
# if you only want the files:
rsync -rltDvu -R \
--modify-window=1 \
--progress \
--delete \
--delete-excluded
--exclude-from=/home/username/Documents/Backup-Exclude-List.txt \
/home/username/./ \
/run/media/username/Iomega\ HDD/Backup
# if you want the username folder:
rsync -rltDvu -R \
--modify-window=1 \
--progress \
--delete \
--delete-excluded
--exclude-from=/home/username/Documents/Backup-Exclude-List.txt \
/home/./username/ \
/run/media/username/Iomega\ HDD/Backup
To point out the difference:
/home/username/./ \
vs
/home/./username/ \
Regards,
- Robert
On Thu, Sep 28, 2017 at 1:03 PM, JeremyBekka C <jrchristophel at gmail.com> wrote:
> Great that fixed it. I realized that I also had to put the "/" at the end
> of "/home/username/" or it did the same thing.
>
> Thanks!
More information about the mdlug
mailing list