Backup owncloud
Version vom 10. September 2016, 17:30 Uhr von Martin Kirner (Diskussion | Beiträge)
Noch in Bearbeitung
<VirtualHost *:80> ServerName cloud.kirner.or.at ServerAlias cloud.kirner.or.at Redirect / https://cloud.kirner.or.at </VirtualHost>
<VirtualHost *:443> ServerName cloud.kirner.or.at ServerAlias cloud.kirner.or.at SSLEngine on SSLCertificateFile /etc/ssl/certs/owncloud.crt SSLCertificateKeyFile /etc/ssl/private/apache.key # Pfad zu den Webinhalten DocumentRoot /var/www/owncloud KeepAlive On KeepAliveTimeout 5 <IfModule mod_headers.c> Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload" </IfModule> ErrorLog ${APACHE_LOG_DIR}/cloud.kirner.or.at-error.log CustomLog ${APACHE_LOG_DIR}/cloud.kirner.or.at-access.log combined </VirtualHost>
sudo cp -R --preserve=mode,timestamps /var/www/owncloud/ /media/cloud_backup/owncloud/
sudo mysqldump -u root -p<password> owncloud > /media/cloud_backup/owncloud/owncloud_last.sql
mysql -u root -p[<password>] owncloud < /media/cloud_backup/owncloud/owncloud_last.sql
Zurück zu Backups erstellen