Comment 6 for bug 1434722

Revision history for this message
Germar (germar) wrote :

Okay, here is what happens:
- BIT will decide if there where changes and a new snapshot should be taken/kept based on the output of rsync
- with 'Full rsync mode' deactivated we create hard-links in a separate step with 'cp -aRl' and rsync will sync the current local status over the existing hard-links. If a file was locally removed rsync will remove the hard-link on remote, too and print a message about what it has done
- with 'Full rsync mode' activated rsync will create hard-links with '--link-dest' and sync over current local status in one step. So if there was a local file deleted rsync will simply just not hard-link that file on remote and won't say anything about that. So BIT doesn't know what happened and if there where no other changes it will suppose that there was no changes at all and remove the new snapshot again.

I'm not sure if there is a way to tell rsync to print out a message when there was more files in --link-dest than local which could be used to determine there actually was a change.

But I'll add an option (as you suggested) to keep snapshots with 'Full rsync mode' regardless if there were changes or not.