daemon: auto --resync on first use after successful dry-run

Both RCLONE_TEST required. Never after a failed normal run. Partial
listings abort. Enables config after live resync.
This commit is contained in:
2026-09-10 01:14:53 +02:00
parent dc8f1e885a
commit e94fca5ae1
6 changed files with 53 additions and 22 deletions
+1 -1
View File
@@ -97,5 +97,5 @@ esac
echo "Configured path1=$DROPBOX workdir=$WORKDIR (~/DataStorage)"
echo "Startup: looping systemd --user service (sleeps 15 min after each run)"
echo "If listings are empty: dry-run --resync only. Then: rclone-bisyncd --accept-resync"
echo "No listings + RCLONE_TEST on both sides → dry-run --resync then live --resync"
echo "enabled=$ENABLED (true only if dropbox: already has RCLONE_TEST)"
+1 -1
View File
@@ -3,5 +3,5 @@ set -eu
systemctl --user daemon-reload 2>/dev/null || true
systemctl --user enable --now rclone-bisync.service 2>/dev/null || true
if command -v notify-send >/dev/null 2>&1; then
notify-send -a rclone-bisync "rclone-bisync" "Looping bisync started. First run is dry-run --resync until rclone-bisyncd --accept-resync."
notify-send -a rclone-bisync "rclone-bisync" "Looping bisync started. First use: dry-run then live --resync if both RCLONE_TEST exist."
fi