mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Finished backup-to-swappable draft
This commit is contained in:
@@ -0,0 +1 @@
|
||||
ACTION=="add", KERNEL=="sd[a-z]", ENV{ID_SERIAL_SHORT}=="{{backup_to_swappable_serial_short}}", RUN+="systemctl start backup-to-swappable.service"
|
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=backing up data
|
||||
OnFailure=systemd-email@%n.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/bash {{backup_to_swappable_script_path}}
|
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=starts backup-to-swappable.service
|
||||
|
||||
[Timer]
|
||||
OnCalendar={{on_calendar_backup_to_swappable}}
|
||||
RandomizedDelaySec={{randomized_delay_sec}}
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Reference in New Issue
Block a user