45Drives / cephgeorep

An efficient unidirectional remote backup daemon for CephFS.
GNU Lesser General Public License v2.1
58 stars 13 forks source link

deletion support #43

Open enuzzi opened 2 years ago

enuzzi commented 2 years ago

If a file in the source is deleted, I don't see any support in cephgeorep to delete the file in the destination. Is that a planned future feature or am I missing something? Does a full rsync with --delete need to be run periodically for a full reconciliation with deletes?

joshuaboud commented 2 years ago

Due to the way cephgeorep works, tacking the --delete flag to the execution arguments won't work as expected, and will delete everything not in the current batch it's syncing. You are correct that a periodic full rsync with --delete is needed. I believe there is some combination of rsync flags that will only delete remote files without resending any existing ones, but I can't remember off the top of my head what they are. Definitely use --dry-run first and let us know which flags work for you, as this would be good information for the README.