nixos/borgbackup: Add option createCommand
Add an option `service.borgbackup.jobs.<name>.createCommand` that allows using `borg import-tar` rather than `borg create` to import an archive.
This commit is contained in:
@@ -98,7 +98,7 @@ in
|
||||
dumpCommand = pkgs.writeScript "createTarArchive" ''
|
||||
${lib.getExe pkgs.gnutar} cf - ${dataDir}
|
||||
'';
|
||||
dumpCommandProducesTar = true;
|
||||
createCommand = "import-tar";
|
||||
repo = localTarRepo;
|
||||
# Make sure in import-tar mode encryption flags are still respected.
|
||||
encryption = {
|
||||
|
||||
Reference in New Issue
Block a user