aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2022-08-04 10:26:34 +0200
committerosmith <osmith@sysmocom.de>2022-08-04 13:41:10 +0000
commit7340fa7561bc28fac1618cea2c0f314d4cb8e2ac (patch)
treefc0bb3b60126617a66d55c9b01739639dc283572
parentc1f64b40d170220f8091a41537db7abdfac8a3c9 (diff)
obs-mirror.sh: exclude dotfiles
There's a .~tmp~ file on the remote that currently causes the rsync command to fail. Ignore all files starting with a dot. Fix for: rsync: [sender] opendir "/opensuse/repositories/network:/osmocom:/nightly/Raspbian_11/.~tmp~" (in opensuse-full-really-everything-including-repositories) failed: Permission denied (13) It's time to update the script to sync the obs.osmocom.org packages instead of the ones from build.opensuse.org, I'll do that in the next patch. Nevertheless, I think it makes sense to add this exclude argument in case OBS (our instance) also creates temporary files like this. Change-Id: Iacee2ea4acada60d8de960592fb828911a55781e
-rwxr-xr-xcontrib/obs-mirror/obs-mirror.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/obs-mirror/obs-mirror.sh b/contrib/obs-mirror/obs-mirror.sh
index 895afac..e970cab 100755
--- a/contrib/obs-mirror/obs-mirror.sh
+++ b/contrib/obs-mirror/obs-mirror.sh
@@ -25,7 +25,7 @@ REMOTE="rsync.opensuse.org::opensuse-full-really-everything-including-repositori
cd "$BASE_DIR"
RSYNC_ARGS="-av --delete"
-RSYNC_ARGS="$RSYNC_ARGS --files-from $SCRIPT_DIR/obs-mirror-include.txt --recursive"
+RSYNC_ARGS="$RSYNC_ARGS --files-from $SCRIPT_DIR/obs-mirror-include.txt --recursive --exclude='.*'"
DIR="$BASE_DIR/$DATE"
TEMP_DIR="$BASE_DIR/.temp"