Askar Safin
2014-Dec-27 01:20 UTC
Re[2]: --link-dest --inplace updates files without unlinking. What to do?
I don't specify --partial-dir. As you can see from the script, rsync at first copies to "in-progress", and then renames this to (for example) 2014-12-01-000000. So, if rsync interrupts, then at the next run the script will end "in-progress" (all partial files will be done) and then will rename this dir to 2014-12-01-000000. So, there never will be partial files in finished snapshots. =Askar Safin http://vk.com/safinaskar Kazan, Russia
Kevin Korb
2014-Dec-27 01:21 UTC
--link-dest --inplace updates files without unlinking. What to do?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Then you still have the problem of already created links being updated. On 12/26/2014 08:20 PM, Askar Safin wrote:> I don't specify --partial-dir. As you can see from the script, > rsync at first copies to "in-progress", and then renames this to > (for example) 2014-12-01-000000. So, if rsync interrupts, then at > the next run the script will end "in-progress" (all partial files > will be done) and then will rename this dir to 2014-12-01-000000. > So, there never will be partial files in finished snapshots. == > Askar Safin http://vk.com/safinaskar Kazan, Russia >- -- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. Kevin at FutureQuest.net (work) Orlando, Florida kmk at sanitarium.net (personal) Web page: http://www.sanitarium.net/ PGP public key available on web site. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlSeCbYACgkQVKC1jlbQAQe77QCdGZxvAmBAbexVSjS2P41etvmA miUAoLW4liFZXH5+3Zty6NFOJSqV2O2j =kb7t -----END PGP SIGNATURE-----
Askar Safin
2014-Dec-27 01:32 UTC
Re[2]: --link-dest --inplace updates files without unlinking. What to do?
No. Now there is no --inplace. So, rsync will never write new file directly into old one (without unlinking). If there already is old file and it needs updating, then rsync will write into something like .file-He4gw, and then it will rename this file to its right name. This new file will not have any hardlinks to old files =Askar Safin http://vk.com/safinaskar Kazan, Russia
Reasonably Related Threads
- Re[2]: --link-dest --inplace updates files without unlinking. What to do?
- --link-dest --inplace updates files without unlinking. What to do?
- Re[2]: --link-dest --inplace updates files without unlinking. What to do?
- Re[2]: --link-dest --inplace updates files without unlinking. What to do?
- Re[2]: --link-dest --inplace updates files without unlinking. What to do?