New
#110
Last edited by jkitc; 15 Aug 2012 at 11:42. Reason: Show a Screen Capture
Last edited by jkitc; 15 Aug 2012 at 11:42. Reason: Show a Screen Capture
Hello Golden,
I want to backup my PC D-drive 5 times in a week to my network drive. Could you please write a script to achieve this. Below is my requirement.
--Everyday full backup
-- Want to retain the last 5 days backups
-- script should create directory everyday and take the backup into that directory
-- It should delete the directory, if the days exceeds more than 5.
-- It should have only last five days backup
Please help me.
Many thanks in advance.
Thanks & Best Regards,
SRAMB1
Golden, it works great if I double click on the .bat file, but when I try using task scheduler it is failing. I've looked through the tutorial you referenced, but still no go.
Systems are on domain, bat file has been place on C drive and on user's Desktop, but am currently getting 0x3 as last run result when testing (although the script does appear to run).
robocopy c:\users\username \\servername\share\username /e np /tee /mt /XA:SH /XF Recycler* /r:3 /w:10 /XJ /XD AppData
Any thoughts? Today we are supposed to "go live" with this, and I just found the bug.
Had same problem, cause i used notepad, and then renamed to *.bat for my script.
did a new blank page in notepadd++, copied the script into that, saved it as a bat file in notepadd++ and viola, script was working as intended.
Now i don't get this continous rolling in a prompt anymore :)
actually, just made a account here, JUST to tell you that :)
Thanks a lot, Golden! Very helpful.