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.

  • @irreducible12302
    link
    21 year ago

    I personally use a script which stops all containers, rsyncs the bind mounts (normal folders on the filesystem) and then restarts them. It runs every night so it isn’t a problem that services are down for a few minutes.

    Ideally, you would also make a database dump instead of just backing up the bind mounts.