Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

SOLVED Results for rsync task

Status
Not open for further replies.

dpearcefl

Member
Joined
Aug 4, 2015
Messages
137
I set up an Rsync Task and ran it. How do I know if it worked? Is there a log somewhere? didn't see anything obvious in /var/log
 

dpearcefl

Member
Joined
Aug 4, 2015
Messages
137
Tried adding "> /tmp/rsync.log 2>&1" as an extra parameter and just got an empty file.
 

dpearcefl

Member
Joined
Aug 4, 2015
Messages
137
The docs say to look at /var/log/messages but nothing there after I run the rsync job.
 

dpearcefl

Member
Joined
Aug 4, 2015
Messages
137
OK, here's the scoop...
  • The execution of the rsync task is shown in /var/log/cron.
  • Any messages are put into /var/log/messages.
  • By default, rsync will produce no output when no files need to be transferred.
  • Therefore, if all is well, no messages go into /var/log/messages.
So if you want to see output in messages, you will need to add an optional parameter of "-v".

Sample command line taken from the cron log with the added -v option:
/usr/local/bin/rsync -r -t -z -v --delete-delay --delay-updates -e "ssh -p 22 -o BatchMode=yes -o StrictHostKeyChecking=yes" xxxxx@someone.org:\""/mnt/remote_location/"\" "/mnt/local_location"
 

InGenetic

Member
Joined
Dec 18, 2013
Messages
98
Hi dpearcefl,

where i have to put the command line ? on freenas which "push" or on the other freenas ?
cause till now.. i'm using rsync freenas to freenas .

Thankyou
 
Status
Not open for further replies.
Top