![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| rsync vs cp | jsy | UNIX for Dummies Questions & Answers | 1 | 03-24-2008 04:51 PM |
| Unix Arithmatic operation issue , datatype issue | thambi | Shell Programming and Scripting | 23 | 02-19-2008 07:19 AM |
| rsync issue | bag of hammers | UNIX for Dummies Questions & Answers | 2 | 10-23-2007 05:52 PM |
| rsync in ftp | Euler04 | Shell Programming and Scripting | 5 | 10-24-2005 07:17 AM |
| rsync | wz253 | UNIX for Dummies Questions & Answers | 6 | 09-04-2001 06:44 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
RSYNC issue
Hi experts,
this is my script to Synchronize a local directory with a remote directory my problem is server HDD contain data of 79GB but local HDD of 250GB gets full. same script for other server is working i am not getting the exact problem. #!/bin/bash RSYNC=/usr/bin/rsync PUBKEY=/root/.ssh/backupkey REMOTESERVER=192.168.0.6 REMOTEPART=/mnt/disk1/ LOCALPARTITION=/backuppc_clone emailid=adminusers@xyz.com Dated=$(date) sendEmail=/xyz/scripts/sendEmail.pl RC=0 $RSYNC -r -a -v -e "ssh -i $PUBKEY -l root" --delete $REMOTESERVER:$REMOTEPART $LOCALPARTITION RC=$? if [ $RC -gt 0 ] then $sendEmail -f $emailid -t $emailid -s mail.xyz.com:25 -u "Dolphin backup failed :- $Dated" -m "Dolphin Data backup failure" else $sendEmail -f $emailid -t $emailid -s mail.xyz.com:25 -u "Dolphin Backup successfully Completed:- $Dated " -m "Dolphin Data backuped on Backup HDD" |
|
||||
|
Code:
$RSYNC -r -a -v -e "ssh -i $PUBKEY -l root" --delete $REMOTESERVER:$REMOTEPART $LOCALPARTITION If for remote server the size of data increase by "size - X + Y"(where X is what you delete in time and Y is what you add in time) on the backup volume the size increase by "size + X" each time. Finlay your backup volume will run out of space, how fast ? That's depend on X and Y. Google for "snapshot like backup using rsync" |
|
||||
|
RSYNC issue
Thanks for reply
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|