в предыдущей теме настраивал бэкап openvz контейнеров
конфиг сервера example.com.conf
config_version 1.2
snapshot_root /storage/rsnapshot/data/example.com/
cmd_cp /bin/cp
cmd_rm /bin/rm
cmd_rsync /usr/bin/rsync
cmd_ssh /usr/bin/ssh
cmd_logger /usr/bin/logger
cmd_du /usr/bin/du
# retain policy
#retain hourly 6
retain daily 7
retain weekly 4
retain monthly 3
verbose 4
loglevel 4
logfile /var/log/rsnapshot/example.com.log
lockfile /var/run/rsnapshot_example.com.pid
rsync_short_args -a
rsync_long_args --delete --stats --numeric-ids --relative --delete-excluded
# Backup
backup root@example.com:/var/spool/cron/crontabs/ ./
backup root@example.com:/etc/ ./
backup root@example.com:/root/ ./
backup root@example.com:/home/ ./
backup root@example.com:/usr/local/*bin/ ./
backup_script /storage/rsnapshot/scripts/backup_example.com_vz_container.sh ./vzdump-openvz/
rsnapshot -c /etc/rsnapshot.d/example.com.conf daily
/usr/bin/rsnapshot -c /etc/rsnapshot.d/example.com.conf daily 2>&1 | /usr/local/bin/rsnapreport.pl | mail -s "`basename example.com` daily backup" my@example.com
но когда rsnapshot запускается через крон, то в логе ошибка
/usr/bin/rsnapshot -c /etc/rsnapshot.d/example.com.conf daily: ERROR: backup_script /storage/rsnapshot/scripts/backup_example.com_vz_container.sh returned 127
/usr/bin/logger -i -p user.err -t rsnapshot /usr/bin/rsnapshot -c /etc/rsnapshot.d/example.com.conf daily: ERROR: backup_script /storage/rsnapshot/scripts/backup_example.com_vz_container.sh returned 127
крон запускается так
30 1 * * * root /root/bin/rsnapshot.sh daily
0 1 * * 1 root /root/bin/rsnapshot.sh weekly
30 0 1 * * root /root/bin/rsnapshot.sh monthly