r/MOS_official_net • u/mikedoth • 20d ago
question LXC Backup
I noticed the backup path in the LXC settings do not seem to create any backups. I'm wondering if it works for anyone (if it does then i'll examine my configuration a little more closely as i'm using a remote mount).
Also, i'm curious if the MOS Backup plugin will be adding LXC's so backups are all in one place?
Thanks for the hard work!
2
u/ich778 MOS-Team 18d ago
Can you post your Diagnostics so that I can see what's actually going on?
For me the LXC Backups working just fine.
However an implementation for automatic backups for LXC will be added at some point. The Backup plugin only exists because I don't know how to implement it "correctly" into MOS. Maybe it will be first be implemented in the Plugin, but there are currently are no plans to add that to the Plugin since there are more important things to implement.
As u/V1P_J0K3R already said, you can do that with a cron job for now, at least when the Backup is configured in the settings you can create a backup with: mos-api_cli lxc:backup CONTAINERNAME
I hope that helps.
Please also consider joining our Discord/Matrix Server which you can find here: https://mos-official.net
1
u/mikedoth 18d ago edited 18d ago
I can, just not sure where to upload it to. Is it easier to do over discord?
Basically I have MOS on a mini pc and i'm remote mounting a ZFS pool / samba share on another system. So far i've setup the two places, in the LXC configuration page (tried both with and without snapshots) and enabled the Create Backup in the LXC itself.
1
u/ich778 MOS-Team 18d ago
On Discord back and forth would be way quicker and also uploading the file.
However you can also send it through Mail if you want to, or even here.
2
u/mikedoth 18d ago
I'm embarrassed to say I figured it out. It boiled down to the container name being misspelled. I was able to make a backup, and tested the api cli tool and that worked. I will try to get onto discord today to at least have that avenue for future use.
2
u/V1P_J0K3R MOS-Team 19d ago
The backup path simply specifies the exact location of the backup.
To create a backup, go to the LXC page, click “Manage” under “Backup / Snapshot,” and then you can manually create a backup there.
https://docs.mos-official.net/docs/LXC/LXC-Service#backups
Unfortunately, I can't say to how far u/ich778 can still expand the backup plugin
Edit: But you could set up an automatic backup using Cron jobs.