Examples of systemd units that I crafted over time
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
257 B

[Unit]
Description=Backup the content of /mnt/test
Documentation=https://github.com/nmasse-itix/Systemd-Examples
Before=mnt-test.mount
RequiresMountsFor=/mnt/backup
[Service]
Type=oneshot
UMask=077
ExecStart=tar -cf /mnt/backup/mnt-test.tar -C /mnt/test .