Difference between revisions of "BACKUP"

From VSI OpenVMS Wiki
Jump to: navigation, search
(Created page with "'''BACKUP''' is a utility for creating file backups - copies of file sets that preserve file metadata. Backups can be used to revert from ODS-5 to ODS-2. =Save Sets=...")
 
m
 
Line 168: Line 168:
  
 
[[Category:Utilities]]
 
[[Category:Utilities]]
 +
[[Category:DCL Commands]]

Latest revision as of 12:34, 2 December 2019

BACKUP is a utility for creating file backups - copies of file sets that preserve file metadata. Backups can be used to revert from ODS-5 to ODS-2.

Save Sets

A save set is a type of file created by the BACKUP utility that stores files and metadata. It can only be opened and interpreted by the BACKUP utility. Here is a listing of a backup saveset:

$ backup/list sysexamples.bck/save
Listing of save set(s)

Save set:          SYSEXAMPLES.BCK
Written by:        SYSTEM
UIC:               [000001,000004]
Date:               5-APR-2019 20:10:34.14
Command:           BACKUP DKA0:[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]*.COM SYSEXAMPLES
.BCK/SAVE
Operating system:  OpenVMS Alpha version V8.4
BACKUP version:    V8.4-2L2
CPU ID register:   80000000
Written on:        _SMAN01$DKA0:
Block size:        32256
Group size:        10
Buffer count:      96

[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]ACMEUTIL.COM;1              1  11-DEC-2001 15:24
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]ACMEUTIL_SETUP.COM;1
                                                            7  30-APR-2003 15:06
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]ACME_EXAMPLE_DOI_BUILD.COM;1
                                                            8  15-FEB-2010 19:58
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]ACME_PERSONA_BUILD.COM;1
                                                           10  15-FEB-2010 19:58
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]ADDUSER.COM;1              28   2-NOV-1994 11:35
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]BACKUSER.COM;1              8  31-MAR-1992 13:36
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]CALC_SYSDISK_FREESPACE.COM;1
                                                            4   2-FEB-2009 16:29
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]CLU_MOUNT_DISK.COM;1
                                                            2  30-MAR-1987 17:13
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]CREATE_INFOSERVER_SERVICE.COM;1
                                                           62  17-APR-2009 14:31
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]DAYLIGHT_SAVINGS.COM;1
                                                           41  30-APR-2008 02:48
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]DECDTM$EXAMPLE1.COM;1
                                                            2  26-MAR-1992 12:42
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]DECDTM$EXAMPLE2.COM;1
                                                            2  26-MAR-1992 16:44
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]ENHANCED_ERAPAT.COM;1
                                                           29  27-AUG-2012 07:33
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]EXAMPLE_F$GETDVI_2TB_DISK.COM;1
                                                            9   2-FEB-2009 16:29
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]LAN$POPULATE.COM;1         64  21-AUG-1996 15:30
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]LAT$RATING_BUILD.COM;1
                                                           10  26-JAN-1995 21:37
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]LAVC$BUILD.COM;1            5  21-SEP-1992 17:10
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]LIB$TABLE_PARSE_DEMO.COM;1
                                                           83  12-DEC-1996 14:24
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]LRDRIVER.COM;1             12  29-AUG-1995 08:28
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]MGRMENU.COM;1              30  16-SEP-1992 15:22
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]MONITOR.COM;1               5  15-AUG-1987 13:48
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]MONSUM.COM;1                4  15-AUG-1987 13:49
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]MSCPMOUNT.COM;1            16   2-DEC-1993 13:23
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]MYTEST_LNK.COM;1            4  15-SEP-1992 11:24
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]OLD_DAYLIGHT_SAVINGS.COM;1
                                                           17   1-JUL-1993 15:17
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]OSIT$CMD_EXECUTOR.COM;1
                                                            3  20-MAY-1991 16:28
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]PARTITIONS.COM;1            3  23-MAR-2000 14:00
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]RAD.COM;1                   9  23-NOV-2009 16:20
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]RDB$SDA.COM;1               4   4-JUN-2004 18:09
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]RESET_DEVICE_PROTECTION.COM;1
                                                            6  28-OCT-1993 16:05
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]RESTUSER.COM;1              5  16-MAR-1989 13:37
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]RMSJNL_EXAMPLE.COM;1
                                                            8  12-DEC-1989 21:48
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]SETUP_NCL_KEYPAD.COM;1
                                                           32  17-JUL-1996 15:33
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]SPL.COM;1                  14  13-OCT-2004 16:48
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]SUBMON.COM;1                2  15-AUG-1987 13:55
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]SYS$NET_SERVICES_EXAMPLE.COM;1
                                                            3   3-APR-1996 17:42
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]UWSS_LNK.COM;1              3  16-AUG-2006 07:53
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]VMS$PASSWORD_POLICY_LNK.COM;1
                                                            1  10-FEB-2000 10:17
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]WORKING_SET.COM;1           6  31-AUG-2012 04:51
[SYS0.SYSCOMMON.SYSHLP.EXAMPLES]XTI_EXAMPLES.COM;1          4   5-AUG-1994 14:38

Total of 40 files, 566 blocks
End of save set

 

Syntax

BACKUP input-specifier output-specifier

input-specifier:

Any of the following:

  • a disk or tape for an image backup (used with the /IMAGE qualifier)
  • a file specification, possibly containing wildcards
  • a save set specification followed by the positional /SAVE_SET qualifier

output-specifier:

Any of the following:

  • a disk or tape for an image restore
  • a save set specification followed by the positional /SAVE_SET qualifier
  • a directory specification


Operation Format
Save BACKUP file-spec save-set-spec
Save (image) BACKUP/IMAGE device-spec save-set-spec
Save (physical to disk) BACKUP/PHYSICAL device-spec device-spec
Restore BACKUP save-set-spec file-spec
Restore (image) BACKUP/IMAGE save-set-spec device-spec
Restore (physical fromdisk) BACKUP/PHYSICAL save-set-spec device-spec
Restore (physical from tape) BACKUP/PHYSICAL save-set-spec device-spec
Copy BACKUP file-spec file-spec
Copy (image) BACKUP/IMAGE device-spec device-spec
Copy (physical to tape) BACKUP/PHYSICAL device-spec save-set-spec
Compare BACKUP/COMPARE file-spec file-spec
BACKUP/COMPARE save-set-spec file-spec
Compare (image) BACKUP/COMPARE/IMAGE save-set-spec device-spec
Compare (physical) BACKUP/COMPARE/PHYSICAL device-spec device-spec

BACKUP/COMPARE/PHYSICAL save-set-spec device-spec

List1 BACKUP/LIST[=file-spec] save-set-spec

BACKUP/LIST[=file-spec] device-spec

Create Journal BACKUP/JOURNAL[=file-spec] file-spec save-set-spec
List Journal BACKUP/JOURNAL[=file-spec]/LIST[=file-spec


See also