Skip to content
Snippets Groups Projects
Commit d61a2b72 authored by Michiel de Jong's avatar Michiel de Jong
Browse files

simplification: back up entire per-user wordpress folder

parent 65093f9d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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