[Gllug] scp whole drive with out copying /proc/kcore?

Vincent gllug at codex.net
Wed Oct 31 00:37:53 UTC 2001


Steve Nicholson(steve.nicholson at yoursolutions.com)@Wed, Oct 31, 2001 at 12:36:38AM -0000:
> How do I do a copy of a drive with out copying /proc/kcore? After having
> a few problems, finding bit's of backups missing and having to rebuild a
> server I did a scp of the whole system back to my box here at home.
> It's only 300Mb, but since the /proc directory is copied as well it
> takes for ever (960Mb for kcore) and I will just have to delete it.
> Maybe it's not copying /proc, I notice it is coping "core" which is
> /dev/core symlinked to /proc/kcore rather than /proc.  I realised after
> I started the copy I should have done a "cp -a" on the server the
> gzipped it first but I thought hey only 300Mb wont take that long.


from the man pages:
	-x, --one-file-system
              stay on this file system

but, i'd recommend that you look into using tar/cpio, as they provide far more options on how and what to copy.
used in conjunction with '-f -' of tar you can pipe thru an ssh connection.

-- 

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list