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.

  • mirisbowring@lemmy.primboard.de
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Exactly the reason why i always exchange the volumes in any compose file with bind mounts.

    Also you don‘t have the provlem of many dangling volumes

    • asjmcguire@kbin.social
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      I don’t even understand what the advantage is to using volumes rather than mounts? So I too always use mounts.

      • retrodaredevil@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        I’m not sure either. The only thing I could come up with is that with volumes you don’t have to worry about file ownership. That’s usually taken care of for you with volumes from what I understand.