Backup sitebar: Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
 
Zeile 3: Zeile 3:
<pre>
<pre>
cd /etc/apache2/sites-available/
cd /etc/apache2/sites-available/
</pre>
<pre>
sudo nano sitebar.conf
sudo nano sitebar.conf
</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