Automate Backups 
Author Message
 Automate Backups

Hello,

I am trying to automate the backup of password protected shared folders on a
20 user network to a directory on our file server using Wsh. The command I
used is as follows:

CmdString = "CMD /C XCOPY \\" & strUNC & "\" & strSource & " " &
strDestinationDrive & "\" & strDestinationFolder & " /S /E /I"

The scripts works well when I manually start it; however, when I schedule it
with the WinNT "at" command, the script does not attach to the pasword
protected share on any of the computer's.

Is there a better/ easier way to automate a complete copy of a folder and
it's subfolders?



Mon, 18 Jun 2001 03:00:00 GMT  
 Automate Backups
Any time you use AT, especially if you are accessing network resources, you
have to make sure that the system account you are using for the Scheduler
has the appropriate rights and permissions.

Go to the Services applet in Control panel and select Schedule, click on
Startup (I'm assuming it is already set to automatic).  What do you have
listed under the Log on as section?  I use my account since I have the
necessary permissions, but you could setup a SchedulerAccount in user
manager and give it the appropriate rights.

You can test this out by creating a quick batch file to print a directory of
the destination share to a file and use the SOON command.

There is one caveat, are you trying to backup shares on NT Workstations or
NT Servers?  You need to make sure that whatever account you use for the
Schedule service is recognized on the target systems.

Good luck.

Jeffery Hicks,MCP

Quote:

>Hello,

>I am trying to automate the backup of password protected shared folders on
a
>20 user network to a directory on our file server using Wsh. The command I
>used is as follows:

>CmdString = "CMD /C XCOPY \\" & strUNC & "\" & strSource & " " &
>strDestinationDrive & "\" & strDestinationFolder & " /S /E /I"

>The scripts works well when I manually start it; however, when I schedule
it
>with the WinNT "at" command, the script does not attach to the pasword
>protected share on any of the computer's.

>Is there a better/ easier way to automate a complete copy of a folder and
>it's subfolders?



Mon, 18 Jun 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Need automate backup operation

2. Automated backups

3. Wscript.shell => run backup script and waiting for backup to complet

4. Simple backup script question from a newbie

5. Backup IIS

6. IIS backup

7. Popup: Backup in Progress

8. MVS backup form

9. Backup Strategy

10. Test my backup script - anyone ?

11. backup gianfranco

12. Media Pool in NT Backup

 

 
Powered by phpBB® Forum Software