RE: [gentoo-user] moving to new partition

2003-11-20 Thread John Ross Hunt
Hello everybody, I'd like to change the /home /var location to newly added harddisk partitions, so i need the correct cp command phrase which regards all and every link permission issue, like: cp -??? /mnt/gentoo/var /mnt/gentoo/newvar (booted from gentoo-basic without chroot) Sorry

Re: [gentoo-user] moving to new partition

2003-11-18 Thread Norbert Kamenicky
Jason Stubbs wrote: Well, there's something that cp doesn't do... Most *nix gurus will tell you to use some magically tar and cpio pipe to do the job. I would have put that but I couldn't find an appropriate example. ;-) Here u have such example :-) : find src_dir -print | cpio -pduml

Re: [gentoo-user] moving to new partition

2003-11-17 Thread Jason Stubbs
On Tuesday 18 November 2003 05:50, Danilo Piazzalunga wrote: Alle 08:15, domenica 16 novembre 2003, Jason Stubbs ha scritto: Actually, just thinking - it doesn't preserve modification times which may be a problem with /var. Why not just use rsync? Actually, cp -a preserves mtimes (except

Re: [gentoo-user] moving to new partition

2003-11-17 Thread Oliver Lange
Jason Stubbs wrote: Well, there's something that cp doesn't do... Most *nix gurus will tell you to use some magically tar and cpio pipe to do the job. I would have put that but I couldn't find an appropriate example. ;-) However, you all have again painted the picture well. ..and the winner

RE: [gentoo-user] moving to new partition

2003-11-16 Thread Paul Fraser
-user] moving to new partition On Sunday 16 November 2003 15:42, Paul Fraser wrote: Does cp -a also preserve permissions? If not, you'll want to use -p as well. I can't try it since I'm not at a Linux box at the moment. In my previous mail:        -a, --archive               Preserve as much

Re: [gentoo-user] moving to new partition

2003-11-16 Thread Jason Stubbs
On Sunday 16 November 2003 15:53, Jason Stubbs wrote: On Sunday 16 November 2003 15:42, Paul Fraser wrote: Does cp -a also preserve permissions? If not, you'll want to use -p as well. I can't try it since I'm not at a Linux box at the moment. In my previous mail:        -a, --archive      

Re: [gentoo-user] moving to new partition

2003-11-16 Thread Mike Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 16 November 2003 07:15, Jason Stubbs wrote: Actually, just thinking - it doesn't preserve modification times which may be a problem with /var. Why not just use rsync? rsync -a /mnt/gentoo/var/ /mnt/gentoo/newvar Make sure to include

Re: [gentoo-user] moving to new partition

2003-11-16 Thread Sven Vermeulen
On Sun, Nov 16, 2003 at 10:30:47AM +, Mike Williams wrote: I have been playing with LVM, and installing a new drive in my fileserver, so have had to do lots of partition moves, rsync is the perfect tool for it. Unless you mean that you have had to move data from a non-LVM partition to a

Re: [gentoo-user] moving to new partition

2003-11-16 Thread Mike Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 16 November 2003 11:27, Sven Vermeulen wrote: On Sun, Nov 16, 2003 at 10:30:47AM +, Mike Williams wrote: I have been playing with LVM, and installing a new drive in my fileserver, so have had to do lots of partition moves, rsync is

Re: [gentoo-user] moving to new partition

2003-11-16 Thread Oliver Lange
Jason Stubbs wrote: Actually, just thinking - it doesn't preserve modification times which may be a problem with /var. Why not just use rsync? rsync -a /mnt/gentoo/var/ /mnt/gentoo/newvar I didn't know whatever for rsync might be.. :) -- [EMAIL PROTECTED] mailing list

Re: [gentoo-user] moving to new partition

2003-11-15 Thread Jason Stubbs
On Sunday 16 November 2003 12:32, Oliver Lange wrote: I'd like to change the /home /var location to newly added harddisk partitions, so i need the correct cp command phrase which regards all and every link permission issue, like: cp -??? /mnt/gentoo/var /mnt/gentoo/newvar From the cp man

Re: [gentoo-user] moving to new partition

2003-11-15 Thread Oliver Lange
Jason Stubbs wrote: I did a test and it works fine. The command you'll want is: cp -a /mnt/gentoo/var/* /mnt/gentoo/newvar Be aware, however, that this will probably not copy .* files in the top-level directory, in this case /mnt/gentoo/var. That's it. Becomes a habit to thank you. :) -- [EMAIL

RE: [gentoo-user] moving to new partition

2003-11-15 Thread Paul Fraser
To: [EMAIL PROTECTED] Subject: Re: [gentoo-user] moving to new partition Jason Stubbs wrote: I did a test and it works fine. The command you'll want is: cp -a /mnt/gentoo/var/* /mnt/gentoo/newvar Be aware, however, that this will probably not copy .* files in the top-level directory, in this case

Re: [gentoo-user] moving to new partition

2003-11-15 Thread Chad Martin
Paul Fraser wrote: Does cp -a also preserve permissions? If not, you'll want to use -p as well. I can't try it since I'm not at a Linux box at the moment. From man cp: -a, --archive same as -dpR Chad Martin -- [EMAIL PROTECTED] mailing list

Re: [gentoo-user] moving to new partition

2003-11-15 Thread Jason Stubbs
On Sunday 16 November 2003 15:42, Paul Fraser wrote: Does cp -a also preserve permissions? If not, you'll want to use -p as well. I can't try it since I'm not at a Linux box at the moment. In my previous mail:        -a, --archive               Preserve as much as possible of the structure and