From b47ded0aec738a35017694ad87b4a124bd80341c Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Mon, 27 May 2019 11:01:57 +0200 Subject: [PATCH] Exampel cron file for sync and database backup --- piwigosync.cronexample | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 piwigosync.cronexample diff --git a/piwigosync.cronexample b/piwigosync.cronexample new file mode 100644 index 0000000..d10aa2b --- /dev/null +++ b/piwigosync.cronexample @@ -0,0 +1,8 @@ +# Example cron rules to be used in /etc/cron.d +# TODO adjust paths and database name according to your installation + +2 23 * * * root /root/piwigoscan/piwisync.sh > /var/log/piwigosync.log +# Monthly Backup +33 4 1 * * root mysqldump -u root piwigo29_db | bzip2 -c > /var/www/backup/piwigodb/monthly/piwigo_`date +%Y-%m-%d`.sql.bz2 +# Daily one file Backup +23 2 * * * root mysqldump -u root piwigo29_db | bzip2 -c > /var/www/backup/piwigodb/piwigo_daily.sql.bz2