The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-11-2008
jagnikam jagnikam is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 56
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"
  #2 (permalink)  
Old 03-11-2008
danmero danmero is offline Forum Advisor  
  
 

Join Date: Nov 2007
Location: 45.48-73.63
Posts: 1,420
Code:
$RSYNC -r -a -v -e "ssh -i $PUBKEY -l root" --delete $REMOTESERVER:$REMOTEPART $LOCALPARTITION
--delete is the problem.
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"
  #3 (permalink)  
Old 03-12-2008
jagnikam jagnikam is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 56
RSYNC issue

Thanks for reply


Quote:
Originally Posted by danmero View Post
Code:
$RSYNC -r -a -v -e "ssh -i $PUBKEY -l root" --delete $REMOTESERVER:$REMOTEPART $LOCALPARTITION
--delete is the problem.
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"
  #4 (permalink)  
Old 03-18-2008
jagnikam jagnikam is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 56
rsync issue

still facing overflow issue, i removed --delete string from script then also same problem.

please help me sort out this problem
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:40 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0