|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (13 bit)
Join Date: Mar 1999
Posts: 6,791
|
Windows Backup Scripts
Hi all,
I'm not sure if this is the right forum, but here it goes. I basically want to write a backup script that will run in windows and execute at 1:00AM daily or right before the machine shuts down (whichever comes first -- maybe I need two scripts?). This script will simply copy a couple directories to a network share (which will ultimately get backed up onto tape) and then continue the shutdown proceedure. Any idea how might go about writing this script (i.e. what tools I would need)? Thanks in advance. |
|
|
|
|
|
#2 |
|
Premium Member
Join Date: Jun 1999
Posts: 9,231
|
Hi Floppyman:
There are a number of ways to go about it, and writing a script is fairly easy .. IMO however the best practice in this case is not to reinvent the wheel but use existing tools and scripts. For example check out Michael's (Horowitz) Backup Script. a) It's a fairly comprehensive script b) Well documented c) Configurable, especially for your needs, allowing you to change variables real easily d) Has links to all the tools needed to adapt the script to your needs. For example: Michael makes mention of Show Stopper .. a tool that allows you to run scheduled tasks on a shutdown. HTH Last edited by Statica; 09-11-2006 at 06:21 AM. |
|
|
|
|
|
#3 | |
|
Member (9 bit)
Join Date: Mar 2001
Location: Illinois
Posts: 352
|
I wrote a batch file to do my backups, and then schedule it to run at midnight via the "Schedule Task" utility. Here's a sample line:
Quote:
With my batch, it is set to run at midnight...I don't know if you could add a line to run before shutdown. |
|
|
|
|
|
|
#4 | ||
|
Premium Member
Join Date: Jun 1999
Posts: 9,231
|
Quote:
Quote:
Local Computer Policy > Computer Configuration > Windows Settings> Scripts (Startup/Shutdown) and add a shutdown script. |
||
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|