jimsalterjrs / sanoid

These are policy-driven snapshot management and replication tools which use OpenZFS for underlying next-gen storage. (Btrfs support plans are shelved unless and until btrfs becomes reliable.)
http://www.openoid.net/products/
GNU General Public License v3.0
3.14k stars 308 forks source link

syncoid delete option #869

Closed madmax01 closed 11 months ago

madmax01 commented 11 months ago

Hi Team,

In Case source don't have Data X anymore > can you please add an feature so its deleting it on the target

syncoid root@host:pool1 pool1/backup --no-resume --no-stream --no-privilege-elevation --recursive --no-sync-snap --source-bwlimit 100g --target-bwlimit 100g --compress none

when vm moved to other host then data not valid anymore on first host. thx

Derkades commented 11 months ago

If the VM images are zvols, --force-delete should delete them on the destination if they no longer exist on the source.

madmax01 commented 11 months ago

ah i didn't used the --force-delete

seems with above sync cares already about data.... it delete and create. all good thx ;)