Skip to content

Instantly share code, notes, and snippets.

@jasperf
Last active February 17, 2024 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasperf/49ccea7ac98285936e874a91bbeb3184 to your computer and use it in GitHub Desktop.
Save jasperf/49ccea7ac98285936e874a91bbeb3184 to your computer and use it in GitHub Desktop.
Download WordPress site to new server, import database , run set perm script and install acl
mkdir backups
ll
cd backups
wget https://domain.nl/domain.nl_root--2024.02.09.sql.gz
ll
mysql dbasename < domain.nl_root--2024.02.09.sql -u dbase_admin -p
mc
wget https://public_html.tar.gz/public_html.tar.gz
wget https://domain.nl/public_html.tar.gz
ll
chmod +x setperm
sudo setperm public/
sudo ./setperm public/
ll
sudo apt install acl
getfacl /home/prod-site/domain.nl/public
sudo setfacl -Rm u:deployment:rwx /home/prod-site/domain.nl/public
getfacl /home/prod-site/domain.nl/public
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment