LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 08-24-2009, 02:11 AM   #1
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 387

Rep: Reputation: 38
rsync output for a report


Hi all,

I hope this is the right forum for this.
I want to run an rsync script weekly, cron, and send its output in an email.

Basic stuff really, but the problem I have is the output from rsync. It doesn't seem to make any sense.

eg


Code:
david.ward@om012234 ~/dev/test $
rsync -avh * ../test-dst/
building file list ... done
A
B
C
E
X

sent 349 bytes  received 130 bytes  958.00 bytes/sec
total size is 11  speedup is 0.02

david.ward@om012234 ~/dev/test $
rsync -avh * ../test-dst/
building file list ... done

sent 124 bytes  received 20 bytes  288.00 bytes/sec
total size is 11  speedup is 0.08

david.ward@om012234 ~/dev/test $
rm ../test-dst/*

david.ward@om012234 ~/dev/test $
rsync -lvHhr   --delete-after  * ../test-dst/
building file list ... done
C
E
X
A => E
B => X

sent 261 bytes  received 102 bytes  726.00 bytes/sec
total size is 11  speedup is 0.03

david.ward@om012234 ~/dev/test $
rsync -lvHhr   --delete-after --exclude=iso --exclude=tmp  * ../test-dst/
building file list ... done
A
B
C
E => A
X => B

sent 261 bytes  received 102 bytes  726.00 bytes/sec
total size is 11  speedup is 0.03

david.ward@om012234 ~/dev/test $
rsync -lvHhr   --delete-after --exclude=iso --exclude=tmp  * ../test-dst/
building file list ... done
A
B
C
E => A
X => B

sent 261 bytes  received 102 bytes  726.00 bytes/sec
total size is 11  speedup is 0.03

david.ward@om012234 ~/dev/test $
ls ../test-dst/
A  B  C  E  X

david.ward@om012234 ~/dev/test $
rsync -avHh   --delete-after --exclude=iso --exclude=tmp  * ../test-dst/
building file list ... done
A
B
C
E => A
X => B

sent 305 bytes  received 102 bytes  814.00 bytes/sec
total size is 11  speedup is 0.03

david.ward@om012234 ~/dev/test $
rsync -avHh   --delete-after   * ../test-dst/
building file list ... done

sent 148 bytes  received 20 bytes  336.00 bytes/sec
total size is 11  speedup is 0.07

david.ward@om012234 ~/dev/test $
rsync -avHh   --delete-after --exclude=iso --exclude=tmp  * ../test-dst/
building file list ... done

sent 148 bytes  received 20 bytes  336.00 bytes/sec
total size is 11  speedup is 0.07
eg 2

Code:
david.ward@om012234 ~/dev/test $
rsync -avHh   --delete-after --exclude=iso --exclude=tmp  * ../test-dst/
building file list ... done

sent 148 bytes  received 20 bytes  336.00 bytes/sec
total size is 11  speedup is 0.07

david.ward@om012234 ~/dev/test $
rsync -avlHh   --delete-after --exclude=iso --exclude=tmp  * ../test-dst/
building file list ... done

sent 148 bytes  received 20 bytes  336.00 bytes/sec
total size is 11  speedup is 0.07

david.ward@om012234 ~/dev/test $
rsync -rvlHh   --delete-after --exclude=iso --exclude=tmp  * ../test-dst/
building file list ... done

sent 104 bytes  received 20 bytes  248.00 bytes/sec
total size is 11  speedup is 0.09

david.ward@om012234 ~/dev/test $
touch ZZ

david.ward@om012234 ~/dev/test $
rsync -rvlHh   --delete-after --exclude=iso --exclude=tmp  * ../test-dst/
building file list ... done
ZZ

sent 158 bytes  received 42 bytes  400.00 bytes/sec
total size is 11  speedup is 0.06

david.ward@om012234 ~/dev/test $
rsync -lvHhr   --delete-after --exclude=iso --exclude=tmp  * ../test-dst/
building file list ... done
ZZ

sent 158 bytes  received 42 bytes  400.00 bytes/sec
total size is 11  speedup is 0.06

david.ward@om012234 ~/dev/test $
rsync -lvHhr   --delete-after --exclude=iso --exclude=tmp  * ../test-dst/
building file list ... done
ZZ

sent 158 bytes  received 42 bytes  400.00 bytes/sec
total size is 11  speedup is 0.06

david.ward@om012234 ~/dev/test $
rsync -lvHhr   --delete-after --exclude=iso --exclude=tmp  * ../test-dst/
building file list ... done
ZZ

sent 158 bytes  received 42 bytes  400.00 bytes/sec
total size is 11  speedup is 0.06

david.ward@om012234 ~/dev/test $
rsync -lvHhr   --delete-after --exclude=iso --exclude=tmp  * ../test-dst/
building file list ... done
ZZ

sent 158 bytes  received 42 bytes  400.00 bytes/sec
total size is 11  speedup is 0.06
These are all successive commands, nothing has been left out....

It seems its output doesn't make sense. Should be just the files transferred, changed, but it doesn't do that consistently.

This is not a network file system and this is not a VM.
 
  


Reply

Tags
rsync


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync solaris + ld.so.1: rsync: fatal: libiconv.so.2: open failed: xxx_anuj_xxx Solaris / OpenSolaris 25 02-23-2012 04:23 AM
rsync error: errors selecting input/output files, dirs (code 3) at main.c(323) cucolin@ Linux - Networking 3 11-20-2007 05:56 PM
make rsync output deleted files? hawarden Linux - Software 8 03-18-2005 01:24 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 03:49 PM
tool to format report output from mysql? alar Linux - General 0 08-03-2004 09:16 PM


All times are GMT -5. The time now is 04:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration