How to have script email me when backup is done

I have a cronjob that goes like this:
5 0 * * * rsync -avzd --progress --delete --exclude '.wine/drive_c/Program\ Files' --exclude '.wine/drive_c/windows/temp' --exclude '.thumbnails' --exclude 'installs' /home/bobby/ [email protected]:backup/desktop/bobby/ >> /home/bobby/logs/webhomebackup-$(date +%m%d%y_%T).log
Now how can I have a script or some means to email myself when the backup is done?? I really have no scripting skills, hehe. TIA for any help!
P.S. I have mutt/getmail/procmail/sendmail/msmtp set up.

colbert wrote:
Dang I just tried msmtp, got this error:
~ # msmtp [email protected]
msmtp: cannot set X509 trust file /home/bobby/.certs/Equifax_Secure_Certificate_Authority_DER.cer for TLS session: Base64 decoding error.
msmtp: could not send mail (account default from /home/bobby/.msmtprc)
~ #
I grabbed the file from the equifax site
Here's my ~/.msmtprc which works fine with gmail.  I installed ca-certificates to get the tls_trust_file.
account default
host smtp.gmail.com
protocol smtp
auth on
password *****
from [email protected]
user [email protected]
tls on
tls_starttls on
tls_certcheck on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
edit: You may need to run update-ca-certificates to generate the tls_trust_file
Last edited by PeteMo (2008-08-15 19:28:57)

Similar Messages

  • I have a really old Itunes account.  I no longer have the email and when I go to put in my birthday it is coming up wrong because the birthday on the account does not have a year.  How can I fix this?

    I have a really old Itunes account.  I no longer have the email and when I go to put in my birthday it is coming up wrong because the birthday on the account does not have a year.  How can I fix this?  I have about 70 downloaded songs on this log in that I would like to get back.
    Thank you in advance.

    Contact iTunes customer support.

  • I have spotty signal at my home, so some functions don't work until I leave the house. I noticed on the main screen, it says I have 54 emails, but when I open the app, I only have 4. I powered down and back up. No fix. What gives?

    I have spotty signal at my home, so some functions don't work until I leave the house. I noticed on the main screen, it says I have 54 emails, but when I open the app, I only have 4. I powered down and back up. No fix. What gives?

    Im having this same problem an my phone is about 3 weeks old. I am not sure about the voice over part though...I have not yet figured out how to work the voice recognition part of the phone...I am such a newbie with this phone. I did the power off/on suggestion, several times. I tried leaving it off for 10 minutes. Tried to reset with the power on/off and home button pressed at the same time. Charged battery. Still makes no difference. You cannot scroll any direction. Have to double click to open apps. Have to double click letters when texting or emailing in order to get the letter in the text box. Can scroll through app choices, have to click on the line with the dots in it and move from page to page. Can't access the settings - > general - > accessibility - because it won't allow me to scroll down to "general".
    Anyone help you with your fix yet?

  • How do i recieve email alerts when using find my iphone

    how can i recieve email alerts when find my iphone is used

    You don't, this is a new security measure.
    you can send apple a feed back here http://www.apple.com/feedback/

  • Why does my inbox say I have a email but when I open inbox no email

    Why does my inbox say I have a email but when I open inbox no email

    Do a reset, hold down the home/power button until you see the apple logo and then release, then wait for the phone to boot back up.

  • How do I delete emails? When I try to delete a message comes up saying unable to move to trash.

    How do I delete emails? When I try to delete a message comes up saying unable to move to trash.

    There are a few things that you could try. First try turning the account off and on : Settings > Mail, Contacts, Calendars , then tap the account on the right, slide Mail to 'off', exit settings and go back into the Mail app, and then go back to Settings and slide Mail back to 'on'
    If that doesn't work then try closing the Mail app via the taskbar : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    A third option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    And if the above don't work then try going into Settings > Mail, Contacts, Calendars. Then select the account on the right-hand side of that screen, select Account, then Advanced, Deleted Mailbox, and under On The Server tap the 'Trash' folder so that it gets a tick against it - then come out of that series of popups by tapping on the relevant buttons at the top of them and then see if you can delete emails.

  • Why does my iPad hang when writing an email?  When I'm done with the email, I can't send it out and have to re-boot the iPad.

    Why does my iPad hang when writing an email?  When I'm done with the email, I can't send it out and have to re-boot the iPad. This happens if the time to compose email exceeds 10 to 15 minutes.

    Shut down all programs that are running in the background.
    1. Double-click the Home button to see Apps in background
    2. Hold the Apps down for a second or two until you see the minus sign
    3. Tap the minus sign to close program
    4. Reset iPad. Hold the Sleep and Home button down for about 10 second until you see the Apple logo
    Suggest you perform Step 1 to 3 at the end of every day.

  • How come my junk email disappears when I open it? for my .me email account

    how come my junk email disappears when I open it? for my .me email account

    Roadrunner is POP email, and the feature you are looking for
    is a function of IMAP email. Roadrunner has not announced
    any plans to make IMAP available. If this is important to you,
    get a gmail account (which can be setup as IMAP)  and configure
    your Roadrunner account to automatically forward emails to the
    gmail account.

  • How to have internal email scanned by external MTA.

    Hi, Guys
    For exchange 2013/ exchange online, I know it is easier to have external scanner to scan inbound/outbound email , but i don't know if it is possible to have internal email was scanned by external MTA before deliver to internal
    recipients. anyone know how to  achieve this and if the MTA can change email content?
    please advice urgent from where this can be done , thanks very much!!

    Hi Tony,
    According to your description, I understand that you want to use MTA to scan internal message to ensure security.
    If I misunderstand your concern, please do not hesitate to let me know.
    What’s the meaning of MTA? Message Transfer Agent or the term "MTA" to mean what Exchange refers to as the "Transport”? Transport service handle message routing, more details about Mail Flow, for your reference:
    https://technet.microsoft.com/en-us/library/aa996349(v=exchg.150).aspx#TransportPipeline
    The internal message never leave Exchange Organization, so external MTA cannot used for internal mail flow.
    However, we can deploy anti-spam agent on Mailbox Server to improve security, for example Sender filter, Sender ID agent and content filter agent.
    I find an article about Anti-spam protection, for your convenience:
    https://technet.microsoft.com/en-us/library/jj218660(v=exchg.150).aspx#Mailbox
    Best Regards,
    Allen Wang

  • How to have an email contact with an Apple specialist ?

    I'm not here for having helps about a problem with my iPad, I just would like to know if it's possible to have an email contact with a specialist because I have a presentation on Apple for my BAC and I would like to have informations on the firm...
    Please help me !
    Yours faithfully,
    Arthur

    I'm not being rude, just don't want you to have unreasonable expectations.
    Apple Specialists will not provide help with homework. There's plenty of info about Apple on the internet and in books and articles. If you have a specific technical question, searching this forum might yield an answer.

  • How can I unlink emails.  When I reply the original email is attached to the new one

    How can I unlink emails from each other so replies don't appear together?

    I'm not clear on what exactly you're asking. If you're wondering how to make Mail stop including a quoted copy of the original message in the reply, go to the Composing tab of Mail's preferences and uncheck "Quote the text of the original message" in the Responding section.
    If you're asking how to stop showing your replies mixed in with the messages that you replied to, go to the Viewing tab of Mail's preferences and uncheck "Include related messages" under "View conversations."

  • How do I stop email alerts when I make an iCal entry?

    Every time I enter anything or change anything on my calendar, an email is sent to my wife with whom I share my calendar. She doesn't like the stream of emails, and I can't figure out how to make them go away. iCal is linked between my iMac, my iPhone and my iPad. And as I say, my wife shares her calendar, and I share mine. Does anyone know the secret formula for making these emails go away?

    You don't, this is a new security measure.
    you can send apple a feed back here http://www.apple.com/feedback/

  • Some websites eg hotels have an email button when I click on these it says I need to set up an association. How do I do this. My OS is windows 7

    I want to send an email from the Odyssee Park Hotel website http://www.hotel-odyssee-park.com/hotel_morocco/hotel_morocco_agadir.htm
    But this is the message I get "There is no email program associated to perform the requested action. Please install an email program, or if one is already installed, create an association in the Default Programs control panel." I have been to the Default Programs control panel but still cannot work out what to do.

    See:
    *https://support.mozilla.org/kb/Changing+the+e-mail+program+used+by+Firefox

  • Icloud will not back up because it says email address not verified.  I am not getting a link in my email to follow to verify account, checked email address listed is correct, so how do I verify email address when I dont get the email link?

    I am unable to verify email address to sign in to icloud so that I can backup my stuff.  I am not getting an email from apple to follow a link to verify email address.  I have checked to make sure the email address is correct in the icloud settings, but all it will tell me is to check my email for instructions on how to verify my account.  I am not getting the email!  Please help, I am able to sign in to my itunes account and buy new music all the time!  I get my itunes receipts and everything, and know the email is correct so what is the deal?

    If you have given correct info about you ios 6.1.3 - all you need to do is delete account. You will be able to sign in with new one afterwards. Make sure you don't delete any info when you see those prompts.

  • How to get an email online when showing offline for sending. Solutions on site don't solve the problem.

    How do you get an email account online when it is showing offline for sending. All settings are correct, previous solutions on the site don't help. One account works find the other one receives but doesn't send. No issues with ISP was found. This may have been happening since OS travel. Took a while to realise it was using the other account for sending.

    I just solve the problem. While OS we brought an internet USB and connected to a phone, one or both of these must have caused the problem. When both of the downloads associated with them were deleted the email issue was resolved. regards

Maybe you are looking for