DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 5th May 2008
Damien787's Avatar
Damien787 Damien787 is offline
Real Name: Endymion Seiler
Port Guard
 
Join Date: May 2008
Location: Passumpsic, VT
Posts: 22
Thanked 0 Times in 0 Posts
Default backing up via 'dump'...

Greetings fellow daemons,
I'm trying to backup my system via an external USB drive via 'dump'. Basically I want to back up the / /var and /usr filesystems to similar partitions on the USB drive. I used fdisk and the disklabel editor to format and create 3 partitions on my USB drive. How can I use dump to mirror the partitions on my system. So far I have had no much success...dump doesn't seem recognize the filesystems created on my USB drive and when I try to back up my filesystems to files on the external drive it doesn't seem to be successful (backing up / and /var created two files the exact same size and far less than the actual size of either partitions)

Are there any good how-tos out there I may find useful...should I be using different backup tools?

Is 'dd' as effective as the man pages seem to suggest? Are there significant issues in backing up a live filesystem this way?

Thanks in advance,
Damien
Reply With Quote
  #2   (View Single Post)  
Old 5th May 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Thanked 49 Times in 43 Posts
Default

please be more specific:

show us how you are using dump.
precisely what errors are you getting?
fdisk/disklabel o/p of usb and so on...
Reply With Quote
  #3   (View Single Post)  
Old 6th May 2008
Damien787's Avatar
Damien787 Damien787 is offline
Real Name: Endymion Seiler
Port Guard
 
Join Date: May 2008
Location: Passumpsic, VT
Posts: 22
Thanked 0 Times in 0 Posts
Default

Well...this is the format of the command I used to back up my filesystems...

dump -0uaLn -f - /usr | gzip -2 | dd of=/media/iomega/usr/dump-usr-5-5.gz

Didn't take as long as I expected (about 4 hours)...even though /usr was a 50GB filesystem and the pipe was USB 1.0.

--Damien
Reply With Quote
  #4   (View Single Post)  
Old 6th May 2008
chavez243 chavez243 is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Leamington, ON
Posts: 50
Thanked 2 Times in 2 Posts
Default

backup options are many and varied... I might lean towards tar for what you are doing. I use dump for backing up to tape and dd for imaging entire disks.

Also - google Clonezilla - nice tool to add to your kit.
Reply With Quote
  #5   (View Single Post)  
Old 6th May 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
 
Join Date: Apr 2008
Location: pwd
Posts: 283
Thanked 20 Times in 18 Posts
Default

Quote:
Originally Posted by chavez243 View Post
backup options are many and varied... I might lean towards tar for what you are doing. I use dump for backing up to tape and dd for imaging entire disks.

Also - google Clonezilla - nice tool to add to your kit.
dd can run under FreeBSD, can Clonezilla do it too? This is to save the system goes reboot and downtime, not good if its a server
Reply With Quote
  #6   (View Single Post)  
Old 8th May 2008
chavez243 chavez243 is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Leamington, ON
Posts: 50
Thanked 2 Times in 2 Posts
Default

Clonezilla is a liveCD - so its use necessitates downtime. Another option is to generate snapshots using dd and output across the wire to an nfs or cifs share. You can pipe it to gzip first if desired, but with the size of today's NAS units, space it not a big issue.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dump dates wrong? cwhitmore FreeBSD General 2 17th August 2008 08:49 PM
backing up an entire system mwotsch FreeBSD General 5 14th July 2008 03:00 PM
mc core dump in root sheriff26 FreeBSD General 4 21st June 2008 07:56 PM


All times are GMT. The time now is 11:50 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick