Enviado em 18/08/2016 - 17:32h
Pessoal estou com o mesmo problema, mas não estou conseguindo resolver.
Montei o seguinte script:
Crontab: 1 * * * * root /var/www/s3.sh 2>&1> log-copia.txt
Mas o cron não esta executando.
Montei o seguinte script:
echo 'Started'
current_date_time="`date +%Y-%m-%d%`";
zip -r -q /var/'backup_'$current_date_time'.zip' /var/www/
aws s3 cp /var/'backup_'$current_date_time'.zip' s3://bucket_path/'backup_'$current_date_time'.zip'
date +'%a %b %e %H:%M:%S %Z %Y'
echo 'Finished'
Crontab: 1 * * * * root /var/www/s3.sh 2>&1> log-copia.txt
Mas o cron não esta executando.