I like cpio but off-hand I haven't seen any instructions for excluding directories using that tool. It can save the output as tar and several other types though. Something like this....
find . -depth | cpio --create --format=tar > /mnt/backups/test.tar
If you use the tar utility instead, you could tell it what to backup by reading a list. You can make the list by hand or use ls to make it. Then you can edit the list to remove dirtectories which you don't want backed up.
ls -d *"/" > /home/list.txt
The tar statement would look like this......
tar -cvf /mnt/backups/test.tar \
-T, --files-from=/home/list.txt
Really though, I'm a fan of the
partimage tool for making my system images.
