Re: Noob help with backup command syntax

This is a discussion on Re: Noob help with backup command syntax within the Rsync forums, part of the Networking and Network Related category; Paul: Thanks very much for the time to help: > The first two could be combined as the destination dir ...


Go Back   Usenet Forums > Networking and Network Related > Rsync

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-23-2005
scott.list
 
Posts: n/a
Default Re: Noob help with backup command syntax

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











--
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 With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:01 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0