Skip to content
Snippets Groups Projects
Commit d4009015 authored by Francisco Borges Aurindo Barros's avatar Francisco Borges Aurindo Barros
Browse files

Merge branch 'rsync-perms-fix' into 'master'

Do not rsync permissions during restore

See merge request !23
parents 01a846b4 334f1730
No related branches found
No related tags found
1 merge request!23Do not rsync permissions during restore
Pipeline #5282368 passed
...@@ -43,7 +43,8 @@ sleep 60s ...@@ -43,7 +43,8 @@ sleep 60s
POD_NAME=`oc get pod -l app=drupal,drupalSite="$DRUPALSITE" -n "$NAMESPACE" --sort-by=.metadata.creationTimestamp --field-selector=status.phase==Running -o jsonpath="{.items[-1:].metadata.name}"` POD_NAME=`oc get pod -l app=drupal,drupalSite="$DRUPALSITE" -n "$NAMESPACE" --sort-by=.metadata.creationTimestamp --field-selector=status.phase==Running -o jsonpath="{.items[-1:].metadata.name}"`
validateVar "$POD_NAME" "POD_NAME" validateVar "$POD_NAME" "POD_NAME"
oc rsync /restore/ "$POD_NAME":/drupal-data --delete -n "$NAMESPACE" -c php-fpm # Add no-perms to abide by the existing permissions set on the PVC
oc rsync /restore/ "$POD_NAME":/drupal-data --no-perms=true --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, # 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. # as we detected this malfunction in our infra.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment