encore une erreur ignorer sur les homes.

je vais finir par ne plus reporter d'erreur du tout
--
Sayan

darcs-hash:20040425104454-d1356-eeec7ff605829cad4cb12ae61451f02802e32fde.gz
This commit is contained in:
sayan 2004-04-25 12:44:54 +02:00
parent 7b50728bc1
commit 485795c9bf

View file

@ -47,7 +47,7 @@ mount /var/spool/mail -o remount,atime
temp=$(mktemp) temp=$(mktemp)
temp_mail=$(mktemp) temp_mail=$(mktemp)
rsync -atzSHe ssh --delete $homes backupcrans@pegase:~/backup-$week_mod2 &> $temp rsync -atzSHe ssh --delete $homes backupcrans@pegase:~/backup-$week_mod2 &> $temp
cat $temp | grep -viEe "^((recv_generator)|(opendir)|(stat)).*Permission denied$" | grep -vie "^skipping non-regular file" | grep -vie "^rsync error: some files could not be transferred" > $temp_mail cat $temp | grep -viEe "^((recv_generator)|(opendir)|(stat)).*Permission denied$" | grep -vie "^skipping non-regular file" | grep -vie "^rsync error: some files could not be transferred" | grep -vie "^file has vanished" > $temp_mail
if [ -s $temp_mail ] if [ -s $temp_mail ]
then then
cat $temp_mail | mail -s "rsync error" roots cat $temp_mail | mail -s "rsync error" roots