summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-03-27 12:41:37 -0700
committerFranck Cuny <franck@fcuny.net>2021-03-27 12:41:37 -0700
commit2ee5d7399ee5ecb24501af248adfeb59237d2d6d (patch)
tree63157fdd395e278918abcd7e5a4331d6b10051fb
parentemacs: more bindings for counsel (diff)
downloademacs.d-2ee5d7399ee5ecb24501af248adfeb59237d2d6d.tar.gz
systemd: rsync music to the NAS
A systemd unit to backup my music to the NAS. This is invoked by
running:
```
systemctl --user start sync-music
```
Diffstat (limited to '')
-rw-r--r--config/systemd/user/sync-music.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/systemd/user/sync-music.service b/config/systemd/user/sync-music.service
new file mode 100644
index 0000000..acc821a
--- /dev/null
+++ b/config/systemd/user/sync-music.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Sync my music collection to the NAS
+
+[Service]
+Type=oneshot
+
+ExecStart=/usr/bin/rsync -a /home/fcuny/media/music/ nas.home:/data/music
+
+[Install]
+WantedBy=default.target