Matthias Liffers@social.tthi.astoSelfhosted@lemmy.world•Trouble moving a container and its data to another server
3·
1 year agoI’ve done a couple of host migrations since using Docker for all my services.
I don’t even bother with database dumps or anything like that, I copy my compose files and mapped directories, being sure to preserve permissions, and all my services come back up without any issues.
I’m using Autorestic, a wrapper for Restic that lets you specify everything in a config file. It can fire hooks before/after backups so I’ve added it to my healthchecks instance to know if backups were completed successfully.
One caveat with Restic: it relies on hostnames to work optimally (for incremental backups) so if you’re using Autorestic in a container, set the
host:
option in the config file. My backups took a few hours each night until I fixed this - now they’re less than 30 minutes.