Salut,
J'ai un souci avec un cron sur un fichier bash, ça doit être tout bête mais
je trouve pas...
cron via plesk :
30 1 * * * /home/saveserver/bckupwebsite.sh >/dev/null 2>&1
contenu du bash :
1 2 3 4 5 6 7 8 9 10
| #!/bin/bash
# Backup hebdomadaire
DATE=`date +%Y_%m_%d_%H_%M_%S`
BACKUP=$DATE"_domaine.fr.tgz"
DOWNLOADDIR=/home/saveserver/
/bin/tar -czpf $BACKUP /home/httpd/vhosts/domaine.fr/httpdocs/ /home/httpd/vhosts/domaine.fr/statistics/webstat/
chmod a+rwx $DOWNLOADDIR/$BACKUP |
Le script marche, pas de souci et le cron fonctionne mais pas les deux ensembles.
Si vous avez des idées je suis preneur
Simo'
Partager