Backup garfield
Apache
Siehe auch Apache / Passwortschutz von URLs
cd /etc/apache2/sites-available/ sudo nano garfield.conf
<VirtualHost *:80> ServerName garfield.kirner.or.at Redirect / https://garfield.kirner.or.at/ </VirtualHost>
sudo nano garfield-ssl.conf
<VirtualHost *:443> ServerName garfield.kirner.or.at SSLEngine on SSLCertificateFile /etc/ssl/certs/garfield.crt SSLCertificateKeyFile /etc/ssl/private/apache.key # Pfad zu den Webinhalten DocumentRoot /var/www/garfield <Directory "/var/www/html"> AuthType Basic AuthName "Restricted Content" AuthUserFile /etc/apache2/.htpasswd Require valid-user </Directory> ErrorLog ${APACHE_LOG_DIR}/garfield.kirner.or.at-error.log CustomLog ${APACHE_LOG_DIR}/garfield.kirner.or.at-access.log combined </VirtualHost>
Download
Scripts
0 9 * * * /home/martin/garfield/bin/download_homepage.sh > /home/martin/garfield/bin/garfield.log 2>&1 15 9 * * * /home/martin/garfield/bin/download_backup.sh >> /home/martin/garfield/bin/garfield.log 2>&1 30 9 * * * /home/martin/garfield/bin/send.sh >> /home/martin/garfield/bin/garfield.log 2>&1
Zurück zu Backups erstellen