Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-operations
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal
paas
drupal-operations
Commits
4e63caee
Commit
4e63caee
authored
3 years ago
by
Vineet Reddy Rajula
Browse files
Options
Downloads
Patches
Plain Diff
Add container name to oc rsync cmd
parent
adc863c6
No related branches found
Branches containing commit
No related tags found
1 merge request
!11
Use oc rsync to restore files
Pipeline
#2868939
passed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
velero-restic-restore/restore_pvs.sh
+1
-1
1 addition, 1 deletion
velero-restic-restore/restore_pvs.sh
with
1 addition
and
1 deletion
velero-restic-restore/restore_pvs.sh
+
1
−
1
View file @
4e63caee
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment