# 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.

Eclipse Backup Batch File

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

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

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

If you’re using your own backup utility, split this batch file here. Include the previous commands in the “Pre” batch file.

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

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

If you’re using your own backup utility, the remaining commands should be included in the “Post” batch file.

Start up Eclipse and Eclipse-COMM. C: cd \eclipse

start /w xlstartup.exe T T T

exit

KB-01007-DQ8G