Backup owncloud: Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „{{note|Noch in Bearbeitung}} <pre> sudo cp -R --preserve=mode,timestamps /var/www/owncloud/ /media/cloud_backup/owncloud/ </pre> <pre> sudo mysqldump -u root…“)
 
 
Zeile 1: Zeile 1:
{{note|Noch in Bearbeitung}}
{{note|Noch in Bearbeitung}}
<pre>
<VirtualHost *:80>
        ServerName cloud.kirner.or.at
        ServerAlias cloud.kirner.or.at
        Redirect / https://cloud.kirner.or.at
</VirtualHost>
</pre>
<pre>
<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>
</pre>


<pre>
<pre>

Aktuelle Version vom 10. September 2016, 17:30 Uhr

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