Backup tutorials: Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
 
Zeile 32: Zeile 32:
         CustomLog ${APACHE_LOG_DIR}/tutorials.kirner.or.at-access.log combined
         CustomLog ${APACHE_LOG_DIR}/tutorials.kirner.or.at-access.log combined
</VirtualHost>
</VirtualHost>
</pre>
<pre>
sudo cp -R --preserve=mode,timestamps /var/www/tutorials/ /media/cloud_backup/tutorials/
</pre>
<pre>
sudo mysqldump -u root -p<password> tutorials > /media/cloud_backup/tutorials/tutorials_last.sql
</pre>
<pre>
mysql -u root -p[<password>] tutorials < /media/cloud_backup/tutorials/tutorials_last.sql
</pre>
</pre>




Zurück zu [[Backups erstellen]]
Zurück zu [[Backups erstellen]]

Aktuelle Version vom 4. September 2016, 10:59 Uhr

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