Askar Safin
2014-Dec-26 23:50 UTC
Re[2]: --link-dest --inplace updates files without unlinking. What to do?
Ok, thanks. I removed --inplace and --append-verify and kept --link-dest and --partial. And now the script works exactly as I want: hard-links are not updated, the script is still robust and can copy large files over unstable links etc, etc. =Askar Safin http://vk.com/safinaskar Kazan, Russia
Kevin Korb
2014-Dec-27 00:57 UTC
--link-dest --inplace updates files without unlinking. What to do?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Are you specifying --partial-dir? Seems like that would be needed or else you will end up would end up with an incomplete copy in the previous target? On 12/26/2014 06:50 PM, Askar Safin wrote:> Ok, thanks. I removed --inplace and --append-verify and kept > --link-dest and --partial. And now the script works exactly as I > want: hard-links are not updated, the script is still robust and > can copy large files over unstable links etc, etc. == 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 iEYEARECAAYFAlSeA/gACgkQVKC1jlbQAQd7DgCgz1JuC6Yue2jVdYrLgdOniabe fhcAoO6GjafDzUzbntL4aK1Jf/zswRgq =PLf4 -----END PGP SIGNATURE-----
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
Maybe Matching Threads
- 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?
- Re[2]: --link-dest --inplace updates files without unlinking. What to do?
- Re[2]: --link-dest --inplace updates files without unlinking. What to do?