solved bugs

This commit is contained in:
2023-04-26 23:26:12 +02:00
parent 7eed695623
commit 61c787d186
3 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,8 @@
[Unit]
Description=backing up data
OnFailure=systemd-email@%n.service
ConditionPathExists={{backup_to_swappable_destination_path}}
[Service]
Type=oneshot
ExecStart=/usr/bin/bash {{backup_to_swappable_script_path}}
ExecStart=/usr/bin/bash {{backup_to_swappable_script_path}} {{backup_to_swappable_destination_path}} {{backup_to_swappable_source_path}}

View File

@@ -1,3 +1,2 @@
backup_to_swappable_folder: "{{path_administrator_scripts}}backup-to-swappable/"
backup_to_swappable_destination_path: "{{backup_to_swappable_destination_path}}backup-to-swappable/"
backup_to_swappable_script_path: "{{backup_to_swappable_folder}}backup-to-swappable.sh"