Hi,
I was just thinking about the possibility of a flag that
provide rsync with a method that doesn't require a
source dir in the line command.
I mean, a method where the user just has to write a
file which contents all directorys that wants to rsync
(directorys without the same root), something like:

#cat files2rsync

/home/user/a
/usr/local/
/a_directory/a_file

rsync -a --files-from=/home/user/files2rsync /backup_dir

I know i can do something like
rsync -a --files-from=/home/user/files2rsync / /backup_dir

and modify the content of files2rsync, but i think it will be
a good simplification and quite more "natural" to use..
anyway.. was just thinking loud
Thanks!

Judith
pd: again excuse my english..

Paul Slootman wrote:

Read the manpage, the --files-from section, in particular this:

   The file names that are read from the FILE are all relative to
   the source dir -- any leading slashes are removed and no ".."
   references are allowed to go higher than the source  dir.

If you don't supply a source dir, to what directory should the file
names be relative to?


Paul Slootman

--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to