Backup sitebar

Aus Tutorials
Zur Navigation springen Zur Suche springen

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