Salut ,
je cherche a mettre en une sauvegarde automatique d'un dossier dans un autre . Mais je veux savoir si la tache planifié a fonctionné en m'envoyant un mail avec ssmtp . J'ai deja installer ssmtp .
Pour verifier que la tache c'est bien deroulé j'ai lu qu'il faut se referer au log .
De quel log s'agit t'il et comment configurer l'envoi avec ssmtp ?
Aussi avec rsync on peux compresser un fichier est ce que c'est l'option a car j'ai deja essayé et ca donne rien
Ce que j'ai dans crontab -e
50 19 * * * rsync -ar /home/lafrite/nagios-2.8 /home/directeur/
Mon fichier de config ssmtp.conf
# The person who gets all mail for userids < 500
# Make this empty to disable rewriting.
root=****.****@*******.fr
# The place where the mail goes. The actual machine name is required
# no MX records are consulted. Commonly mailhosts are named mail.domain.com
# The example will fit if you are in domain.com and your mailhub is so named.
mailhub=smtp.*****.fr
# Example for SMTP port number 2525
# mailhub=mail.your.domain:2525
# Example for SMTP port number 25 (Standard/RFC)
# mailhub=mail.your.domain
# Example for SSL encrypted connection
# mailhub=mail.your.domain:465
# Where will the mail seem to come from?
RewriteDomain=*****@localhost.domain
# The full hostname
#Hostname=
# Set this to never rewrite the "From:" line (unless not given) and to
# use that address in the "from line" of the envelope.
#FromLineOverride=YES
# Use SSL/TLS to send secure messages to server.
#UseTLS=YES
# Use SSL/TLS certificate to authenticate against smtp host.
#UseTLSCert=YES
# Use this RSA certificate.
#TLSCert=/etc/ssl/certs/ssmtp.pem
# Get enhanced (*really* enhanced) debugging information in the logs
# If you want to have debugging of the config file parsing, move this option
# to the top of the config file and uncomment
#Debug=YES
Merci