Performing Backups

Skip Navigation LinksSupport > Knowledge Base > Eclipse > Performing Backups

Making regular backups of your data and having a disaster recovery plan are important steps to ensuring that your business can recover from a disaster, hardware failure, or user error. Your Eclipse data should be included in such plans. Since most backup utilities cannot perform a backup on open files, Eclipse must be shut down during the backup process. 

Below is a sample batch file that shows how to shut down Eclipse and restart it after the backup is complete.


REM Eclipse Backup Batch File is Running


REM This is an example batch file that will backup the Eclipse directory to a network drive.  
REM This file assumes Eclipse is installed in the default directory (C:\Eclipse) and points 
REM at hypothetical "E:" drive. Make sure your settings match your local needs.


REM  Point to Eclipse directory for all processing during this process.
c:
cd \eclipse


REM  Run the xlshdown executable to Shutdown Eclipse and Eclipse-COMM.
start /w xlshdown.exe


REM If you're using your own backup utility, split this batch file here. Include the previous 
REM commands in the "Pre" batch file.


REM Copy the contents of the Eclipse folder to a network folder, assume the destination 
REM is a directory, that all subdirectories will be copied (even if empty), and overwrite 
REM existing files without prompting.


xcopy *.* e:\backup\eclipse /i/e/y


REM If you're using your own backup utility, the remaining commands should be included in the
REM "Post" batch file.


REM Start up Eclipse and Eclipse-COMM.
c:
cd \eclipse
start /w xlstartup.exe T T T
exit