V2archive
Use the v2archive option with the archive command to archive only files to the server.
The backup-archive client will not process directories that exist in the path of the source file specification.
This option differs from the filesonly option in that the filesonly option archives the directories that exist in the path of the source file specification.
The v2archive and dirsonly options are mutually exclusive and an error message is displayed if you use both options in the same archive command.
If you use this option, you might want to consider the following:
- You might experience performance problems when retrieving large amounts of data archived with this option.
- You might want to use this option only if you are concerned about expiration performance on a server that already contains extremely large amounts of archived data.
- If there are multiple files with the same name for the v2archive option, the files are archived multiple times, with their directory structure. The v2archive option archives only the files.
Supported Clients
This option is valid for all clients. The IBM Spectrum® Protect API does not support this option.
Syntax
Parameters
There are no parameters for this option.
Examples
- This command:
dsmc archive "/Users/user2/Documents/*" -v2archive -su=y
.Archives these files:/Users/user2/Documents/file1 /Users/user2/Documents/file2 /Users/user2/Documents/file3 /Users/user2/Documents/dir2/file4 /Users/user2/Documents/dir2/file5
Note: The client does not archive/Users/user2/Documents
and/Users/user2/Documents/dir2
.- This command:
dsmc archive "/home/relx/dir1/*" -v2archive -su=y
.Archives these files:/home/relx/dir1/file1 /home/relx/dir1/file2 /home/relx/dir1/file3 /home/relx/dir1/dir2/file4 /home/relx/dir1/dir2/file5
Note: The client does not archive/home/relx/dir1
and/home/relx/dir1/dir2
.- This command:
dsmc archive c:\relx\dir1\ -v2archive -su=y
Archives these files:c:\relx\dir1\file1 c:\relx\dir1\file2 c:\relx\dir1\file3 c:\relx\dir1\dir2\file4 c:\relx\dir1\dir2\file5
Note: The client does not archivec:\relx\dir1
andc:\relx\dir1\dir2
.