系統管理
1753797 會員
7167 線上
108799 解決方案
發表新文章

如何backup一個大於2GB的檔案到 tape 中 ?

 
watermelonyu
教授

如何backup一個大於2GB的檔案到 tape 中 ?

我有一些檔案大於2GB要backup到tape中

但因為tar and cpio的指令不支援大於2GB的檔案

所以有什麼方式可將檔案被到tape?

而且可方便的取回

3則回覆 3
watermelonyu
教授

如何backup一個大於2GB的檔案到 tape 中 ?

I do a test by using tar to backup a 3GB file into tape,

I don't see the 2G limitation on tar.

Here is my test for your reference.



By the way, have you try the fbackup to backup your files ?



hptasob:/PData#uname -a

HP-UX hptasob B.11.11 U 9000/785 2001947520 unlimited-user license



hptasob:/PData#what /usr/bin/tar

/usr/bin/tar:

tar.c $Date: 2003/05/19 02:55:16 $Revision: r11.11/6 PATCH_11.11 (PHCO_28992)

$Revision: @(#) all CUP11.11_BL2003_0522_1 PATCH_11.11 PHCO_28992

Thu May 22 03:24:02 PDT 2003 $



hptasob:/PData#ll

total 6291472

-rw-rw-rw- 1 root sys 3221225472 Oct 15 10:37 3g

drwxr-xr-x 5 root sys 96 Jul 9 17:00 hp-ux_patches

drwxr-xr-x 2 root root 96 Jul 9 13:20 lost+found

drwxr-xr-x 3 root sys 96 Jul 30 13:05 patch_bundles



hptasob:/PData#tar cv 3g

a 3g 6291456 blocks



hptasob:/PData#rm 3g



hptasob:/PData#tar xv

x 3g, 3221225472 bytes, 6291456 tape blocks



hptasob:/PData#ll 3g

-rw-rw-rw- 1 root sys 3221225472 Oct 15 10:37 3g

watermelonyu
教授

如何backup一個大於2GB的檔案到 tape 中 ?

tar doesn't support > 2GB

Suggestion:

1. can get GNU tar from here: http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.13.25/

2. 'fbackup' is far better than tar anyway (performance wise) and has many more options.

3. PHCO_29229:

Enhancement Request:tar has been enhanced to support backup of files upto 8GB from the earlier 2GB

For 11.00



For 11.11 PHCO_28992
watermelonyu
教授

如何backup一個大於2GB的檔案到 tape 中 ?

erpscm01:root />uname -a

HP-UX erpscm01 B.11.11 U 9000/800 2879883750 unlimited-user license



erpscm01:root />what /usr/bin/tar

/usr/bin/tar:

tar.c $Date: 2001/08/01 07:30:23 $Revision: r11.11/2 PATCH_11.11 (PHCO_24716)

$Revision: @(#) all CUP11.11_BL2001_0814_2 PATCH_11.11 PHCO_24716

Tue Aug 14 16:57:24 PDT 2001 $



erpscm01:root /backup/dump>tar cvf /dev/rmt/0m exp_adexa_1015.dmp



tar: Size of exp_adexa_1015.dmp > 2GB. Not dumped.



看來是我 tar 的版本過舊需要上 patch

謝謝解決我的問題