Script for Closing files before backup

  • Thread starter Thread starter James
  • Start date Start date
J

James

I know nothing about scripting and I need to be able to
close all open shared files before I run my backup. It
keeps hanging on a access database that is sometimes left
open. Whats the easiest way to go about this without
programming a script?
 
From a command prompt;
net pause server
net sess /d /y
'will disconnect all users
'run your backup
net continue server


--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect


:
|I know nothing about scripting and I need to be able to
| close all open shared files before I run my backup. It
| keeps hanging on a access database that is sometimes left
| open. Whats the easiest way to go about this without
| programming a script?
 
ok...excuse my igornace...how do i set this up to run
daily? I have never done anything like this before
 
Probably easiest to use Task Scheduler to schedule a shell script. Save this
as a *.cmd


---------------------------
net pause server
net sess /d /y
command line to run your backup
net continue server
---------------------------
--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect


:
| ok...excuse my igornace...how do i set this up to run
| daily? I have never done anything like this before
 
I am backing up using Veritas Backup Exec. So I want to
omit the Comand line backup. Currently I have
----------------------
net pause server
net sess /d /y
------------------

to Run before the backup. How can I schedule to run the
continue command after veritas has completed the backup?

thanks so much for your help
 
Unfortunately Task Scheduler will have no way of knowing when the backup is
complete. This link may help.

http://seer.support.veritas.com/docs/235619.htm

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect


:
|I am backing up using Veritas Backup Exec. So I want to
| omit the Comand line backup. Currently I have
| ----------------------
| net pause server
| net sess /d /y
| ------------------
|
| to Run before the backup. How can I schedule to run the
| continue command after veritas has completed the backup?
|
| thanks so much for your help
 
Can I just use this one line? seeing that noone will be
connecting to the server until after the backup is done?

net sess /d /y
 
Yes, if you don't need to worry about users and or processes reconnecting
then that should work fine.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect


:
| Can I just use this one line? seeing that noone will be
| connecting to the server until after the backup is done?
|
| net sess /d /y
 
Back
Top