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
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
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
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
-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
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
-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
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
-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
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
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
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
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
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
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
15 matches
Mail list logo