diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-03-06 04:02:52 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-03-06 04:02:52 +0000 |
commit | d531c74dee66314854149be5f2fe2641ad50b7d7 (patch) | |
tree | a85d4a87138486b2289540f504f5725c77a507fa /SystemD | |
parent | 5192bb839b63b4c07f12f988aac3136c34775554 (diff) | |
download | dotfiles-d531c74dee66314854149be5f2fe2641ad50b7d7.tar.gz dotfiles-d531c74dee66314854149be5f2fe2641ad50b7d7.tar.bz2 dotfiles-d531c74dee66314854149be5f2fe2641ad50b7d7.zip |
(SystemD)+very simple backup service
Timer which runs weekly, copying my directory completely. Very naive,
I'm thinking compression should be my first effort.
Diffstat (limited to 'SystemD')
-rw-r--r-- | SystemD/.config/systemd/user/backup.service | 6 | ||||
-rw-r--r-- | SystemD/.config/systemd/user/backup.timer | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/SystemD/.config/systemd/user/backup.service b/SystemD/.config/systemd/user/backup.service new file mode 100644 index 0000000..d3bb8ed --- /dev/null +++ b/SystemD/.config/systemd/user/backup.service @@ -0,0 +1,6 @@ +[Unit] +Description=Taking backup + +[Service] +Type=simple +ExecStart=/usr/bin/rsync -a --delete --quiet /home/oreo /media/hdd/backup diff --git a/SystemD/.config/systemd/user/backup.timer b/SystemD/.config/systemd/user/backup.timer new file mode 100644 index 0000000..2ddee9d --- /dev/null +++ b/SystemD/.config/systemd/user/backup.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Run backup weekly + +[Timer] +OnBootSec=15min +OnUnitActiveSec=1w + +[Install] +WantedBy=timers.target |