Question Locked

Batch Backup

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi everybody,
I'm not good with DOS, so for this reason I need your help.
Can you please help me to create a batch file to backup a shared folder in another computer on my network. This shared folder contains about 7 folders and files also.

2 replies

by churdoo

Are you just trying to make a copy of a series of folders, or would you like to use software that will compress and consolidate like ntbackup? What O/S will you be running this from?

If you just want to copy a series of folders and files, then I would create a .bat file containing the following command, of course substituting servername and sharedFolder with their real values:
xcopy "\\servername\sharedFolder\*.*" c:\backup\servername\sharedFolder\" /s /e /y
Once you have created the above, you may schedule it to run automatically as a scheduled task.

If you want to use say, ntbackup, then launch ntbackup and run through the backup wizard and it will create the batch for you and will allow you to create a schedule.

This discussion is closed to new replies.