diff options
author | Franck Cuny <franck@fcuny.net> | 2021-03-27 12:41:37 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2021-03-27 12:41:37 -0700 |
commit | 2ee5d7399ee5ecb24501af248adfeb59237d2d6d (patch) | |
tree | 63157fdd395e278918abcd7e5a4331d6b10051fb /config/systemd/user/sync-music.service | |
parent | emacs: more bindings for counsel (diff) | |
download | emacs.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.service | 10 |
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 |