[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Replacing a new HD



On Thu, Jun 20, 2002 at 06:09:59PM -0400, Scott Henson wrote:
> depends.  What do you mean replicate what is happening on the disk.  If
> you mean replicate the file systems, Just repartition the new disk with
> sufficient space to copy over the old file systems then use tar(I forget
> the exact incarnation, but check the archives there was a thread on this
> a few days ago) and you should be able to copy over the file systems
> just fine.  

I use tar something like this:
dbx:/home/davep# cat bin/move_em
#!/bin/bash
# moves ns1 web files .. (updated)
# ( cd /mnt/www ; tar cf - * )|( cd /www/htdocs; tar xvlpsf - )
# now lets get the usr
# ( cd /home; tar cf - * )|( cd /mnt; tar xvlpsf - )
# ( cd /mnt/home ; tar cf - * )|( cd /home; tar xvlpsf - )
# ( cd /mnt/var/spool/mail ; tar cf - * )|( cd /var/spool/mail; tar
xvlpsf - )
( cd /mnt/etc ; tar cf - * )|( cd /home/davep/old_etc; tar xvlpsf - )

change the paths and mount points to suit...

aloha,
dave


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: