Andrei_r20
2010-Feb-18 14:50 UTC
rsync: stat "/path/to/dest/file" failed: No such file or directory (2)
Well, the title says it all.. I tried to research on this subject, but didn't find anything conclusive to me. Can somebody explain that error? If the file on destination isnt there, why not just copy it from source, why an error? I did a backup with rsync -aH --linkdest="/path/to/linkdir" /path/to/original /path/to/backup... basically rsyncing into an empty hierarchy. No errors here. Now, the errors come when i try to recover, after replacing the original harddrive with an older disk backup. The command is rsync -aH --delete /path/to/backup/ /path/to/original/ this is when i get this error: rsync: stat "/path/to/original/file" failed: No such file or directory (2) many files have changed since but the main hierarchy stayed the same... what is the problem? Thanks for clarifying me on that. PS: rsync is running in "local" mode where the /path/to/original is an nfs mounted filesystem. -- View this message in context: http://old.nabble.com/rsync%3A-stat-%22-path-to-dest-file%22-failed%3A-No-such-file-or-directory-%282%29-tp27637822p27637822.html Sent from the Samba - rsync mailing list archive at Nabble.com.
Andrei_r20
2010-Feb-18 15:16 UTC
rsync: stat "/path/to/dest/file" failed: No such file or directory (2)
okay, here is an update: I tried removing the -H option on the recovery part and I dont get the error anymore... so the files it was complaining about were all hard links... but I still don't get it. Am i recovering to the exact same image as when the backup was taken? For now, all my tries were dry-runs, blut without -H, hard links are supposed to be treated as independent files, so the occupied volume will be increased once recovered... and with 40 000 hard links that I have in the hierarchy, I might run out of disk space... -- View this message in context: http://old.nabble.com/rsync%3A-stat-%22-path-to-dest-file%22-failed%3A-No-such-file-or-directory-%282%29-tp27637822p27637829.html Sent from the Samba - rsync mailing list archive at Nabble.com.
Seemingly Similar Threads
- DO NOT REPLY [Bug 3693] New: rsync can use same --link-dest file several times, leading to incorrect hard links
- Bug#666024: rsync --link-dest can incorrectly hardlink together destination files
- --detect-moved patch and --link-dest
- I don't get --link-dest, at all
- check "--link-dest" directory first