I have two identical disks /dev/sdb1 == source /dev/sdc1 == dest When I rsync the source -> dest rsync -a /tree2/ /tree2m the destination size id considerably larger. /dev/sdb1 17654736 6513064 10244848 39% /tree2 /dev/sdc1 17654736 7691192 9066720 46% /tree2m When I look down into the directories I find the following /tree2 ... SOURCE [root]# du -sk * 4 marina 8 marshall 4 mcbaran 4 miller 8 mkim 8 monleon 8 mordes [root]# ls -la marshall/ total 16 drwx------ 2 cyrus mail 4096 Aug 27 2001 . drwxr-xr-x 9 cyrus mail 4096 Aug 11 18:49 .. -rw------- 2 cyrus mail 797 Aug 27 2001 default -rw------- 2 cyrus mail 797 Aug 27 2001 default.script /tree2m ... DEST [root]# du -sk * 4 marina 12 marshall 4 mcbaran 4 miller 12 mkim 12 monleon 12 mordes [root]# ls -la marshall/ total 16 drwx------ 2 cyrus mail 4096 Aug 27 2001 . drwxr-xr-x 9 cyrus mail 4096 Aug 11 18:49 .. -rw------- 1 cyrus mail 797 Aug 27 2001 default -rw------- 1 cyrus mail 797 Aug 27 2001 default.script Why is there a difference in the size of the directories for marshall(and many others) which makes the distination larger than the source? { Shelley Waltz UMDNJ/Rutgers University 679 Hoes Lane Piscataway, NJ 08854-5638 phone: (732) 235-3346 };
On Thu, Oct 24, 2002 at 12:37:34PM -0400, Shelley Waltz wrote:> Why is there a difference in the size of the directories for marshall(and > many others) which makes the distination larger than the source?The directory listings you provided show that there are hard-linked files on the source filesystem that are not hard-linked on the destination. Try running rsync with the -H (--hard-link) option. ..wayne..
Wayne ... thanks, --hard-links makes things right. On Thu, 24 Oct 2002, Wayne Davison wrote: On Thu, Oct 24, 2002 at 12:37:34PM -0400, Shelley Waltz wrote: > Why is there a difference in the size of the directories for marshall(and > many others) which makes the distination larger than the source? The directory listings you provided show that there are hard-linked files on the source filesystem that are not hard-linked on the destination. Try running rsync with the -H (--hard-link) option. ..wayne..