为什么rsnapshot不提供统计信息,即使使用rsync -stats也是如此


2

我现在已经和他斗争了6个多月了。我已将rsnapshot设置为在cron中定期备份并发送统计信息,但我在电子邮件中收到此内容:

ERRORS / home / NO STATS DATA

我手动运行rsnapshot,似乎没有从rsync返回的统计数据,即使给出了--stats标志。以下是详细的手动rsnapshot运行的记录:

root@box:/home/user# /usr/bin/rsnapshot -v alpha
echo 28806 > /var/run/rsnapshot.pid 
/bin/rm -rf /media/backup/backups/alpha.6/ 
mv /media/backup/backups/alpha.5/ /media/backup/backups/alpha.6/ 
mv /media/backup/backups/alpha.4/ /media/backup/backups/alpha.5/ 
mv /media/backup/backups/alpha.3/ /media/backup/backups/alpha.4/ 
mv /media/backup/backups/alpha.2/ /media/backup/backups/alpha.3/ 
mv /media/backup/backups/alpha.1/ /media/backup/backups/alpha.2/ 
/bin/cp -al /media/backup/backups/alpha.0 /media/backup/backups/alpha.1 
/usr/bin/rsync -ax --stats --delete --numeric-ids --relative \
    --delete-excluded --exclude=.local/share/Trash --exclude=/Downloads \
    /home/ /media/backup/backups/alpha.0/box/ 
/usr/bin/rsync -ax --stats --delete --numeric-ids --relative \
    --delete-excluded --exclude=.local/share/Trash --exclude=/Downloads \
    /media/mybook/ /media/backup/backups/alpha.0/mybook/ 
touch /media/backup/backups/alpha.0/ 
rm -f /var/run/rsnapshot.pid 
root@box:/home/user# 

您可以从脚本中看到使用--stats调用rsync,但不会生成任何统计数据。

谁能明白为什么?

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.