Backup tutorials
Zur Navigation springen
Zur Suche springen
Apache
cd /etc/apache2/sites-available/ sudo nano tutorials.conf
<VirtualHost *:80> ServerName tutorials.kirner.or.at ServerAlias tutorials.kirner.or.at Redirect / https://tutorials.kirner.or.at </VirtualHost>
sudo nano tutorials-ssl.conf
<VirtualHost *:443> ServerName tutorials.kirner.or.at SSLEngine on SSLCertificateFile /etc/ssl/certs/tutorials.crt SSLCertificateKeyFile /etc/ssl/private/apache.key # Pfad zu den Webinhalten DocumentRoot /var/www/tutorials ErrorLog ${APACHE_LOG_DIR}/tutorials.kirner.or.at-error.log CustomLog ${APACHE_LOG_DIR}/tutorials.kirner.or.at-access.log combined </VirtualHost>
sudo cp -R --preserve=mode,timestamps /var/www/tutorials/ /media/cloud_backup/tutorials/
sudo mysqldump -u root -p<password> tutorials > /media/cloud_backup/tutorials/tutorials_last.sql
mysql -u root -p[<password>] tutorials < /media/cloud_backup/tutorials/tutorials_last.sql
Zurück zu Backups erstellen