backups: support services for restore

This commit is contained in:
lassulus
2023-12-08 18:40:18 +01:00
parent 57bded996b
commit dec431e69f
5 changed files with 147 additions and 89 deletions

View File

@@ -50,9 +50,14 @@
description = ''
script to restore a backup
should take an optional service name as argument
gets ARCHIVE_ID, LOCATION, JOB and FOLDERS as environment variables
ARCHIVE_ID is the id of the backup
LOCATION is the remote identifier of the backup
JOB is the job name of the backup
FOLDERS is a colon separated list of folders to restore
'';
};
start = lib.mkOption {
create = lib.mkOption {
type = lib.types.str;
description = ''
script to start a backup