rysnc


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers rysnc
# 1  
Old 03-18-2010
rysnc

hi
I have a rsync working between two servers but i would like to write this to a daily log on completion to a area on one of the servers. This way i can check if sync was successful easily.
Rsync i am running is as follows
Code:
rsync -aWv -e ssh --stats progress --delete --ignore-errors /prod/CREATIVE2/WORK_IN_PROGRESS_PEARTREE 5.0.3.30:/raid1/PRODUCTION/

thanks
Treds

Last edited by zaxxon; 03-18-2010 at 07:20 AM.. Reason: html tag not needed - inserted code tag for appropriate line
# 2  
Old 03-18-2010
Redirect stderr to stdout like for example:
Code:
rsync .....blabla..... >> rsync.log 2>&1

If you want to have it split on Unix days for example (you get a rotating effect for 7 days), you could use something like:
Code:
rsync .....blabla..... >> rsync.`date +%w`.log 2>&1

# 3  
Old 03-18-2010
rsync

Code:
hi can you direct this to a path so it wil look something like this

rsync -aWv -e ssh --stats progress --delete --ignore-errors /mnt/CREATIVE_BACKUP/ /cmd/CREATIVE >> /prod/Backup/rsync.`date +%w`.log 2>&1

also can i take this a step further and send log to a remote location so it will look something like this.

rsync -aWv -e ssh --stats progress --delete --ignore-errors /mnt/CREATIVE_BACKUP/ /cmd/CREATIVE >> 5.0.2.245:/prod/Backup/rsync.`date +%w`.log 2>&1

sorry for dumb questions but all this is live and don't want to screw it up

 
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with rysnc and find with date variable

I want to have a script to create directory labled with the date, convert a load of flac files to mp3 and then find and rysnc the newly created mp3 file to the dated directory. Here's what I have done so far but the rsync command doesn't work: #!/bin/bash #set date variable as now... (0 Replies)
Discussion started by: barrydocks
0 Replies

2. UNIX for Dummies Questions & Answers

compare two directories after rysnc

Hi, I ran rsync command to copy all files, directories and subdirectories from /home/dir1 to another Target directory /home/dir2 Now I want to make sure everything is copied over without missing anything. Is there a command I can run which will compare both directories and check to see if I am... (4 Replies)
Discussion started by: tkhan9
4 Replies

3. OS X (Apple)

bizar rysnc problem

Hi all, i'm syncing two raid sets together using "rsync -avE --delete" i build the two raid sets identical to each other using storenext , however when i let the script run a couple of times my destination is about 300 GB larger then my source. i run the command as root on a 10.5.6 Xserve and... (2 Replies)
Discussion started by: wessel
2 Replies
Login or Register to Ask a Question