itzg / docker-mc-backup

Provides a side-car container to backup itzg/minecraft-server world data
https://hub.docker.com/r/itzg/mc-backup
MIT License
334 stars 52 forks source link

rsync: switch from delete to exec rm #168 #169

Closed toddejohnson closed 9 months ago

toddejohnson commented 9 months ago

This fixes #168 as it switches from -delete which acts like rmdir to -exec rm -r + which is like: rm -r folder1 folder2

There is also -exec rm -r \; that would be like rm -r folder1;rm -r folder2 but I'd hope we don't get past maximum argument length cleaning the folders we just created. I'm documenting this here as it is an easy 2 character change if the other option is preferred.

Thank you for keeping this together!