initial commit

This commit is contained in:
root
2026-03-26 17:37:02 +01:00
parent 9d50d901c5
commit 3b859555e7
12 changed files with 299 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
#!/bin/bash
set -euo pipefail
SRC="/srv/navidrome/music/"
DST="zh3289@zh3289.rsync.net:/data1/home/zh3289/navidrome/Music/"
LOCKFILE="/run/backup-navidrome-music.lock"
exec 9>"$LOCKFILE"
flock -n 9 || {
echo "Backup already running"
exit 1
}
echo "==== $(date -Is) backup start ===="
rsync -aH --delete \
--info=progress2,stats \
"$SRC" "$DST"
echo "==== $(date -Is) backup done ===="