Newbie question on Rsync on Solaris

Crisler, Jon JCrisler at corvis.com
Fri May 3 10:13:03 EST 2002


Thanks, that fixed the problem !!!

-----Original Message-----
From: Sholom Fried (Senior Sys Admin) [mailto:sfried at dpw.com]
Sent: Friday, May 03, 2002 12:55 PM
To: Crisler, Jon; 'rsync at lists.samba.org'
Subject: Re: Newbie question on Rsync on Solaris



rsync -rvutogp -n --delete --stats --progress \ 
--exclude-from=/utils/exc_rsync_applcsf.txt \ 
--rsync-path=/usr/local/bin \ 
/data/u01/app/applmgr/product/1102/prd \ 
remoteuser at remotehost:/data/u01/app/applmgr/product/1102/prd 


this will copy the prd directory on the src into the prd 
directory on the dest, giving you:
  remotehost:/data/u01/app/applmgr/product/1102/prd/prd
I'm guessing that's not what you really want, and is also
the cause of moving all the data. Change your command to
either:
  rsync (flags) /usr/local/bin/data/u01/app/applmgr/product/1102/prd \
                remotehost:/data/u01/app/applmgr/product/1102
Or:
  rsync (flags) /usr/local/bin/data/u01/app/applmgr/product/1102/prd/
                remotehost:/data/u01/app/applmgr/product/1102/prd

the former means copy the prd directory from src into the
1102 directory on dst; the latter means copy *the contents*
of prd on src into the prd on the dst.

- Sholom Fried
  Sys Admin
  Davis Polk & Wardwell

   





The exclude file is: 

/data/u01/app/applmgr/product/1102/prd/common/PRD/log/* 
/data/u01/app/applmgr/product/1102/prd/common/PRD/out/* 

 Other info:  usernames, uid and gid are the same on both systems.  rsync
2.5.4 installed in /usr/local/bin on both systems. 

 Any clues ?   I plan to try to sync the entire directory once per day, and
two smaller directories every 15 minutes. 
  

The information contained in this e-mail including any attachments may
constitute Corvis Corporation Proprietary Information that is subject to
Non-Disclosure Agreement and cannot be disclosed to any other party without
the express consent of  Corvis Corporation.  If you are neither the intended
recipient of this e-mail nor responsible for delivering this e-mail to the
intended recipient, note that any dissemination, distribution, copying, or
retention of this e-mail is prohibited.  If you believe you have received
this e-mail in error, we request that you notify the sender by return e-mail
and then delete this e-mail  and any return e-mail immediately. 


The information contained in this e-mail including any attachments may
constitute Corvis Corporation Proprietary Information that is subject to
Non-Disclosure Agreement and cannot be disclosed to any other party without
the express consent of  Corvis Corporation.  If you are neither the intended
recipient of this e-mail nor responsible for delivering this e-mail to the
intended recipient, note that any dissemination, distribution, copying, or
retention of this e-mail is prohibited.  If you believe you have received
this e-mail in error, we request that you notify the sender by return e-mail
and then delete this e-mail  and any return e-mail immediately. 
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the rsync mailing list