tar -X file
to parse the file and skip the directories/files listed in it. cp
etc. why not just a little shell script:#!/bin/sh
exempt="mnt/ dev/ media/"
cd /
for dir in `ls -d */` ; do
skip=0
for skipdir in $exempt; do
if [ $skipdir = $dir ]; then
skip=1
break
fi
done
if [ $skip -eq 0 ]; then
cp -a $dir /mnt/
fi
done
cp -a !(mnt) mnt/
. But as memreflect said, you probably want to exclude dev|tmp|proc too.