Salut,
J'ai un souci avec un cron sur un fichier bash, ça doit être tout bête mais :oops: je trouve pas...
cron via plesk :
contenu du bash :Code:30 1 * * * /home/saveserver/bckupwebsite.sh >/dev/null 2>&1
Le script marche, pas de souci et le cron fonctionne mais pas les deux ensembles.Code:
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
Si vous avez des idées je suis preneur
Simo'
