Types of Backup

For most systems, by far the best method of backing up your DP4 database is that described in DYNABACK - Backup in Native DP4 Database Format

You can either make a complete backup of your database including all the files that together make up the database, or you can opt to back up only the .LOG file.

You can back up the database to hard disk or to removable media such as a diskette or tape, or both. If you back up to the local hard disk only you can restore the database quickly, but you are not covered in the event of a hard disk failure. It is a much better idea to back up to a second hard disk, for example a drive on a network server that is automatically backed up each night by a tape streamer. It is also a good idea to keep a backup available on hard disk, as this is likely to permit a faster restart after a system crash. However, this does require extra hard disk space.

There are two different utilities for backing up a database, with a range of facilities:

When using the original diskette style backup with either DBBACKUP or DYNABACK you can control where the backup is made, using the directory assignment option of DFSETUP to set up the desired default location for backup files. You can over-ride the backup location with the -DISK command tail when running DBBACKUP (or DYNABACK from 4.522). This allows you to arrange, for example, to back up to hard disk on a daily basis, and to disk on a weekly basis. (For details see Specifying the Backup Location.)

If the total size of all database files is very close to or exceeds 4GB, then the only way to back up the database correctly, at least until release 4.622, is:
DYNABACK -COPY -NOSPACE.

As of release 4.622 all the DP4 backup utilties can work with databases of any size, provided the underlying operating system supports sufficiently large files.

Backing up without using DP4 backup utilities

An alternative to using the DP4 backup utilities is to use the facilities provided by the operating system or third party software to copy the database files. Be careful when writing a script/batch file to do this, because: