I am creating a Flash image. I have several filesystems and I only needs
couple of them. I tried to use -x option, but it only exclude one
filesystem. How can I exclude several filesystems ?
ex) I have /, /u01/app, /u01/bkup, /drroot .... and I only needs / and
/u01/app.
I did # flarcreate -n "Image" -R / -x /u01/bkup -x /drroot
my_image.archive, but the size of my_image.archive contains whole system
data including /u01/bkup /drroot.
You could use find & grep, e.g.
df -a | awk '{ print $1 }' > /var/tmp/files
find / /u01/app ! -type D ! -type s -print \( ! -mount -o \
-fstype lofs \) -prune >> /var/tmp/files
egrep -v '^(/var/tmp|/var/crash|/export)/|^/$' /var/tmp/files | sort -ru | \
flarcreate -n s9-fcs -S -H -c -f /dev/stdin -F /var/tmp/s9-fcs.flar
rm /var/tmp/files
Markus