Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Timothee Gosselin
compose.libre.sh
Commits
d61a2b72
Commit
d61a2b72
authored
10 years ago
by
Michiel de Jong
Browse files
Options
Downloads
Patches
Plain Diff
simplification: back up entire per-user wordpress folder
parent
65093f9d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
importers/backup-snapshot.sh
+2
-3
2 additions, 3 deletions
importers/backup-snapshot.sh
with
2 additions
and
3 deletions
importers/backup-snapshot.sh
+
2
−
3
View file @
d61a2b72
...
...
@@ -13,9 +13,8 @@ fi
if
[
-e
/data/per-user/
$USER
/wordpress
]
;
then
echo
backing up www from wordpress
for
$USER
mkdir
-p
/data/per-user/
$USER
/backup/www/wordpress/
cp
/data/per-user/
$USER
/wordpress/.env /data/per-user/
$USER
/backup/www/wordpress/.env
rsync
-r
/data/per-user/
$USER
/wordpress/data/wp-content /data/per-user/
$USER
/backup/www/wordpress/wp-content
mkdir
-p
/data/per-user/
$USER
/backup/www/
rsync
-r
/data/per-user/
$USER
/wordpress /data/per-user/
$USER
/backup/www/wordpress
fi
if
[
-e
/data/per-user/
$USER
/nginx
]
;
then
...
...
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