840 B
840 B
Features
- Creates incremental snapshots using rsnapshot
- Supports multiple backup targets
- Mount/unmount hooks for external storage
- Pre/post backup hooks for custom scripts
- Configurable snapshot retention
- Automatic state folder detection
Usage
Enable the localbackup service and configure backup targets:
instances = {
localbackup = {
module.name = "@clan/localbackup";
module.input = "self";
roles.default.machines."machine".settings = {
targets.external= {
directory = "/mnt/backup";
mountpoint = "/mnt/backup";
};
};
};
};
Commands
The service provides these commands:
localbackup-create: Create a new backuplocalbackup-list: List available backupslocalbackup-restore: Restore from backup (requires NAME and FOLDERS environment variables)