Noob help with backup command syntax
scott.list
scott.list at mlec.net
Fri Sep 23 13:18:53 GMT 2005
Paul:
Thanks very much for the time to help:
> The first two could be combined as the destination dir is the same;
> to combine the rest you have to do things with --relative, which
> might make things more confusing if you're not familiar with rsync:
>
> rsync -aH --relative /etc/named /etc/some.conf /home/bill
/home/james/somedocument remoteserver:/home/testuser/backup/
Well, I just gave some sample files for my question that would cover
the cases expect to encounter. I actually have a much longer list of
them. I'll be doing this just periodically, not automatically and I'd
prefer to not set it up with auto-login keys. So doing them one at a
time would not be my preference if I can work around it.
> > Ideally, a file where I could place a list of what I wanted to
rsync
> > would be nice.
>
> For that, there's the --files-from option, the list could be
generated
> with e.g. find.
This is what I'm after. Can you show me an example? I know how to
use basic find commands, but if I get a list of the files and
directories in a file can I feed that list to rsync?
For example if my file list was in
/tmp/mybackuplist
with the file contents of:
/etc/named/1
/etc/named/2
/etc/named/3
/etc/named/4
/etc/named/5
/etc/some.conf
/home/bill/6
/home/james/somedocument
assuming that will work, can you show me the command syntax for using
files-from? With me on the source server sending files to the remote
server at /home/testuser/backup/ ? And ideally on the remote server,
have the directory structure duplicated, i.e. in this example the
remote will have:
/home/testuser/backup/etc
/home/testuser/backup/home
/home/testuser/backup/home/bill
/home/testuser/backup/home/james
directories.
Thanks again!
Scott
More information about the rsync
mailing list