For example, on Windows, the gawk.1 and pgawk.1 manpage are hard
linked as shown by 'ls':
$ls -i /c/cygwin/usr/share/man/man1/*gawk.1
844424930186282 /c/cygwin/usr/share/man/man1/gawk.1
844424930186283 /c/cygwin/usr/share/man/man1/igawk.1
844424930186282 /c/cygwin/usr/share/man/man1/pgawk.1
Running straight rsync preserves hard links as desired.:
$ rsync -avxXH -e "ssh -l kosowsky"
wincomputer:/cygdrive/c/cygwin/usr/share/man/man1/*gawk* .
receiving incremental file list
igawk.1
pgawk.1
gawk.1 => pgawk.1
$ ls -inl *gawk*
ls -inl
total 184
1130522 -rw-r--r-- 2 501 501 78716 Jul 24 08:57 gawk.1
1130521 -rw-r--r-- 1 501 501 1160 Jul 24 08:57 igawk.1
1130522 -rw-r--r-- 2 501 501 78716 Jul 24 08:57 pgawk.1
So rsync alone works.
However, BackupPC_attribPrint shows that all the gawk files are backed
up as regular files (type=0) rather than as special hard link types.
'igawk.1' => {
'uid' => 1005,
'mtime' => 1193390884,
'mode' => 33216,
'size' => 1160,
'sizeDiv4GB' => 0,
'type' => 0,
'gid' => 513,
'sizeMod4GB' => 1160
},
'gawk.1' => {
'uid' => 1005,
'mtime' => 1193390883,
'mode' => 33216,
'size' => 78211,
'sizeDiv4GB' => 0,
'type' => 0,
'gid' => 513,
'sizeMod4GB' => 78211
},
'pgawk.1' => {
'uid' => 1005,
'mtime' => 1196873396,
'mode' => 33216,
'size' => 78211,
'sizeDiv4GB' => 0,
'type' => 0,
'gid' => 513,
'sizeMod4GB' => 78211
}
Also, the mtimes are not the same. Not sure what is going on here...
Interestingly it works when backing up a Linux server over rsync...
On a linux machine backup I get:
'pgawk.1.gz' => {
'uid' => 0,
'mtime' => 1171288387,
'mode' => 33188,
'size' => 25099,
'sizeDiv4GB' => 0,
'type' => 1,
'gid' => 0,
'sizeMod4GB' => 25099
'gawk.1.gz' => {
'uid' => 0,
'mtime' => 1171288387,
'mode' => 164260,
'size' => 25099,
'sizeDiv4GB' => 0,
'type' => 0,
'gid' => 0,
'sizeMod4GB' => 25099
'igawk.1.gz' => {
'uid' => 0,
'mtime' => 1171288387,
'mode' => 33188,
'size' => 657,
'sizeDiv4GB' => 0,
'type' => 0,
'gid' => 0,
'sizeMod4GB' => 657
},
Here we have type=1 appropriately for one of the files and the mtimes
are the same. So with Linux it seems to be working right...
Any idea what might be going on here????
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|