John Ross Hunt wrote:
I've always used this for moving data to new partitions:
% cd /mnt/gentoo/var
% find -xdev -depth -print | cpio -padvmB /mnt/gentoo/newvar
There are many ways to Rome - like this one. I never thought
about using 'find' for this.. :)
--
[EMAIL PROTECTED] mailing list
> 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 chroo
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
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 is:
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 (exc
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 for symlinks, you know).
From "Hard-Disk Upgrade Mini-HOWTO" and p
On Sun, 16 Nov 2003 13:54:37 +0100
Oliver Lange <[EMAIL PROTECTED]> wrote:
> 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
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
-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
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
L
-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 incl
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, --archiv
e: [gentoo-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
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
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
2003 4:31 PM
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
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
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
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 if this
19 matches
Mail list logo