How to backup specified directory in a file system?
nagarddJan 23 2008 — edited Jan 23 2008Hi,
I would like to backup /export/config directory without unmounting the file system.
So I use the following command to backup:
# ufsdump 0uf /images/config.bck `fssnap -F ufs -o bs=/images/snap.config.bck /export/config`
After this opearation my backup file size is about 20GB. The size of /export/config directory is less than 1MB.
What I am doing wrong?
Below is my configuraton:
[root@jumpserver /export/backup_scripts]# ls -al /export/
total 610
drwxr-xr-x 11 root sys 512 Jan 23 10:58 .
drwxr-xr-x 47 root root 1536 Jan 23 10:57 ..
drwxr-xr-x 4 root root 512 Jun 6 2007 Solaris11
drwxr-xr-x 6 root root 512 May 29 2007 Solaris9
drwxr-xr-x 2 root root 512 Jan 23 10:58 backup_scripts
-rw-r--r-- 1 root root 89088 Sep 11 17:51 conf_inst_from_pack_4os_new.tar
drwxrwx--- 3 root jstart 1024 Jan 13 19:25 config
-r--r--r-- 1 root root 398 May 24 2007 default.custom
drwxr-xr-x 2 root root 512 Jan 10 2007 flash
drwxr-xr-x 9 root root 512 Jan 23 11:05 home
-rw-r--r-- 1 root root 28458 May 24 2007 inst_lang.tc
drwxr-xr-x 4 root root 512 May 24 2007 install
-rw-r--r-- 1 root root 89088 Aug 30 10:02 js_flash_5os.tar
-rw-r--r-- 1 root root 91136 Oct 14 14:43 js_pack_4os.tar
drwxr-xr-x 5 root root 512 Nov 30 16:41 scripts
-rwxr-xr-x 1 root root 176 Feb 13 2007 sf_conf
drwxr-xr-x 2 root root 512 Nov 30 17:21 sync
[root@jumpserver /export/backup_scripts]# df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t0d0s0 19G 16G 3.4G 83% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 1.4G 1.0M 1.4G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
fd 0K 0K 0K 0% /dev/fd
swap 1.4G 920K 1.4G 1% /tmp
swap 1.4G 56K 1.4G 1% /var/run
/dev/dsk/c0t2d0s2 73G 15G 57G 22% /images
/dev/dsk/c0t0d0s7 53G 33G 20G 63% /export/home
nfsserv:/images 298G 135G 163G 46% /st320
localhost:x-browser: 100K 100K 0K 100% /CIFS
Regards,
Daniel