• 2 Posts
  • 20 Comments
Joined 2 years ago
cake
Cake day: June 18th, 2023

help-circle




  • Rade0nfighter@lemmy.worldtoLinux@lemmy.mlBackup solution for docker volumes
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    9 months ago

    This is a classic conundrum.

    Containers and their volumes are supposed to be ephemeral (right?).

    Yet we use them to run little apps where we configure settings etc in the app which we would like to “keep” - thus back up. Yes in a proper set up you would hook your container up to something that is not ephemeral like a database somewhere, but often we just want an app, see it’s got a self contained docker image, and just run it.

    Whilst not in the spirit of things… I’ve tried using Borg backup however it just fails due to random permissions on the volumes.

    I should spend more time looking into it but haven’t the time right now, could be the solution is specific to the app/container but the simplicity of just backing up a /volumes/* directory is soooo tempting…

    Edit upon reflection, what about a sudo cron tab to zip volumes and set useful permissions on the zip. Then Borg to backup the zip. Borg (or at least vorta) can easily run scripts before/after and pass variables relating to the backup though.
















  • Rade0nfighter@lemmy.worldtoLinux@lemmy.mlUbuntu or pop! os
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    2 years ago

    What device are you intending to use, you mention you’re using macos so I’m guessing Apple hardware?

    Just thought I’d share my experience with pop on my MacBook in case we can help each other 😂. Basically I was dead set on pop but couldn’t get it to install for the life of me - the installer showed my disk as being a fraction of the size it was, even exfat volumes created by the installer. So I had to shrink other os petitions like crazy so I could trick it into thinking there was enough space.

    There was no option to encrypt the disk in the installer and it didn’t play nice when I created my own LUKS container.

    After several hours of trying to beat it into submission I ended up using Ubuntu’s legacy installer and was up and running in 15 mins.

    So yeah if you are using Apple hardware and get pop playing nice please share any tips :)