<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ci/+/26694">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">obs-mirror.sh: Keep log files of rsync job<br><br>Before this commit, the obs-mirror.log was overwritten every night,<br>meaning we have no history of rsync log files.<br><br>Change-Id: I26392ed8615b9f4a6aa23e92b82ad9aff01eac4b<br>---<br>M contrib/obs-mirror/obs-mirror.sh<br>1 file changed, 4 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/94/26694/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/contrib/obs-mirror/obs-mirror.sh b/contrib/obs-mirror/obs-mirror.sh</span><br><span>index 529aea1..895afac 100755</span><br><span>--- a/contrib/obs-mirror/obs-mirror.sh</span><br><span>+++ b/contrib/obs-mirror/obs-mirror.sh</span><br><span>@@ -9,8 +9,10 @@</span><br><span> #</span><br><span> # See also: OS#4862</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-echo "Redirecting all output to: /home/pkgmirror/obs-mirror.log"</span><br><span style="color: hsl(0, 100%, 40%);">-exec >"/home/pkgmirror/obs-mirror.log" 2>&1</span><br><span style="color: hsl(120, 100%, 40%);">+DATE=`date +%Y%m%d-%H%M%S`</span><br><span style="color: hsl(120, 100%, 40%);">+LOGFILE="/home/pkgmirror/obs-mirror-$DATE.log"</span><br><span style="color: hsl(120, 100%, 40%);">+echo "Redirecting all output to: $LOGFILE"</span><br><span style="color: hsl(120, 100%, 40%);">+exec >$LOGFILE 2>&1</span><br><span> </span><br><span> set -e -x</span><br><span> SCRIPT_DIR="$(realpath "$(dirname "$(realpath "$0")")")"</span><br><span>@@ -24,7 +26,6 @@</span><br><span> </span><br><span> RSYNC_ARGS="-av --delete"</span><br><span> RSYNC_ARGS="$RSYNC_ARGS --files-from $SCRIPT_DIR/obs-mirror-include.txt --recursive"</span><br><span style="color: hsl(0, 100%, 40%);">-DATE=`date +%Y%m%d-%H%M%S`</span><br><span> DIR="$BASE_DIR/$DATE"</span><br><span> TEMP_DIR="$BASE_DIR/.temp"</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ci/+/26694">change 26694</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-ci/+/26694"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ci </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I26392ed8615b9f4a6aa23e92b82ad9aff01eac4b </div>
<div style="display:none"> Gerrit-Change-Number: 26694 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>