From 2ee5d7399ee5ecb24501af248adfeb59237d2d6d Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 27 Mar 2021 12:41:37 -0700 Subject: 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 ``` --- config/systemd/user/sync-music.service | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 config/systemd/user/sync-music.service (limited to 'config/systemd/user') 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 -- cgit 1.4.1