FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 02-26-2010, 05:13 PM
Kyle Bader
 
Default When copying an os to new disk

>> tar cf - $old_dir | ( cd $new_dir: tar xf - )
>> tar cf - $old_dir | ssh $other_host "( cd $new_dir: tar xf - )"
> * * * * * * * * * * * * * * * * * * * * * * * * * *^
> The ':' separating commands should be a ';'. Using the -C option would be
> a little easier, but your method also would work for star. This piping
> through ssh is quite cool, isn't it.

whoops, good catch!

> If $old_dir is the root partition, I would bin-mount it first to somewhere
> else, so other directories mounted to it (especially/dev, /proc and /sys)
> are not copied:
> mount -o bind / /mnt
> old_dir=/mnt

that too, copying over /proc/kcore is never fun ;P
--

Kyle
 
Old 02-26-2010, 10:25 PM
Neil Bothwick
 
Default When copying an os to new disk

On Fri, 26 Feb 2010 17:00:22 +0100, Alex Schuster wrote:

> If $old_dir is the root partition, I would bin-mount it first to
> somewhere else, so other directories mounted to it
> (especially/dev, /proc and /sys) are not copied:
> mount -o bind / /mnt
> old_dir=/mnt

Or use the --one-file-system option for tar.


--
Neil Bothwick

I locked my coathanger in my car; good thing I had a key.
 

Thread Tools




All times are GMT. The time now is 08:45 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org