(SystemD)+very simple backup service

Timer which runs weekly, copying my directory completely.  Very naive,
I'm thinking compression should be my first effort.
This commit is contained in:
2023-03-06 04:02:52 +00:00
parent 5192bb839b
commit d531c74dee
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
[Unit]
Description=Taking backup
[Service]
Type=simple
ExecStart=/usr/bin/rsync -a --delete --quiet /home/oreo /media/hdd/backup

View File

@@ -0,0 +1,9 @@
[Unit]
Description=Run backup weekly
[Timer]
OnBootSec=15min
OnUnitActiveSec=1w
[Install]
WantedBy=timers.target