help bkup

Title

bkup -- Take backup, using WinZip's command line option

Syntax

bkup [, full]

Description

bkup uses WinZip's command line option to make
an incremental or a full backup to a compressed file whose name
reflects the date and time of creation: YYYYMMDDHHMM.ZIP,
e.g. 200507271921.zip for a file created at 19:21, 27 July 2005.

Options

full turns the archive bit on for all files in the backup path,
leading to a full backup. The default is an incremental backup.

Remarks

The intended use of bkup is described in more detail in
An Introduction to Stata for Health Researchers (Juul 2006,
section 18.9).

bkup requires WinZip with the Command Line add-on to be
installed. WinZip is shareware; download both the main program
and the Command Line add-on from
http://www.winzip.com.

Using bkup requires that all of your "own" files are
stored under a main personal folder (e.g. c:\docs). bkup
also takes a backup of files in your personal
ado folder (typically c:\ado\personal).

Before using bkup you must personalize it. Open bkup.ado
in the Do-file editor and modify, if needed, the location of your
main personal folder (initially "c:\docs"), the location of the folder
where you want the backup-files stored (initially "c:\backup"), and the
location of your WinZip program (initially "c:\Program files\winzip\wzzip").

bkup.ado includes a number of DOS attrib commands turning
off the archive attribute for file types that you do not want
to backup. You may want to modify this list.

bkup automatically gives the zip-file a name reflecting
the date and time of creation. This lets you easily sort the zip-files
chronologically in case you need to make a restore.

Author

Svend Juul, Department of Epidemiology,
Institute of Public Health, University of Aarhus, Denmark.

References

Juul, S. 2006. An Introduction to Stata for Health Researchers.
College Station, TX: Stata Press