How to schedule Practice 2000 database backup

Resources > Q&A > Schedule database backup
To schedule P2K backup, please modify the script below to reflect your current settings, save it to a .bat file and add a new task for it in Windows scheduler. Please try to run it manually a few times to make sure it works correctly.

@ECHO OFF
for /f “tokens=1,2,3 delims=/ ” %%i in (‘date /t’) do set logdate=%%k%%j%%i
@ECHO ON
osql -E -Q “BACKUP DATABASE PRACTICE TO DISK = N’C:\PRACTICE\Practice.dat’ WITH INIT , NOUNLOAD ,NAME = N’Practice Backup’, NOSKIP , STATS = 10, NOFORMAT”
c:\practice\pkzipc -add=update C:\practice\%logdate%.zip C:\Practice\Practice.dat C:\Practice\Letters\*.* C:\Practice\LetterTemplates\*.*

newsletter subscribe

1300 723 938   |   T+61 3 9675 0600   |   F+61 3 9675 0699  |   marketing@global-health.com
Level 2, 607 Bourke Street, Melbourne Victoria 3000 Australia
© Copyright Global Health Limited     ABN 75 091 377 892
Privacy Policy

 
First Name
Last Name
Organisation
Phone
Email
I am using a Mac 

Terms and Conditions: (1) Your 14-day trial starts from the day of sign-up and automatically terminates unless you request for an extension before your trial expires. (2) ReferralNet Secure Message Delivery and ReferralNet SMS are not functional in the trial version. (3) To subscribe after your trial account expires, just purchase an annual subscription/licence. (4) Use of our software is subject to Terms and Conditions.

 I have read and accept all Terms and Conditions
 Security code
Close

Enquiry Form

 
 
 
 
 
 
 
 Security code
 
 

Close

Register for Market Updates

 

Close