Computing.Net > Forums > Linux > Question-dump and restore commands

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Question-dump and restore commands

Reply to Message Icon

Name: satimis
Date: September 4, 2004 at 02:59:55 Pacific
OS: Gentoo 1.4
CPU/Ram: PII-350/256MB
Comment:

Hi folks,

Debian

Can I apply dump and restore commands as follow to clone a partition from Drive-A to Drive-B, connected as slave

Drive-A is the system drive
Drive-B is a brand drive, partitioned but without formatted

# dump –f - /var | (cd /mnt/var; restore –rf -)

/var is the 'var' partition of Drive-A
/mnt/var is the mount point of an empty partition of Drive-B

Kindly advise whether the above syntax is correct

TIA

B.R.
satimis



Sponsored Link
Ads by Google

Response Number 1
Name: Jake2
Date: September 5, 2004 at 02:30:14 Pacific
Reply:

You need to make a filesystem on the new drive and mount it first, but your command looks fine to me. Your pipe will survive changing directories and behave as expected.

I would use (and have a few times) "cp -a" or "tar cpf", but that's mostly because the filesystems I use don't have dump/restore. Dump's only advantage seems to be support for incremental backups, but I can do that with rsync, which I need anyway for Gentoo.


0

Response Number 2
Name: satimis
Date: September 7, 2004 at 02:50:25 Pacific
Reply:

Hi Jake2,

Tks for your advice.

I'll create filesystem and mount all partitions excluding 'swap' first.

I'll also consider following command line

cp -a -x /boot /mnt/boot
etc.

OR
find -print | cpio -pdmv /mnt/
for all partitions simultaneiously.

Hoping that there will be no syntax error

B.R.
satimis


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Question-dump and restore commands

Help Backup and Restore www.computing.net/answers/linux/help-backup-and-restore/21082.html

RedHat 8 and System Commander www.computing.net/answers/linux/redhat-8-and-system-commander/18331.html

Mandrake and SUSE side-by-side www.computing.net/answers/linux/mandrake-and-suse-sidebyside/23657.html