Cannot get the syntax of --include-from right
Robert Parker
rlp1938 at gmail.com
Fri Sep 16 11:18:46 MDT 2011
On Fri, Sep 16, 2011 at 10:47 PM, Steven Levine <steve53 at earthlink.net> wrote:
> In <CAAykW6mMRiTVqt0KrrcgYiwNvz7kjHNQC76=rJc+c=+Qpg3b3Q at mail.gmail.com>,
> on 09/16/11
> at 07:34 PM, Robert Parker <rlp1938 at gmail.com> said:
>
> HI Robert,
>
<snipped>
>
> The paths in your --include-from file must be relative to $fromdir.
>
> In general, this is true of all paths other than paths specified on the
> command line.
>
> The paths on the command line effectively create logic roots and the other
> paths will be relative to these paths.
Thank you Steven,
The revised script part:
nice -n 15 rsync -av --include-from="/home/bob/backup_includes" \
--exclude=".*" "$fromdir" "$todir"
and backup_files:
.vimrc
.gitconfig
.bash_aliases
.bashrc
And my backup script is now doing exactly what I want it to do.
Bob Parker
>
> Steven
>
> --
> ----------------------------------------------------------------------
> "Steven Levine" <steve53 at earthlink.net> eCS/Warp/DIY etc.
> www.scoug.com www.ecomstation.com
> ----------------------------------------------------------------------
>
> --
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>
More information about the rsync
mailing list