The archive command archives a single file, selected files, or all files in a directory and its subdirectories on a server.
Archive files that you want to preserve in their current condition. To release storage space on your workstation, delete files as you archive them using the deletefiles option. Retrieve the archived files to your workstation whenever you need them again.
Use the snapshotroot option with the archive command along with an independent software vendor application that provides a snapshot of a logical volume to associate the data on the local snapshot with the real file space data that is stored on the Tivoli® Storage Manager server. The snapshotroot option does not provide any facilities to take a volume snapshot, only to manage data that is created by a volume snapshot.
AIX® only: You can enable snapshot-based file archive by using the option snapshotproviderfs=JFS2.
This command is valid for all clients.
.-----------------. V | >>-Archive------ --filespec---+--+------------+---------------->< '- --options-'
For example, if the filespec is /home/amr/ice.doc /home/amr/fire.doc, then /home and /home/amr might be archived twice. The file objects ice.doc, and fire.doc, are archived only once.
For example, if the filespec is C:\proposals\drafts\ice.doc C:\proposals\drafts\fire.doc, then C:\proposals and C:\proposals\drafts might be archived twice. The file objects ice.doc and fire.doc are archived only once.
selective -removeoperandlimit filespec1 filespec2 ... filespec21
Option | Where to use |
---|---|
archmc | Command line only. |
archsymlinkasfile | Client user-options file (dsm.opt) or command line. |
autofsrename | Client options file (dsm.opt) only. |
changingretries | Client options file (dsm.opt) or command line. |
changingretries | Client system options file or command line. |
compressalways | Client options file (dsm.opt) or command line. |
compressalways | Client user-options file (dsm.opt) or command line. |
compression | Client options file (dsm.opt) or command line. |
compression | dsm.sys file within a server stanza or command line. |
deletefiles | Command line only. |
description | Command line only. |
dirsonly | Command line only. |
encryptiontype | dsm.sys file within a server stanza. |
encryptiontype | Client options file (dsm.opt). |
encryptkey | dsm.sys file within a server stanza. |
encryptkey | Client options file (dsm.opt). |
filelist | Command line only. |
filesonly | Command line only. |
postsnapshotcmd | Client options file (dsm.opt) or with the include.fs option. |
preservelastaccessdate | Client user-options file (dsm.opt) or command line. |
preservelastaccessdate | Client options file (dsm.opt) or command line. |
presnapshotcmd | Client options file (dsm.opt) or with the include.fs option. |
removeoperandlimit | Command line only. |
skipntpermissions | Client options file (dsm.opt) or command line. |
skipntsecuritycrc | Client options file (dsm.opt) or command line. |
snapshotcachesize | Client options file (dsm.opt) or include.fs option. |
snapshotroot | Command line only. |
subdir | Client options file (dsm.opt) or command line. |
tapeprompt | Client options file (dsm.opt) or command line. |
v2archive | Command line only. |
Command: archive /home/proj1/budget
Command: archive c:\plan\proj1\budget.jan
Command: archive "/home/proj1/*.txt"
Command: archive c:\plan\proj1\*.txt
Command: archive -subdir=yes "/home/*"
Command: archive -subdir=yes c:\*.*
Command: archive \\myserver\mydfsroot\mydfsvolume\*.* -subdir=yes
Command: dsmc archive /usr/dir1/sub1/ -subdir=yes -snapshotroot=/snapshot/day1
Command: dsmc archive c:\dir1\sub1\* -subdir=yes -snapshotroot=\\florence\c$\snapshots\snapshot.0