Using --fuzzy
I have a lot of files (and directories) (up to a few hundred at a time) that I get from various sources. Some time after I get them (after they are already backed up), I often have to move them around and normalize their names. When I do this, rsync sees them as unrelated to the copies of these files which are already on the backup destination. When I can't use the --delete option for various reasons, this causes multiple copies of the files to be saved in the backup destination. I see that there is a --fuzzy option which, specified twice, may address this issue. Is there a tutorial or howto that addresses this so I can better understand it before I start experimenting? I don't want to have to reinvent strategies which, doubtless, already exist. -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Using --fuzzy
On 11/16/2014 03:53:12 PM, Joe wrote: I have a lot of files (and directories) (up to a few hundred at a time) that I get from various sources. Some time after I get them (after they are already backed up), I often have to move them around and normalize their names. When I do this, rsync sees them as unrelated to the copies of these files which are already on the backup destination. I don't know if it suits your use case but you could consider using hardlinks. If, instead of moving the files, you hardlinked them then rsync with -H would see the files as being the same. (Hardlinking can only be done within a filesystem.) Then you'd have to delete the original filenames and rsync again. This is only practicable if it's easy to delete the old filenames, say, if all the new files arrive in a single directory that can later be deleted. Karl k...@meme.com Free Software: You don't pay back, you pay forward. -- Robert A. Heinlein -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Using --fuzzy
Great idea which I will keep in mind for other cases! In this case, however, the backups are on separate partitions on external USB drives (I have a notebook), so hard links won't work. Joe On 11/16/2014 07:38 PM, Karl O. Pinc wrote: On 11/16/2014 03:53:12 PM, Joe wrote: I have a lot of files (and directories) (up to a few hundred at a time) that I get from various sources. Some time after I get them (after they are already backed up), I often have to move them around and normalize their names. When I do this, rsync sees them as unrelated to the copies of these files which are already on the backup destination. I don't know if it suits your use case but you could consider using hardlinks. If, instead of moving the files, you hardlinked them then rsync with -H would see the files as being the same. (Hardlinking can only be done within a filesystem.) Then you'd have to delete the original filenames and rsync again. This is only practicable if it's easy to delete the old filenames, say, if all the new files arrive in a single directory that can later be deleted. Karl k...@meme.com Free Software: You don't pay back, you pay forward. -- Robert A. Heinlein -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Using --fuzzy
The backups can be on separate partitions. What must be on one partition is the file and it's hard link. On November 16, 2014 6:58:26 PM CST, Joe jose...@main.nc.us wrote: Great idea which I will keep in mind for other cases! In this case, however, the backups are on separate partitions on external USB drives (I have a notebook), so hard links won't work. Joe On 11/16/2014 07:38 PM, Karl O. Pinc wrote: On 11/16/2014 03:53:12 PM, Joe wrote: I have a lot of files (and directories) (up to a few hundred at a time) that I get from various sources. Some time after I get them (after they are already backed up), I often have to move them around and normalize their names. When I do this, rsync sees them as unrelated to the copies of these files which are already on the backup destination. I don't know if it suits your use case but you could consider using hardlinks. If, instead of moving the files, you hardlinked them then rsync with -H would see the files as being the same. (Hardlinking can only be done within a filesystem.) Then you'd have to delete the original filenames and rsync again. This is only practicable if it's easy to delete the old filenames, say, if all the new files arrive in a single directory that can later be deleted. Karl k...@meme.com Free Software: You don't pay back, you pay forward. -- Robert A. Heinlein Karl k...@meme.com Free Software: You don't pay back, you pay forward. -- Robert A. Heinlein -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
[Bug 10936] Rsync path hijacking attack vulnerability
https://bugzilla.samba.org/show_bug.cgi?id=10936 --- Comment #2 from gaojianfeng gaojianf...@baidu.com --- (In reply to roland from comment #1) yes -- You are receiving this mail because: You are the QA Contact for the bug. -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html