[gull] Problème rsync depuis crontab

cedric briner briner at infomaniak.ch
Thu Feb 21 10:02:07 CET 2008


Pierre Maitre wrote:
> Bonjour  la liste
> 
> J'ai un petit soucis avec une commande rsync qui plante lorsqu'elle
> est lancée par crontab, alors que la *même* commande fonctionne
> parfaitement (et termine avec Exit status 0) lorsque je la lance à la
> main dans une ligne de commande.
> 
> la commande fautive dans /etc/crontab:
> 
> 05 21 * * *  maitre /opt/bin/rsync  -auv  --delete  --exclude 'SIG/*'
> -e "ssh -v -i /maitre/.ssh/id_rsa"  /home/commun/
> maitre at machine-distante:/home/share/backups/pjv-commun/
> 2>/home/share/log/`date +%y%m%d%H`rsync.log

et si tu specifiais le chemin complet pour ssh: /usr/bin/ssh ?

Ced.
-- 

Cedric BRINER
23 ch. Salomon-PENAY  | mel  mailto:briner at infomaniak.ch
CH-1217 Meyrin        | voip callto:41325106739 at sipcall.ch
                       |
                       | tel::maison:  +41(0)32/510-6739
                       | tel::portable +41(0)78/665-9701
                       | tel::travail  +41(0)22/379-2356



More information about the gull mailing list