Hi Scott,
Thanks for the thoughtful reply. You have a good approach, I don't think anything would be lost, but I think files could be linked in that shouldn't be there.
Unfortunately I can't just set the broken stuff aside, I have about 20TB of data here and the raid is about 95% full.
On 06/03/2015 12:18 PM, Scott Hess wrote:
If it's a limited amount of unlinked data, then one approach you could use is:
mv weekly.0 weekly.0.broken
cp -al weekly.1 weekly.0
rsync -aHS weekly.0.broken/ weekly.1/
rm -rf weekly.0.broken
This will take an existing correct backup (weekly.1), then rsync _over_ it. Depending on what kind of fidelity you want to the brokenness, you might add --delete to the rsync command. Basically just read the rsnapshot.log and figure out a script which will replicate the gist of it.
BUT! Obviously you need to be really careful, and you would be well advised to spend a bit of time thinking about how this is going to affect your overall backup. Normally I would not expect rsnapshot to leave you with fragmentary unlinked backups. Having something you believe to be that implies that your tip-of-stream is disconnected from your older backups, and hot-patching one or two directories isn't going to resolve that. In that case I'd think even harder about the problem, and maybe even fake up a simple rsnapshot sandbox to experiment with, to make sure I'm making things better rather than worse.
Also ... IMHO you might be best served to shift those broken directories aside and set a calendar entry to manually delete them after an appropriate time, and not treat them as part of your normal rsnapshot stream. Those broken snapshot directories are mis-leading, and I'd worry about mistakes made in six months when something else comes up and you have to manually intervene.
-scott
On Wed, Jun 3, 2015 at 7:49 AM, Winkel, Richard J. <***@missouri.edu<mailto:***@missouri.edu>> wrote:
Because of an undetected disk overflow I have fragmented copies of
partial rsnapshot backups on a raid.
I'd rather not just go back to the last intact backup, but find a way to
merge the new data with the existing
tree. In other words, scan directories A and B and
if files A/subpathK/fileX and B/subpathK/fileX exist and are identical,
then link them together, otherwise do nothing.
Rsync (3.1.1) doesn't seem to be the tool to use, at least I can't
figure it out.
Has anyone else run across this issue and how did you resolve it?
Thanks,
Rich
------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-***@lists.sourceforge.net<mailto:rsnapshot-***@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss