Command Line Backups for Clinical/Pracsoft

Preparing a Command Line Backup

Locate and double-click the MedicalDirector Maintenance icon on your desktop. The MedicalDirector Maintenance window appears.

Locate and double-click within the Common (Maintenance Tasks) section of MedicalDirector Maintenance. The Backup window is displayed.

Select the Backup Location tab.

 

Select/Enter settings as necessary from the following tabs:

Backup Location

Database

Documents

Notification

Plugins

 

Click  The Save Configuration window is displayed.

Save the configuration in the appropriate folder.

The default location for configuration files is C:\Hcn\Configurations.

Running a Command Line Backup

Select Start > All Programs > Accessories > Command Prompt from the Windows taskbar.

 

From the batch file, copy the full path command line you wish to run.

To enter the command line, click in the top-left of the Command Prompt window and select Edit > Paste.

Press Enter and the backup will run using the entered command line.

Creating a Batch File to Run a Backup

This procedure is used if you want to perform a backup as part of a larger custom process. For example, you wish to perform other procedures including a backup. The steps below are based on you running Windows 7. The process for other Operating Systems may vary.

To create a batch file to run a backup:

Click the Windows Start button.

Type 'Notepad'. The Notepad application will appear in the list of available programs.

 

Click the Notepad application. The Notepad window is displayed.

 

Paste or enter the full path to the configuration file, for example, "C:\Program Files\Health Communication Network\Common\HcnBackupCmd.exe" -C"C:\HCN\Configurations\HCN Live Data.BCF".

Select File > Save As from the Notepad window. The Save As window is displayed.

Select the location to create the batch file in the Save in field.

Enter the file name followed by the text.bat in the File name field. For example, HcnBackups.bat.

Select All Files from the Save as type field and click