• 4 Posts
  • 49 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
    21 days 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.












  • Do feel it is designed to scare normal users though.

    Like how the GUI software updater now shows a list of security updates, and then “there are more security updates available with Ubuntu pro” in the list of updates…. the obvious implication is “you’re computer has other known vulnerabilities that can only be fixed if you pay up”.

    Liiittlle bit ransomey and let be honest that’s by design.

    Wouldn’t consider myself part of the anti canonical pitchfork crowd but that new behaviour did irk me somewhat.

    If Microsoft did that people would be up in arms. Appreciate canonical provide Ubuntu is free but normal users wouldn’t get that nuance as they don’t think they pay for windows.