On Sat, 14 Jan 2012 21:11:03 -0000 (GMT), Ted.Harding@wlandres.net said:
cp -a -X /media /* /media/sda1/WinLinMachine/LinuxFiles
tar -C / --exclude /media -cf -|tar -C /media/sda1/WinLinMachine/LinuxFiles -xvf -
All on one line; multiple --excludes may be used, or see tar(1) for possibly better options.
Explanation:
-C : change to directory --exclude : DWISOTT --cf : create, output file is... - : stdout | : pipe to tar -C : change to directory that follows -xvf : extract, verbose (list files as they are processed), read from file - : stdin (ie, read from the pipe).