Paul Johnson
2008-Feb-06 06:14 UTC
Windows Trouble with --link-dest set: "file not found" when rsync tries to create hard link
I have great luck running rsync from one linux system to another, or from a windows system (with cwRsync) to a linux system. But when I try to do an rsync backup from one directory on a Windows system to another, it fails. The cwRsync says its version is 2.6.9. Here's my Rsync command, boiled down to its simplest: rsync -rlptgD -vvv --delete --delete-excluded --modify-window=2 --numeric-ids --link-dest=/cygdrive/c/crapbackup/backup4 /cygdrive/c/BackupSource/ /cygdrive/c/crapbackup/backup5/ I run this over and over, incrementing backup4 to backup5 for link-dest and backup5 to backup6 on the target dir. I can watch the new backups being created, I can see the files going over. The hard links are never created, however. After wrestling with this a lot, I started reading your email archives and learned of various problems over time, but not one quite like this. Here's the error part in the verbose output: recv_generator(putty.exe,5) rsync: link "/cygdrive/c/crapbackup/backup5/putty.exe" => /cygdrive/c/crapbackup/backup4/putty.exe failed: No such file or directory (2) send_files(5, /cygdrive/c/BackupSource/putty.exe) set modtime of putty.exe to (1201715055) Wed Jan 30 11:44:15 2008 But the file in backup4 DOES EXIST. C:\Documents and Settings\pauljohn\My Documents>dir c:\crapbackup\backup4\putty.exe dir c:\crapbackup\backup4\putty.exe Volume in drive C has no label. Volume Serial Number is 8003-3493 Directory of c:\crapbackup\backup4 01/30/2008 11:44 AM 454,656 putty.exe 1 File(s) 454,656 bytes 0 Dir(s) 27,704,442,880 bytes free C:\Documents and Settings\pauljohn\My Documents>dir c:\crapbackup\backup5\putty.exe dir c:\crapbackup\backup5\putty.exe Volume in drive C has no label. Volume Serial Number is 8003-3493 Directory of c:\crapbackup\backup5 01/30/2008 11:44 AM 454,656 putty.exe 1 File(s) 454,656 bytes 0 Dir(s) 27,704,442,880 bytes free -- Paul E. Johnson Professor, Political Science 1541 Lilac Lane, Room 504 University of Kansas
Ming Zhang
2008-Feb-06 15:45 UTC
Windows Trouble with --link-dest set: "file not found" when rsync tries to create hard link
On Wed, 2008-02-06 at 00:14 -0600, Paul Johnson wrote:> I have great luck running rsync from one linux system to another, or > from a windows system (with cwRsync) to a linux system. > > But when I try to do an rsync backup from one directory on a Windows > system to another, it fails. The cwRsync says its version is 2.6.9. >does window ntfs ever support hard link??? i do not think so...> Here's my Rsync command, boiled down to its simplest: > > > rsync -rlptgD -vvv --delete --delete-excluded --modify-window=2 > --numeric-ids --link-dest=/cygdrive/c/crapbackup/backup4 > /cygdrive/c/BackupSource/ /cygdrive/c/crapbackup/backup5/ > > I run this over and over, incrementing backup4 to backup5 for > link-dest and backup5 to backup6 on the target dir. > > I can watch the new backups being created, I can see the files going > over. The hard links are never created, however. After wrestling with > this a lot, I started reading your email archives and learned of > various problems over time, but not one quite like this. Here's the > error part in the verbose output: > > recv_generator(putty.exe,5) > rsync: link "/cygdrive/c/crapbackup/backup5/putty.exe" => > /cygdrive/c/crapbackup/backup4/putty.exe failed: No such file or > directory (2) > send_files(5, /cygdrive/c/BackupSource/putty.exe) > set modtime of putty.exe to (1201715055) Wed Jan 30 11:44:15 2008 > > > But the file in backup4 DOES EXIST. > > > C:\Documents and Settings\pauljohn\My Documents>dir > c:\crapbackup\backup4\putty.exe > dir c:\crapbackup\backup4\putty.exe > Volume in drive C has no label. > Volume Serial Number is 8003-3493 > > Directory of c:\crapbackup\backup4 > > 01/30/2008 11:44 AM 454,656 putty.exe > 1 File(s) 454,656 bytes > 0 Dir(s) 27,704,442,880 bytes free > > C:\Documents and Settings\pauljohn\My Documents>dir > c:\crapbackup\backup5\putty.exe > dir c:\crapbackup\backup5\putty.exe > Volume in drive C has no label. > Volume Serial Number is 8003-3493 > > Directory of c:\crapbackup\backup5 > > 01/30/2008 11:44 AM 454,656 putty.exe > 1 File(s) 454,656 bytes > 0 Dir(s) 27,704,442,880 bytes free > > > > -- > Paul E. Johnson > Professor, Political Science > 1541 Lilac Lane, Room 504 > University of Kansas-- Ming Zhang @#$%^ purging memory... (*!% http://blackmagic02881.wordpress.com/ http://www.linkedin.com/in/blackmagic02881 --------------------------------------------
Paul Johnson
2008-Feb-06 19:57 UTC
Windows Trouble with --link-dest set: "file not found" when rsync tries to create hard link
On Feb 6, 2008 9:45 AM, Ming Zhang <blackmagic02881@gmail.com> wrote:> On Wed, 2008-02-06 at 00:14 -0600, Paul Johnson wrote: > > I have great luck running rsync from one linux system to another, or > > from a windows system (with cwRsync) to a linux system. > > > > But when I try to do an rsync backup from one directory on a Windows > > system to another, it fails. The cwRsync says its version is 2.6.9. > > > > does window ntfs ever support hard link??? i do not think so... >Yes, ntfs has hard and soft links. hard links on directories are called "junctions" http://shell-shocked.org/article.php?id=284 http://www.flexhex.com/docs/articles/hard-links.phtml I suppose my question should be whether rsync and cwRsync can navigate them. Otherwise, somebody needs to put a big bright warning note somewhere around here. PJ -- Paul E. Johnson Professor, Political Science 1541 Lilac Lane, Room 504 University of Kansas
Ming Zhang
2008-Feb-06 20:59 UTC
Windows Trouble with --link-dest set: "file not found" when rsync tries to create hard link
On Wed, 2008-02-06 at 13:57 -0600, Paul Johnson wrote:> On Feb 6, 2008 9:45 AM, Ming Zhang <blackmagic02881@gmail.com> wrote: > > On Wed, 2008-02-06 at 00:14 -0600, Paul Johnson wrote: > > > I have great luck running rsync from one linux system to another, or > > > from a windows system (with cwRsync) to a linux system. > > > > > > But when I try to do an rsync backup from one directory on a Windows > > > system to another, it fails. The cwRsync says its version is 2.6.9. > > > > > > > does window ntfs ever support hard link??? i do not think so... > > > > Yes, ntfs has hard and soft links. hard links on directories are > called "junctions"soft link is totally different from hard link. that junction on directory is not the same meaning of hard link in Unix concept.> > http://shell-shocked.org/article.php?id=284 > > http://www.flexhex.com/docs/articles/hard-links.phtml > > I suppose my question should be whether rsync and cwRsync can navigate > them. Otherwise, somebody needs to put a big bright warning note > somewhere around here.sorry i donot know.> > PJ >-- Ming Zhang @#$%^ purging memory... (*!% http://blackmagic02881.wordpress.com/ http://www.linkedin.com/in/blackmagic02881 --------------------------------------------