diff --git a/velero-restic-restore/restore_pvs.sh b/velero-restic-restore/restore_pvs.sh index 5a0ea8539b8f93a9f9795ea925d0f0332f40c894..27aaf7b5b9360f0cacbae893936537e6233a55f5 100755 --- a/velero-restic-restore/restore_pvs.sh +++ b/velero-restic-restore/restore_pvs.sh @@ -42,7 +42,7 @@ restic -p /tmp/repository-password -r "$RESTIC_REPO" restore "$RESTIC_SNAPSHOT_I POD_NAME=`oc get pods -l app=drupal,drupalSite="$DRUPALSITE" -o name -n "$NAMESPACE" | sed "s/pod\///g" | head -n 1` validateVar "$POD_NAME" "POD_NAME" -oc rsync /restore/ "$POD_NAME":/drupal-data --delete -n "$NAMESPACE" +oc rsync /restore/ "$POD_NAME":/drupal-data --delete -n "$NAMESPACE" -c php-fpm # We remove /root/.cache/ in each iteration to prevent restic backups to run out of memory and fail the cronjobs we run, # as we detected this malfunction in our infra.