- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rsync in batch mode
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2005 02:58 AM
тАО02-02-2005 02:58 AM
rsync in batch mode
Thanks and regards
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2005 03:03 AM
тАО02-02-2005 03:03 AM
Re: rsync in batch mode
I use rdist to sync from cron for DR reasons.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2005 06:42 AM
тАО02-02-2005 06:42 AM
Re: rsync in batch mode
Thanks and regards
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2005 07:12 AM
тАО02-02-2005 07:12 AM
Re: rsync in batch mode
From cron:
# Copy prdadm across to the DR site.
05 01 * * * /app/admin/drp/update-binaries.sh >/dev/null 2>&1
# cat /app/admin/drp/update-binaries.sh
#! /bin/sh
# Keep the DRP copy of the prdadm up-to-date.
# Currently the files are in:
#
# /home/prdadm/DR
#
# See the rdist(1M) distfile for a list of exclusions.
TERM=xterm
DRPDIR=/app/admin/drp
DRPHOST=svr031
HOST=`/usr/bin/uname -n`
PRD=`cmviewcl |grep prddbci |awk '{print $5}'`
if [ "$HOST" = "$IPR" ]
then
mount | grep /home > /dev/null 2>&1
if [ $? -eq 0 ]
then
( su - prdadm -c "rdist -f $DRPDIR/distfile ipradm"; ) 2>&1 |\
tee $DRPDIR/drp.log 2>&1 |\
mailx -s "prdadm DRP rdist output" `cat /usr/local/mailadmin.list`
fi
fi
# cat distfile
PRDDR = ( svr031 )
#
# File systems to be copied over to the DR host.
# Don't use -R in install - so as not to remove files on destination host
PRDADM = /home/prdadm
prdadm: ( ${PRDADM} ) -> ( ${PRDDR} )
install -w ;
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2005 08:08 AM
тАО02-02-2005 08:08 AM
Re: rsync in batch mode
/usr/local/bin/rsync -avcu --delete --stats --rsync-path=/usr/local/bin/rsync hquwh50:/mesave1/ /sync/mesave1/
I use the same basic command to sync several directories from several systems nightly. It works great!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2005 08:47 AM
тАО02-02-2005 08:47 AM
Re: rsync in batch mode
assuming rsync and cron job (thus full paths)
assuming cron job runs on "receiving machine" from the rsync...
/usr/bin/rsync -avze ssh --delete source_machine:/a1/oracle/OHOME/ /a1/oracle/OHOME/
notes -
a) leave off the "--delete" switch if you only want to update new or changed files - but not get rid of deleted files from the source machine.
b) if you're not using ssh - it's more like
"rsync -avz" instead of "rsync -avze ssh"
c) leave of the "z" switch if you don't want on the fly compression.
d) *trailing /'s* are VERY IMPORTANT - if you are cloning one whole dir to another use the above - if you want options - play around with leaving off the trailing "/" on either the source or dest to see what happens -- it makes a big difference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2005 01:50 AM
тАО02-03-2005 01:50 AM
Re: rsync in batch mode
--exclude ${VER}/network/admin
--exclude oracle/admin/${SID}/*dump
--exclude ${VER}/network/log
The 1st one is very important as that's where listener.ora and tnsnames.ora files live. You might accidentally stop the listener on the rsync source node if you don't preserve the local settings on the rsync destination. Been there, done that...
BTW, I use rsync from cron each hour to sync our DR node. I use ssh and have established authorized key files. Works very well.
HTH,
Chuck Davis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2005 07:26 AM
тАО02-03-2005 07:26 AM
Re: rsync in batch mode
It has option like
--write-batch=
Hope this helps.
Thanks and regards
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2005 07:27 AM
тАО02-03-2005 07:27 AM