Re: rsync: different target size

2010-01-19 Thread Leonardo Canducci
2010/1/18 Johannes Wiedersich johan...@physik.blm.tu-muenchen.de: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leonardo Canducci wrote: I'm using rsync -aHS to backup some stuff (mostly jpgs and docs from my home) to an external usb hard drive (same ext3 fs). [snip] I'd like the size of

Re: rsync: different target size

2010-01-19 Thread Leonardo Canducci
2010/1/19 Rick Thomas rbtho...@pobox.com: On Jan 18, 2010, at 12:20 PM, Leonardo Canducci wrote: I'm using rsync -aHS to backup some stuff (mostly jpgs and docs from my home) to an external usb hard drive (same ext3 fs). After a backup I ran du -s to get a fast check on size and found

Re: rsync: different target size

2010-01-19 Thread Jon Dowland
On Mon, Jan 18, 2010 at 06:20:27PM +0100, Leonardo Canducci wrote: I'm using rsync -aHS to backup some stuff (mostly jpgs and docs from my home) to an external usb hard drive (same ext3 fs). snip I've noticed some dir size doesn't match: snip Ext3 has a limitation in the way it stores

Re: rsync: different target size

2010-01-19 Thread Rick Thomas
On Jan 19, 2010, at 5:58 AM, Leonardo Canducci wrote: ( cd source ; find . -type f -print0 | sort -z | xargs ls -s ) /tmp/source-stuff ( cd target ; find . -type f -print0 | sort -z | xargs ls -s ) /tmp/target-stuff diff /tmp/target-stuff /tmp/source-stuff you can use something like md5sum

Re: rsync: different target size

2010-01-19 Thread Johannes Wiedersich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rick Thomas wrote: I was thinking: if you don't trust rsync, then use something else to generate the checksums. But if you trust rsync, why bother with double-checking in the first place? Because it could be that rsync works fine, but

rsync: different target size

2010-01-18 Thread Leonardo Canducci
I'm using rsync -aHS to backup some stuff (mostly jpgs and docs from my home) to an external usb hard drive (same ext3 fs). After a backup I ran du -s to get a fast check on size and found source and target to be slightly different. Even using du -cb or du-cbk size doesn't match. So what's wrong?!

Re: rsync: different target size

2010-01-18 Thread Johannes Wiedersich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leonardo Canducci wrote: I'm using rsync -aHS to backup some stuff (mostly jpgs and docs from my home) to an external usb hard drive (same ext3 fs). [snip] I'd like the size of the backup to be exactly the same and check sync result with du.

Re: rsync: different target size

2010-01-18 Thread Rick Thomas
On Jan 18, 2010, at 12:20 PM, Leonardo Canducci wrote: I'm using rsync -aHS to backup some stuff (mostly jpgs and docs from my home) to an external usb hard drive (same ext3 fs). After a backup I ran du -s to get a fast check on size and found source and target to be slightly different. Even