Hi all
I’m running several docker containers with local persistent volumes that I would like to backup. I haven’t found an easy method to do so.
What do you use / recommend to do that? AFAIK you can’t just rsync the volume directory while the container is running.
I have a script that reads all my compose files to determine each container’s persistent data (though this could also be done with docker inspect) and then uses docker cp to pipe it into restic, which can use data from stdin.
docker cp mycontainer:/files - | restick backup --stdin --stdin-filename mycontainer
Stopping databases is on my todo list.