|
-
Sep 24th, 2001, 04:03 AM
#1
Thread Starter
Addicted Member
backup datas
here is my doubt.,
iam working in WIN Nt environment , @ present now iam takeing backup for all the data files in each system by browseing thru the network neighbourhood folder. The files will be zipped from a shared folder of a system in a single hard disk. Now my Question is, Is there any utilities, or s/w or any simple codes for the above said, postings will be helpful, pls help
thanks
parthi
-
Sep 24th, 2001, 06:12 AM
#2
Retired VBF Adm1nistrator
I do a similar thing. Except I do it from dos.
If you install the Winzip Command Line Interface application, then you can write a batch file to do it.
This is what the batch file looks like for backing up data from our server :
Code:
@echo Backing up original ...
@if not exist c:\Backup mkdir c:\backup
@if exist c:\Backup\Take5Yesterday.zip move c:\Backup\Take5Yesterday.zip c:\Backup\Take5DayBeforeYesterday.zip
@if exist c:\Backup\ActYesterday.zip move c:\Backup\ActYesterday.zip c:\Backup\ActDayBeforeYesterday.zip
@if exist c:\Backup\UsersYesterday.zip move c:\Backup\UsersYesterday.zip c:\Backup\UsersDayBeforeYesterday.zip
@echo Compressing \\ntserver\company\t5p25\*.*
@c:\progra~1\Winzip\wzzip -rp -ex c:\Backup\Take5Yesterday.zip \\ntserver\company\t5p25\*.*
@echo Compressing \\ntserver\company\Everyman Database\*.*
@c:\progra~1\Winzip\wzzip -rp -ex c:\Backup\ActYesterday.zip \\ntserver\company\everym~2\*.*
@echo Compressing \\ntserver\users\*.*
@c:\progra~1\Winzip\wzzip -rp -ex c:\Backup\UsersYesterday.zip \\ntserver\users\*.*
@echo Finished !
I wrote it myself. All you'd have to do is change the path names etc. to suit your network.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Sep 25th, 2001, 02:30 AM
#3
Retired VBF Adm1nistrator
First off, I'm jamie. Craft is just the game I wrote.
And secondly if you write it all into a batch file, you can use the task scheduler in windows, or use the Shell statement from VB.
Eg.
VB Code:
Shell "c:\backup.bat", vbNormalFocus
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|