i've following entries made take backup of php files , apache configuration files our web server. found there no files in backup destination folder. know if entries have incorrect syntax.
# production events module php files /var/events/ folder
00 2 * * * tar cvpzf /var/backups/events/events-backup.date +\%y\%m\%d
.tar.gz /var/events/ > /var/backups/events/events-backup.log 2>&1`
# production survey module php files backup /var/survey/ folder
00 2 * * * tar cvpzf /var/backups/survey/survey-backup.date +\%y\%m\%d
.tar.gz /var/survey/ > /var/backups/survey/survey-backup.log 2>&1
# apache configuration files under /etc/apache2/ directory
00 2 * * * tar cvpzf /var/backups/apache2/apache2-backup.date +\%y\%m\%d
.tar.gz /etc/apache2/ > /var/backups/apache2/apache2-backup.log 2>&1
i fixed issue today. missed add user "root" before tar command. following change fixed issue.
00 2 * * * root
tar cvpzf /var/backups/apache2/apache2-backup.date +\%y\%m\%d.tar.gz /etc/apache2/ > /var/backups/apache2/apache2-backup.log 2>&1
Comments
Post a Comment