[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Rsync and different sizes



I'd suggest:

find MYSRCDIR -type f -exec md5sum {} \;|sort>SRC
find MYDESTDIR -type f -exec md5sum {} \;|sort>DEST

wc -l SRC;wc -l DEST
diff SRC DEST

may take a bit too long, ti depends...
Also in every rsync run you should check the last lines

'sent 16431711 bytes  received 7000 bytes  2191828.13 bytes/sec
total size is 22209204615  speedup is 1351.03'

and the exit status (man rsync EXIT STATUS).
Bye

Valerio



On 10/19/06, Daniele P. <debian@tovel.it> wrote:
On Thursday 19 October 2006 12:15, Sturla Holm Hansen wrote:
> Actually it's the original that's bigger, here's the rsync-command I
> use:
>
>  rsync -aizH --delete --stats  --password-file=/etc/rsyncd.pass
> username@host::rsyncshare/* /destinationdir

Using '*' you could miss directories and files starting with a dot.

> I also get "SIGUSR1 or SIGINT " error on a lot of syncs, got any idea
> what's causing this?

Maybe a cat walking on the keyboard?

However this could be interesting too:

>The bakcup-server runs on xfs and the local rsync-server runs on ext3
>if  that can have anything to do with anything....

It seem's that the size of empty directory is file system dependant:
$ mkdir dir-on-xfs
$ mkdir dir-on-ext3
$ du -b dir-on-xfs
6       dir-on-xfs
$ stat dir-on-xfs | grep Size
Size: 6               Blocks: 0          IO Block: 4096   directory
$ du -b dir-on-ext3
4096    dir-on-ext3
$ stat dir-on-ext3 | grep Size
Size: 4096            Blocks: 8          IO Block: 4096   directory

So, if you want to check your backup, don't rely on du but use md5sum
and/or sha1sum on the files.

Regards,
Daniele


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org





Reply to: