workspaces-issues icon indicating copy to clipboard operation
workspaces-issues copied to clipboard

Automated Backup: What Directories Should I Backup?

Open FirbyKirby opened this issue 1 year ago • 0 comments

I've successfully deployed Kasm via the linuxserver.io Kasm docker image and am very happy with the results. I also have an automated backup script that copies, moves, and compresses the kasm persistent docker data directory (container directory /opt) and the persistent profiles directory (container directory /profiles). This script works well, and I've successfully restored using it.

However, the backup archive for Kasm is excessively large with this current setup. I am confidant this is because I'm backing up all of the Kasm DinD container and image data as well. So, can you tell me the minimum set of sub-directories within the container directories of /opt and /profiles I need to backup to be able to restore in the future successfully?

My guess is that I need to backup the /profiles directory to retain my persistent session data, as well as the /opt/kasm directory. I think I can skip /opt/docker and /opt/containerd since I believe those are the standard docker directories. Please help me confirm this.

I am aware the GUI has an official configuration backup and restore function under Diagnostics -> System Info, and I'd be delighted to use it, but I don't see a way I can integrate this into my nightly automated backup script on the server that runs the Kasm container.

FirbyKirby avatar Jan 12 '24 18:01 FirbyKirby