Backup sitebar: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „{{note|Noch in Bearbeitung}} <pre> sudo cp -R --preserve=mode,timestamps /var/www/sitebar/ /media/cloud_backup/sitebar/ </pre> <pre> sudo mysqldump -u root -…“) |
|||
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
{{note|Noch in Bearbeitung}} | {{note|Noch in Bearbeitung}} | ||
<pre> | |||
cd /etc/apache2/sites-available/ | |||
sudo nano sitebar.conf | |||
</pre> | |||
<pre> | |||
<VirtualHost *:80> | |||
ServerName sitebar.kirner.or.at | |||
ServerAlias sitebar.kirner.or.at | |||
Redirect / https://sitebar.kirner.or.at | |||
</VirtualHost> | |||
</pre> | |||
<pre> | |||
sudo nano sitebar-ssl.conf | |||
</pre> | |||
<pre> | |||
<VirtualHost *:443> | |||
ServerName sitebar.kirner.or.at | |||
SSLEngine on | |||
SSLCertificateFile /etc/ssl/certs/sitebar.crt | |||
SSLCertificateKeyFile /etc/ssl/private/apache.key | |||
# Pfad zu den Webinhalten | |||
DocumentRoot /var/www/sitebar | |||
ErrorLog ${APACHE_LOG_DIR}/sitebar.kirner.or.at-error.log | |||
CustomLog ${APACHE_LOG_DIR}/sitebar.kirner.or.at-access.log combined | |||
</VirtualHost> | |||
</pre> | |||
<pre> | <pre> |
Aktuelle Version vom 4. September 2016, 11:27 Uhr
Noch in Bearbeitung
cd /etc/apache2/sites-available/ sudo nano sitebar.conf
<VirtualHost *:80> ServerName sitebar.kirner.or.at ServerAlias sitebar.kirner.or.at Redirect / https://sitebar.kirner.or.at </VirtualHost>
sudo nano sitebar-ssl.conf
<VirtualHost *:443> ServerName sitebar.kirner.or.at SSLEngine on SSLCertificateFile /etc/ssl/certs/sitebar.crt SSLCertificateKeyFile /etc/ssl/private/apache.key # Pfad zu den Webinhalten DocumentRoot /var/www/sitebar ErrorLog ${APACHE_LOG_DIR}/sitebar.kirner.or.at-error.log CustomLog ${APACHE_LOG_DIR}/sitebar.kirner.or.at-access.log combined </VirtualHost>
sudo cp -R --preserve=mode,timestamps /var/www/sitebar/ /media/cloud_backup/sitebar/
sudo mysqldump -u root -p<password> sitebar > /media/cloud_backup/sitebar/sitebar_last.sql
mysql -u root -p[<password>] sitebar < /media/cloud_backup/sitebar/sitebar_last.sql
Zurück zu Backups erstellen