Hi Everyone

I need some help

I’m currently selfhosting some of my applications on Digital Ocean and i run a container using Portainer CE. I was wondering how you guys keep backups for the applications running on docker.

I’m currently using Digital ocean’s snapshots feature but is there a better way i could use, any help on this is highly appreciated.

  • king_hreidmar@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    I just run a pg_dump through kubectl exec and pipe the stdout to a file on my master node. The same script then runs restic to send encrypted backups over to s3. I use the host name flag on the restic command as kind of a hack to get backups per service name. This eliminates the risk of overwriting files or directories with the same name.

  • lgLindstrom@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    When backing up Docker volumes, should not the docker container be stopped first.?? I can’t se any support for that in the backup tools mentioned.

  • clericc--@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    Borgbackup, borgmatic to two backup targets: one in my home and a Hetzner Storage Box. Amongst other things, i include /var/lib/docker/volumes, covering the not-filesystem-bound mounts.

    • Jacksaur@alien.topB
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 months ago

      What retention do you run?
      I’m setting up the same system, but don’t know how far back I need. Currently considering 7 daily backups, so I can restore to any point within the week, and 2-3 Monthly backups in case there’s an issue I miss for a real long period.

  • fjch1997@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    duplicati to take live, crash-consistent backups of all my windows servers and VMs with Volume Shadowcopy Service (VSS)

    • Juxsta0@alien.topB
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 months ago

      I use an Ubuntu vm for all my containers in proxmox and make backups of the vm onto my zfs pool

  • krimsonstudios@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    Proxmox Backup Server (PBS) snapshotting all my VM’s / LXC’s.

    External VPS’ and anything that can’t run PBS-Client I am rsync’ing important data into my home network first, then doing a file based backup of that data to PBS via PBS-Client tool. All this is automated through cron jobs.

    Those backups then get sync’d to a 2nd datastore for a bit of redundancy.