rsync of file list

lsk ellsatish at gmail.com
Wed Mar 1 20:04:27 GMT 2006


Matt,
Typically with Oracle databases, you will have datafiles residing on
different 
mount points starting from the root such as:

/p02/oradata/OSID/redo01.log
/p03/oradata/OSID/redo02.log
/p04/oradata/OSID/redo03.log
/p01/oradata/OSID/system01.dbf
/p04/oradata/OSID/undotbs01.dbf
/p03/oradata/OSID/sysaux01.dbf
/p03/oradata/OSID/users01.dbf
/p03/oradata/OSID/example01.dbf
/p03/oradata/OSID/data01.dbf
/p02/oradata/OSID/index01.dbf
/p01/oradata/OSID/control01.ctl
/p02/oradata/OSID/control02.ctl
/p03/oradata/OSID/control03.ctl
/s01/oracle/product/10.2.0/dbs/initOSID.ora

Requiring a command line something like this:

rsync -a srchost:/ / --files-from=dbf-list

and dbf-list would contain this:

p02/oradata/OSID/redo01.log
p03/oradata/OSID/redo02.log
p04/oradata/OSID/redo03.log
p01/oradata/OSID/system01.dbf
p04/oradata/OSID/undotbs01.dbf
p03/oradata/OSID/sysaux01.dbf
p03/oradata/OSID/users01.dbf
p03/oradata/OSID/example01.dbf
p03/oradata/OSID/data01.dbf
p02/oradata/OSID/index01.dbf
p01/oradata/OSID/control01.ctl
p02/oradata/OSID/control02.ctl
p03/oradata/OSID/control03.ctl
s01/oracle/product/10.2.0/dbs/initOSID.ora

Do you see any problems with this?
-- 
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html



///**** lsk-> Linus in my case the destination server path name and source
path name that includes SID is different so how you would build the rsync
syntax using --files-from with this.

rsync -zv --no-whole-file --stats /d01/app/sourSID/testfile2.dbf 
tarser:/t01/app/destSID/testfile2.dbf 
rsync -zv --no-whole-file --stats /d02/app/sourSID/testfile3.dbf 
tarser:/t02/app/destSID/testfile3.dbf 
rsync -zv --no-whole-file --stats /d03/app/sourSID/testfile4.dbf 
tarser:/t03/app/destSID/testfile4.dbf 
rsync -zv --no-whole-file --stats /d04/app/sourSID/testfile5.dbf 
tarser:/t04/app/destSID/testfile5.dbf 

Thanks,
lsk.
--
View this message in context: http://www.nabble.com/rsync-of-file-list-t920650.html#a3190257
Sent from the Samba - rsync forum at Nabble.com.



More information about the rsync mailing list