Adding convenience script for updating installed files.
authorChris Sharp <csharp@georgialibraries.org>
Wed, 14 Jun 2017 12:12:47 +0000 (08:12 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 21 Mar 2022 20:51:06 +0000 (16:51 -0400)
update-installed.sh

index ac85baf..30dd72f 100755 (executable)
@@ -19,6 +19,11 @@ sed -i 's/next.gapines.org/gapines.org/' $GIT_LOCATION/config/production.config.
 
 # now copy the git files over to the web dir
 rsync -auv --exclude="install*.sh" --exclude=".git" "$GIT_LOCATION"/ "$OSRF_WEB_ROOT"/"$REPO_NAME"/
+rsync -auv "$OSRF_WEB_ROOT"/"$REPO_NAME"/ "$PROD_BACKUP"/
+date > "$PROD_BACKUP"/last_sync_date
+
+# now copy the git files over to the web dir
+rsync -auv --exclude="install*.sh" --exclude=".git" "GIT_LOCATION" "$OSRF_WEB_ROOT"/"$REPO_NAME"
 
 # and now do the rest of the bricks
 for i in $BRICK_HEADS; do