Exampel cron file for sync and database backup
This commit is contained in:
8
piwigosync.cronexample
Normal file
8
piwigosync.cronexample
Normal file
@@ -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
|
Reference in New Issue
Block a user