-
Notifications
You must be signed in to change notification settings - Fork 0
Backups
The management scripts include a mechanism to create backups of the instances, i.e. instance configurations, logs and save folders.
These backups are stored in the folder defined in /etc/lmm.conf in the variable LMM_BACKUP_ROOT.
The backups will automatically be put in a new folder with the name being the current date and time.
As the backups use hard links there will be no duplicated data, i.e. two consecutive backups will only take up additional disk space for the files that actually differ between the two. Still you can view any backup as being a whole backup.
To create a new backup just run:
lmm.sh backup
See Installation - Enable cron jobs for details on how to enable the automatic backup system.
- LMM_BACKUP_MIN_BACKUPS_KEEP: Number of backups to keep at a minimum, regardless of what the other options specify (e.g. always keep the 5 newest backups, even if their size exceeds the limit).
- LMM_BACKUP_MAX_BACKUPS: Number of backups to keep at most.
- LMM_BACKUP_MAX_STORAGE: Maximum disk space the backups may take up in total (given in MiB).
- LMM_BACKUP_MAX_AGE: Maximum age backups may have before purged (given in hours).
-
LMM_BACKUP_COMPRESS: Should backups be compressed? Valid values:
- none: Keep all backups as plain folders
- old: Compress all backups but the latest
- all: Compress all backups
Note: Setting compress to all obviously negates the positive effect of hard links between backups.