From 3c880b5bda90f2bf7b67229bdf08eb9880805861 Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Sun, 14 Jun 2026 14:39:23 -0400 Subject: [PATCH] Add --seed flag to rsync.sh to skip empty-remote-share guard on first push --- Rsync/rsync.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Rsync/rsync.sh b/Rsync/rsync.sh index e040e2e..8574730 100755 --- a/Rsync/rsync.sh +++ b/Rsync/rsync.sh @@ -128,6 +128,9 @@ # rsync.sh /path/to/share --log # Verbose output throughout — every decision logged. # +# rsync.sh /path/to/share --seed +# Skip the empty-remote-share guard. Use for first-time seeding of a new share. +# # ============================================================================================== SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" @@ -137,11 +140,13 @@ source "$SCRIPT_DIR/../load_config.sh" # ── Separate positional directory arg from flags ─────────────────────────────────────────────── DIRECTORY="" PROFILE_OVERRIDE="" +SEED=false RAW_ARGS=() for ARG in "$@"; do case "$ARG" in --profile=*) PROFILE_OVERRIDE="${ARG#--profile=}" ;; + --seed) SEED=true ;; --*|*=*) RAW_ARGS+=("$ARG") ;; *) [[ -z "$DIRECTORY" ]] && DIRECTORY="$ARG" || RAW_ARGS+=("$ARG") ;; esac @@ -252,7 +257,7 @@ check_os_version_parity || exit 1 check_connectivity check_remote_rootfs -check_remote_share "$DIRECTORY" +[[ "$SEED" == false ]] && check_remote_share "$DIRECTORY" check_remote_disks "$DIRECTORY" # Remote Docker daemon — check before attempting container operations