Compare next pure CLI output:. How are we doing? Please help us improve Stack Overflow. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 6 years, 10 months ago. Active 6 years, 10 months ago. Viewed 2k times. Best regards. Add a comment. AddDays -5 Just an easier method to use, a little faster miliseconds so not a huge deal.
Powershell can also send the email, so saves you from having to put the sendemail. Send-MailMessage -from email gmail. Now, with Powershell we can securely store that password so you don't have to store it in clear text but that'll take a bit more work, you can see this function for that. I have had success using MKSBackup which is basically a wrapper for wbadmin.
It is free and took a little troubleshooting to get it working right but what it does is send me a success or failure message and attaches the assorted job and log files.
I like that I receive a status email to job. I know that on a daily basis, I should have 15 notifications for backup jobs and I can scan the subjects to see that they all say "OK". I don't have cheap clients, my employer is my client if you know what I mean. Martin's suggestion will return the date 5 days ago, but at the same time that you execute it. If you want to get everything for that date, just add ". Date" to the call:. Server has a email notifications built in. Just create a new task in the task scheduler, find the backup success event ID, set it as the trigger and send and email in the actions.
Schedule it for first thing in the morning. Just be aware that Microsoft has depreciated that capability. It's still there for but will be going away, so you might want to rely on a different method. To continue this discussion, please ask a new question. Spiceworks Help Desk. The help desk software for IT. I've tried every possible fix I could think of, and trawled the internet for answers, but to no avail.
How are we doing? Please help us improve Stack Overflow. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Batch file to backup data to networked drive? Ask Question. Asked 7 years, 7 months ago. Active 6 years, 11 months ago.
Viewed 10k times. I tried to make the batch file myself, and this was the best I could come up with rem TXT I've been working on this for days and have had no success. TXT — Alex.
I just tried, that and it gives the error "The system cannot find the path specified".
0コメント