diff options
author | Oliver Smith <osmith@sysmocom.de> | 2022-08-04 10:26:34 +0200 |
---|---|---|
committer | osmith <osmith@sysmocom.de> | 2022-08-04 13:41:10 +0000 |
commit | 7340fa7561bc28fac1618cea2c0f314d4cb8e2ac (patch) | |
tree | fc0bb3b60126617a66d55c9b01739639dc283572 | |
parent | c1f64b40d170220f8091a41537db7abdfac8a3c9 (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-x | contrib/obs-mirror/obs-mirror.sh | 2 |
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" |