Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Data backup reuired by Autoexec.bat file  (Read 7875 times)

0 Members and 1 Guest are viewing this topic.

asher

  • Guest
Data backup reuired by Autoexec.bat file
« on: May 21, 2004, 04:26:31 AM »
[glb][/glb]Hi there
i need that all the data from network clients can be copied through Batch file automatically after a specific time to a shared folder at Network shared folder from sitting at my desktop and with out moving or browsing every computer step by step which is a time consuming process.
How i can execute or write a batch file for this func

Thanks in advance for the coporation

:o

MalikTous

  • Guest
Re: Data backup reuired by Autoexec.bat file
« Reply #1 on: July 03, 2004, 12:10:10 PM »
1) On the machines you wish to backup the appropriate folders from, insure that you set the sharing up to share those folders.

On the backup server, share the folder you wish to use for backup (unless this is the command machine.)

Then on the command machine, write the batch file using xcopy and set the overwrite automatically option. Use "quotes" to let the DOS command shell recognise the network path specifications for each network path, "//workstation-name/shared-directory\filespec-grep.typ" might work where it gives an error without quotes. When the batch file is run (either manually or by a cron app - a timer utility), it will copy the desired workstation directories to the appropriate subdirectories in the backup server.

2)On each workstation, create a batch file that specifies a directory in the backup server as the destination of its copying the desired data directory. Run this from a cron application or manually. You can CALL it from Autoexec.bat (or use it as the last line) if you want.

On the backup server, set the backup directory as a sharred directory.

This distributed method allows each user to backup with a manual command to his own backup directory, if he wants, as well as minimising share need. It also eliminates the need to run the command from a central command machine.