Nerdy Drunk

Drunk on technology

User Tools

Site Tools


dokuwiki:restore_backup

DokuWiki Restore from Backup

Restore from Backup

# Install dependencies
sudo yum install php56 mod24_ssl php56-gd php56-xml php-geshi php-email-address-validation php56-opcache

# Locate most recent backup
aws s3 ls s3://ndbackup-oh-wiki.nerdydrunk.info

# Download most recent backup
aws s3 cp s3://ndbackup-oh-wiki.nerdydrunk.info/2018-05-06-wiki.nerdydrunk.info.tgz ./

# Extract backup
tar zxvf 2018-05-06-wiki.nerdydrunk.info.tgz

# Move backup
sudo mv var/www/wiki.nerdydrunk.com /var/www/

# Change permissions
sudo chown -R apache:apache /var/www/wiki.nerdydrunk.com

# Rename directory to match current FQDN
sudo mv /var/www/wiki.nerdydrunk.com /var/www/wiki.nerdydrunk.info

# Edit Apache config to point to directory and change permissions
sudo vim /etc/httpd/conf/httpd.conf

# Edit Apache config to point to directory and change permissions
sudo vim /etc/httpd/conf.d/ssl.conf

# Start Apache
sudo service httpd start

# Configure Apache to start on boot
sudo chkconfig httpd on

# Backup site before and after dokuwiki upgrades
sudo tar zcvf wiki.nerdydrunk.info.tgz /var/www/wiki.nerdydrunk.info
dokuwiki/restore_backup.txt · Last modified: 2022/07/21 10:41 by 127.0.0.1