[prev in list] [next in list] [prev in thread] [next in thread]
List: rsync
Subject: Re: creating directories not specified in '--files-from' file
From: Madison Kelly <linux () alteeve ! com>
Date: 2005-07-29 12:15:22
Message-ID: 42EA1DDA.2090308 () alteeve ! com
[Download RAW message or body]
Wayne Davison wrote:
> On Thu, Jul 28, 2005 at 08:19:26PM -0400, Madison Kelly wrote:
>
>>If I specify a directory to be backed up all files in it are copied
>>automatically.
>
>
> That only happens if the dir has a trailing slash (which is telling
> rsync "I want the contents of this directory"), rather than just the
> directory's name (which is telling rsync "I want to create that dir").
> In fact, you could omit all directory items when using --files-from for
> a backup (unless you happen to want to backup an empty directory).
>
> So, in your list.txt file, you should not be specifying "/" unless you
> want all the contents of the base dir to be copied. Just remove that
> line and your copy should be fine.
>
> ..wayne..
>
Ahh.... Okay, that makes a lot of sense now, and I remember reading
that somewhere in the 'man' page iirc but I didn't catch the importance
of it. *doh*!
Thank you very much!
Madison
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic