Last active
February 17, 2024 01:31
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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