Backing up your source files

Why it is important to back up your files

All the work you do editing and debugging the files in your DITA project ends up being stored as files on disk. If something happens to one or more of those disk files, you work may need to be re-created. Disk files can be lost for several reasons, including:
  • You accidentally erase them. Because DITA projects may have hundreds or thousands of files, if may be relatively easy to do this when you don't have a library system or content management system.
  • The hard drive in your computer fails. Hard drives are mechanical devices and will fail after a finite amount of time.
  • The file system on your disk drive becomes corrupted.

Strategies for preserving your data

The basic strategy for preserving your data is to make sure it is stored on more than one hard drive. How you do this depends on your work environment:
  • If you have a standalone desktop or laptop computer, you should make frequent backups to an external disk drive or USB device.
  • If you are using a library or source control system, make sure your work gets checked in frequently. The source control system can serve as your backup system.
  • If you are using a content management system, use it as your backup system.

It is easier to back up your DITA projects if they contain all your relevant project files (including your Ant scripts) and are located in a directory separate from your ditaot build directory.