[mdlug] RSYNC Question

JeremyBekka C jrchristophel at gmail.com
Thu Sep 28 17:54:29 EDT 2017


Thank you Jonathan, Carl, and Robert for your help. I appreciate you
explaining why this happened so that I know better how to use rsync in the
future.

Jeremy

On Thu, Sep 28, 2017 at 4:35 PM, Robert Citek <robert.citek at gmail.com>
wrote:

> 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!
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
>


More information about the mdlug mailing list