OpenVMS
1753417 會員
5146 線上
108793 解決方案
發表新文章

OpenVMS要如何將file做compress?

 
watermelonyu
教授

OpenVMS要如何將file做compress?

OpenVMS要如何將file做compress? 我們的版本是AXP v7.2-2
4則回覆 4
watermelonyu
教授

OpenVMS要如何將file做compress?

HI

我們是download

ZIP023-AXP.exe(壓縮)超過2G的file壓不起來

UNZIP0541-AXP.exe(解壓縮)
watermelonyu
教授

OpenVMS要如何將file做compress?

我是用gzip 來壓縮的

$ gzip :=$dka100:gzip_axp.exe

$ dir/size joey.dat

JOEY.DAT;1 8

$ gzip -v JOEY.DAT;1

SYS$SYSROOT:JOEY.DAT;1: 72.5% -- replaced with SYS$SYSROOT:JOEY

.DAT-gz

$ dir joey.*/size

JOEY.DAT-GZ;1 3

######################################

$ gzip -?

gzip_axp 1.2.4 (18 Aug 93)

usage: gzip_axp

-c --stdout write on standard output, keep original files unchanged

-d --decompress decompress

-f --force force overwrite of output file and compress links

-h --help give this help

-l --list list compressed file contents

-L --license display software license

-n --no-name do not save or restore the original name and time stamp

-N --name save or restore the original name and time stamp

-q --quiet suppress all warnings

-S .suf --suffix .suf use suffix .suf on compressed files

-t --test test compressed file integrity

-v --verbose verbose mode

-V --version display version number

-1 --fast compress faster

-9 --best compress better

file... files to (de)compress. If none given, use standard input.
watermelonyu
教授

OpenVMS要如何將file做compress?

剛測試過2G 的file 可以壓縮

$ dir/size OS_BACKUP.BCK;1

OS_BACKUP.BCK;1 7060158 30-JUN-2003 16:53:33.60

$ gzip -v -1 OS_BACKUP.BCK;1

DKA0:OS_BACKUP.BCK;1: 0.1% -- replaced with DKA0:OS_BACKUP.B

CK-gz

$ dir os_backup.bck*/size

OS_BACKUP.BCK-GZ;1 871280
watermelonyu
教授

OpenVMS要如何將file做compress?

不管是哪種 compression tools, 先測試一下檔案可否還原!!



我常用的是 zip/unzip 和 FTSV(freeware, "$SPOOL COMPRESS/decompress", ok for 大於 2GB, 但只可在 VMS 下用, 且壓縮效果較差).



zip/unzip 雖然有 2G 的問題, 但是支援 rms file attributes($zip "-V"). 因此 unzip 回來的 file 有正確的 file attributes.



gzip 雖可大於 2G, 但 "gzip -d" 還原回來的 file attributes 不正確, 甚至可能無法修復! 不過 gzip 後的 backup saveset file 到是可用

"$ Set File /Attributes=(RFM:FIX,MRS:32256,LRL=32256,ORG=SEQ,RAT=NONE) .." 修復.