From 7e04dd95808f3a9e72a5e62ebea8b5fbb04ca1b1 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Thu, 14 Jul 2022 07:20:18 -0700 Subject: [PATCH] move workers to beginning of command --- sync/sync-to-prod-9.sh | 2 +- sync/sync-to-staging-9.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sync/sync-to-prod-9.sh b/sync/sync-to-prod-9.sh index 1c90de1..b3f4849 100644 --- a/sync/sync-to-prod-9.sh +++ b/sync/sync-to-prod-9.sh @@ -14,7 +14,7 @@ if [ $ret_val -eq "0" ]; then TARGET="${PRODUCTION_ROOT}/${CATEGORY_STUB}/${REV:0:3}" mkdir -p "${TARGET}" echo "Syncing ${REVISION}" - sudo -l && time fpsync -o '-av --numeric-ids --no-compress --chown=10004:10005' -n 24 -t /mnt/compose/partitions "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}/" "${TARGET}/" + sudo -l && time fpsync -n 24 -o '-av --numeric-ids --no-compress --chown=10004:10005' -t /mnt/compose/partitions "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}/" "${TARGET}/" # Full file list update for production root cd "${PRODUCTION_ROOT}/" || { echo "Failed to change directory"; exit 1; } diff --git a/sync/sync-to-staging-9.sh b/sync/sync-to-staging-9.sh index a5d59df..3aca109 100644 --- a/sync/sync-to-staging-9.sh +++ b/sync/sync-to-staging-9.sh @@ -26,7 +26,7 @@ if [ $ret_val -eq "0" ]; then # shellcheck disable=SC2035 #sudo -l && find **/* -maxdepth 0 -type d | parallel --will-cite -j 18 sudo rsync -av --chown=10004:10005 --progress --relative --human-readable \ # {} "${TARGET}" - sudo -l && time fpsync -o '-av --numeric-ids --no-compress --chown=10004:10005' -n 24 -t /mnt/compose/partitions "/mnt/compose/${MAJ}/latest-${SHORT}-${MAJ}${PROFILE}/compose/" "${TARGET}/" + sudo -l && time fpsync -n 24 -o '-av --numeric-ids --no-compress --chown=10004:10005' -t /mnt/compose/partitions "/mnt/compose/${MAJ}/latest-${SHORT}-${MAJ}${PROFILE}/compose/" "${TARGET}/" # This is temporary until we implement rsync into empanadas #if [ -f "COMPOSE_ID" ]; then