Tuesday, April 17, 2012

compress while backup


dev09:NFMST:/software/orafms/product> ll
total 16
drwxr-xr-x  77 orafms     orafms        8192 Jan 20 11:25 11.2.0
dev09:NFMST:/software/orafms/product> mknod ./gpipe p
dev09:NFMST:/software/orafms/product> ll
total 16
drwxr-xr-x  77 orafms     orafms        8192 Jan 20 11:25 11.2.0
prw-r--r--   1 orafms     orafms           0 Mar  8 14:16 gpipe
dev09:NFMST:/software/orafms/product> gzip <./gpipe >./11.2.0_bak20120308.tar.gz &

dev09:NFMST:/software/orafms/product> tar cvf ./gpipe ./11.2.0


dev09:NFMST:/software/orafms/product> ll
total 9675872
drwxr-xr-x  77 orafms     orafms        8192 Jan 20 11:25 11.2.0
-rw-r--r--   1 orafms     orafms     4943770248 Mar  8 14:53 11.2.0_bak20120308.tar.gz
prw-r--r--   1 orafms     orafms           0 Mar  8 14:53 gpipe
[1] +  Done                    gzip <./gpipe >./11.2.0_bak20120308.tar.gz &


dev09:NFMST:/software/orafms/product> ll
total 9655840
drwxr-xr-x  77 orafms     orafms        8192 Jan 20 11:25 11.2.0
-rw-r--r--   1 orafms     orafms     4943770248 Mar  8 14:53 11.2.0_bak20120308.tar.gz
prw-r--r--   1 orafms     orafms           0 Mar  8 14:53 gpipe
dev09:NFMST:/software/orafms/product> du -sk *
11161880        11.2.0
4827912 11.2.0_bak20120308.tar.gz
0       gpipe