1、首先看一下SAPCAR的功能
usage:
create a new archive:
SAPCAR -c[vir][f archive] [-P] [-C directory]
   [-A filename] [-T filename] [-X filename]
   [-p value] [-V] file1 file2 ...

list the contents of an archive:
SAPCAR -t[vs][f archive] [file1 file2....]

extract files from an archive:
SAPCAR -x[v][f archive] [-R directory] [-A filename]
   [-V] [file1 file2....]

verify the archive:
SAPCAR -d[v][f archive] [-V] [file1 file2....]

append files to an archive:
SAPCAR -a[v][f archive] file1 [file2....]

merge two archives:
SAPCAR -m[v]f "source target"

check availability of files to be processed:
SAPCAR -l [-A filename][-X filename] [file1 file2...]

sign archive:
SAPCAR -S[v]f MY.SAR [-key keyname] [-H file hash]

verify the content of signed manifest:
SAPCAR -M[v][f manifest file] [-manifest file]

other options:
-a           : append files to an archive
-A FILE      : get names to include from file FILE
-backup      : run in backup mode: include ACL data
               (supported by UNICODE SAPCar on Windows platforms only)
-C DIR       : change to directory DIR
-crl FILE    : use FILE as CRL for a revocation check
-e           : redirect output from stdout to file sapcar_output
-f FILE      : use archive file FILE (default DEFAULT.SAR)
-flat        : don't preserve file path when extracting files
-g           : ignore case of of archive names while extracting,
               testing or listing archives
-h           : do not change permissions of existing directories
               during extraction
-H ALGORITHM  : use ALGORITHM for file hash calculation
               (default: SHA256)
-i           : ignore inaccessible files while creating an archive
-j           : forcibly extracts files (includes option -h) by first deleting
               then creating existing files with current user as owner
-key FILE    : use FILE for signature operations (default: SAP)
-l           : check availabilty of files to be processed
-L FILE      : use security library FILE for signature operations
               (default: sapcrypto.dll)
-lower       : convert filenames to lowercase while extracting
-m           : merge two archives
-M           : verify external manifest file
-manifest FILE: external manifest FILE
-n           : print statistical information
-p octalvalue : set permissions of all files in archive to value
-P           : use absolute path-names (use carefully)
-pwd PASSWORD : Password of PSE (default: no password)
-r           : do not resolve symbolic links/shortcuts while creating
               an archive
-R dir       : use dir instead of current directory
-S           : create a digital signature of an archive
-s           : do free space check
-T FILE      : rename files to be included in FILE
-v           : verbosely list files processed
-X FILE      : get names to exclude from FILE
-V           : activate signature verification in existing
               commands -a, -c, -d, -t and -x.
-y ALGORITHM  : signature hash algorithm (default: SHA256)

examples:
create archive with all files and directories in the current directory
including point files:
SAPCAR -cvf MY.SAR .

create archive with all files and directories in the current directory
without point files:
SAPCAR -cvf MY.SAR *
Note that SAPCAR treats "*" and "?" as wildcard characters. The former
matches any character string, while the latter matches any single
character.

create archive with a complete directory and directory rights:
SAPCAR -cvf MY.SAR dir

create archive with all files of a directory without the directory
itself:
SAPCAR -cvf MY.SAR dir/*
if during extraction with SAPCAR -xvf MY.SAR the directory dir does not
exist it will be created with rights 755

create archive with only the files of a directory
SAPCAR -cvf MY.SAR -C dir .
or better
(cd dir; SAPCAR -cvf ../MY.SAR .)

merge two archives:
SAPCAR -mvf "source-archive.sar target-archive.sar"

append files to an archive:
SAPCAR -avf archive.sar file1 file2 file3

sign an existing archive:
SAPCAR -Svf MY.SAR [-L library] [-key PSE] [-pwd PSE PIN] [-H algorithm]

verify an existing archive signature:
SAPCAR -dSf MY.SAR [-L library] [-key PSE] [-pwd PSE PIN] [-crl CRL]

verify an existing archive signature and file hashes:
SAPCAR -tVvf MY.SAR [-L library] [-key PSE] [-pwd PSE PIN] [-crl CRL] [file1 fil
e2....]

verify a local signed manifest with extracted files:
SAPCAR -M -manifest sap.manifest

extracting/verifying files:
If you try to extract files from an archive that is not a valid SAPCAR
archive according to the version 2 specification SAPCAR assumes an archive
of the old format and automatically invokes the appropriate extraction
routine. If it still cannot handle the archive it will stop execution.
Notice that extracting out of old archives only works with the command
options known to the old CAR application.

using absolute pathnames:
If you create an archive with absolute pathnames the files will be
extracted with exactly these pathnames! SAPCAR does not cut the first
slash like the UNIX tool tar.

specifying a list of archives for extracting/verifying/listing:
Enclose the list with double quotes.
If there is no whitespace in any archive path the list must be separated by
space or comma; e.g.
   SAPCAR -xvf "ARCHIVE1.SAR ARCHIVE2.SAR"
If at least one archive path contains whitespace the list must be comma
separated; e.g.
   SAPCAR -xvf "ARCHIVE WITH BLANK.SAR, ARCHIVE.SAR, ARCHIVE2.SAR"

specifying a single archive path containing whitespace:
Enclose the archive name with double quotes.
 creating: You must not append a comma except it is part of the path; e.g.
   SAPCAR -cvf "ARCHIVE WITH BLANK.SAR" *
 extracting/verifying/listing: You must append a comma; e.g.
   SAPCAR -xvf "ARCHIVE WITH BLANK.SAR,"

In order to extract/verify/list more than one archive using wildcards you
have to quote the file name argument in order to bypass wildcard evaluation
by the shell. So a call like
   SAPCAR -xvf K*.sar
will result in only one archive beeing extracted,
whereas
   SAPCAR -xvf "K*.sar"
will have SAPCAR extracting all archives in the current directory that
match the pattern "K*.sar".

using A, T and X option:
All entries in the specified files are treated relative to the current
working directory unless the entry is an absolute pathname (in this case
the relevant file will be archived with an absolute pathname).
If you want to specify a directory path in these files use the slash ("/")
as path delimiter.

Use the pipe sign ("|") to separate old and new names in a T file when
these names contain whitespaces. If neither the old file name nor the new
one contains any whitespaces you may use whitespaces as delimiter between
old and new name (that means a valid CAR rename file is also a valid SAPCAR
rename file and hence may be given with the -T option).
Note that pattern matching is not supported for entries in -A, -T and -X
files (i.e. "*.cpp" will not result in processing all cpp-files
in the current directory).

Lines starting with "#" as the first non whitespace character will be
ignored by SAPCAR (this also holds true of lines containing only
whitespaces).

If you insert a directory name in the specified file the complete
directory with the directory rights will be included in the archive.

If you specify dir/filename only this file will be included in
the archive. During extraction the directory dir will be created if
it does not exist.

using -C option:
All relative filenames in the command line are treated as relative
to the specified directory.

using -S / -V option:
Activate signature creation (-S) and verification (-V) during command
execution of -a, -c, -d, -t and -x. This option creates and verifies signed
archives. The archive signature works with a signed manifest file, which is
stored at the end of the archive. It contains a TOC of all file entries. This
TOC is signed. This ensures integrity and authenticity of the archive entries.

--------------------
SAPCAR information
--------------------

kernel release               720

kernel make variant          720_REL

DBMS client library

compiled on                  NT 5.2 3790 S x86 MS VC++ 14.00 for NTI386

compilation mode             Non-Unicode

compile time                 Jan 25 2014 23:30:25

update level                 0

patch number                 315

source id                    0.524

---------------------
supported environment
---------------------

database (SAP, table SVERS)  700
                             710
                             701
                             702
                             711
                             720
                             730

operating system
Windows NT 5.0
Windows NT 5.1
Windows NT 5.2
Windows NT 6.0
Windows NT 6.1
Windows NT 6.2
Windows NT 6.3

---------------------------
SAPCAR patch information
---------------------------
( 0.001) SAPCAR terminates with read error (note 1475845)
( 0.001) SAPCAR: option -h (note 1526098)
( 0.002) SAPCAR: signed archives (note 1598550)
( 0.315) SAPCAR can not append a file to an archive bigger 4GB (note 1712163)

2、使用时候的注意事项
  以示例 SAPCAR -xvf \.SAR -R 说明
①、SAPCAR,必须是与文件名一直,如果文件名叫SAPCAR_315-20010451,则建议修改一下该文件为SACAR
②、对于目录中,不能有空格,目标文件夹也如此

SAPCAR使用说明的更多相关文章

  1. SAPCAR 压缩解压软件的使用方法

    SAPCAR 是 SAP 公司使用的压缩解压软件,从 SAP 网站下载的补丁包和小型软件基本都是扩展名为 car 或 sar 的,它们都可以用 SAPCAR 来解压.下面是它的使用说明: 用法: 创建 ...

  2. Atitit.项目修改补丁打包工具 使用说明

    Atitit.项目修改补丁打包工具 使用说明 1.1. 打包工具已经在群里面.打包工具.bat1 1.2. 使用方法:放在项目主目录下,执行即可1 1.3. 打包工具的原理以及要打包的项目列表1 1. ...

  3. awk使用说明

    原文地址:http://www.cnblogs.com/verrion/p/awk_usage.html Awk使用说明 运维必须掌握的三剑客工具:grep(文件内容过滤器),sed(数据流处理器), ...

  4. “我爱背单词”beta版发布与使用说明

    我爱背单词BETA版本发布 第二轮迭代终于画上圆满句号,我们的“我爱背单词”beta版本已经发布. Beta版本说明 项目名称 我爱背单词 版本 Beta版 团队名称 北京航空航天大学计算机学院  拒 ...

  5. Oracle 中 union 和union all 的简单使用说明

    1.刚刚工作不久,经常接触oracle,但是对oracle很多东西都不是很熟.今天我们来了解一下union和union all的简单使用说明.Union(union all): 指令的目的是将两个 S ...

  6. Map工具系列-02-数据迁移工具使用说明

    所有cs端工具集成了一个工具面板 -打开(IE) Map工具系列-01-Map代码生成工具说明 Map工具系列-02-数据迁移工具使用说明 Map工具系列-03-代码生成BySQl工具使用说明 Map ...

  7. Map工具系列-03-代码生成BySQl工具使用说明

    所有cs端工具集成了一个工具面板 -打开(IE) Map工具系列-01-Map代码生成工具说明 Map工具系列-02-数据迁移工具使用说明 Map工具系列-03-代码生成BySQl工具使用说明 Map ...

  8. jQuery验证控件jquery.validate.js使用说明

    官网地址:http://bassistance.de/jquery-plugins/jquery-plugin-validation jQuery plugin: Validation 使用说明 转载 ...

  9. gdbsever 使用说明

    gdbsever 使用说明 在新塘N3292x平台下 编译 gdbsever ./configure --target=arm-linux --host=arm-linux arm-linux-gdb ...

随机推荐

  1. 2. 使用Shell能做什么

    批处理 在批处理的过程中,能够实现脚步自动化,比GUI自动化速度高效 日常工作场景 服务端测试 移动端测试 持续集成与自动化部署,这是最最场景的场景,可以说离开了shell,持续集成和自动化部署也会遇 ...

  2. phpStudy后门分析及复现

    参考文章:https://blog.csdn.net/qq_38484285/article/details/101381883 感谢大佬分享!! SSRF漏洞学习终于告一段落,很早就知道phpstu ...

  3. Python -- 修改、添加和删除元素

    大多数列表将是动态的,这意味着列表创建后,将随着程序的运行增删元素. 修改列表元素 修改列表元素的语法与访问列表元素的语法类似.要修改列表元素,可指定表名和要修改的元素指引,再指定该元素的新值. #代 ...

  4. 分布式文件系统之 FastDFS

    FastDFS 百度百科 FastDFS 是一个开源的轻量级分布式文件系统,它对文件进行管理,功能包括:文件存储.文件同步.文件访问(文件上传.文件下载)等,解决了大容量存储和负载均衡的问题.特别适合 ...

  5. 使用CentOS8搭建私有NAS存储的一些建议

    对于超过2TB的硬盘来说只能考虑GPT分区表,因此还是建议使用EFI来安装系统. 对于超过2TB的硬盘来说应该选择LVM,然后磁盘末尾预留出至少100G的空间用于将来方便维护安装个Windows系统之 ...

  6. 关于yaml文件格式和bootstrap文件

    yaml文件格式简洁层次分明 语法规则如下 大小写敏感 使用缩进表示层次关系 在缩进时不允许使用tab键,只允许使用空格 缩进的空格不重要,只要相同层级的元素左侧对齐即可(相同缩进为同一级) serv ...

  7. 学习Promise异步编程

    JavaScript引擎建立在单线程事件循环的概念上.单线程( Single-threaded )意味着同一时刻只能执行一段代码.所以引擎无须留意那些"可能"运行的代码.代码会被放 ...

  8. JavaDailyReports10_04

    修改后的出题系统 1.添加用户自定义是否出现乘除法,自由选择符号和个数,并且可以自定义操作数的取值范围. 1 /* 2 * 2.可定制(数量/打印方式):输入大的数量值,测试一下系统是否崩溃,反向查找 ...

  9. 深入理解CSS盒模型【转载】

    下面本文章将会从以下几个方面谈谈盒模型. 基本概念:标准模型 和IE模型 CSS如何设置这两种模型 JS如何设置获取盒模型对应的宽和高 实例题(根据盒模型解释边距重叠) BFC(边距重叠解决方案) 基 ...

  10. 4.简单的 GNU 汇编语法

    芯片启动时很多设备没有初始化,需要汇编语言进行准备. 简单的GNU汇编语法: 1 label: instruction @ comment label :标号,类似于外号,为所在位置做标号,可以通过这 ...