Hacker News new | ask | show | jobs
by Zta77 53 days ago
I don't have a recommended or official way. But you could look into using `btrfs send` to send the data filesystem subvolume to a backup host, preferably initiated from the backup host, e.g. by ssh into the Lightwhale server and do the send. And there's always rsync.

One nice thing to keep in mind, is that all data that is ever written in Lightwhale, exists in /mnt/lightwhale-data/lightwhale-state. Data is not entangled with the rest of the system in the rootfs.

The tricky part perhaps is that you should sync all container data to disk prior to taking the backup (or snapshot) to be sure you have a clean state. And the only safe way I can think if, is to stop all containers first. But I think this goes for every Docker Engine.