republican-creole
Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » All Things Unix » FreeBSD backup complete system
Search Topic:
Uniqs:
1000
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
Configuring SSH Idle Timeout on Solaris 10 »
« Last step of getting an Apache Server up and running  
AuthorAll Replies


fcisler
Premium
join:2004-06-14
Riverhead, NY

FreeBSD backup complete system

Yes, i've read

»www.freebsd.org/doc/en/books/han···ics.html

I'm making a copy of /usr right now using dump. It's slow and not something I fully understand so I'm not really comfortable with it.

I'm wondering what my best options would be. My goal here is that this is a project which I'll be backing up frequently, and ultimately i'd like to be able to boot off of a CD and just install this "image" to the hard drive. I'm also not opposed to taking the HD out and using something like acronis.

Any suggestions? Ideally I would like a program which I run which can dump an ISO either over SSH or to a USB HD. Is that possible? I'm not expecting to then take this ISO and burn it to a CD and boot, but I'd like to boot from a LiveCD of some type and then tell it to write this ISO to the HD.


deblin
Dark Side of the Moon
Premium,MVM
join:2001-09-01
Middletown, DE

dump does exactly what you want, and can do incremental updates to the snapshot (so you don't waste space for daily backups).

Just remember to use -L when dump'ing on a mounted/live file system.

To restore, it's as simple as:

- newfs /dev/ad...
- mount /dev/ad... /usr
- cd /usr && restore -r -f /path/to/dumpfile

You can also use restore's -x option and/or a path to a specific file (this is slow, though, as it has to seek through the entire dump).

dump/restore also work remotely (see the man pages for details).

For me, since I don't have enough disk space to backup the entirety of the file systems, I just use rsnapshot to a local gmirror'd set of disks. Then at least I have my personal data (/usr/home), custom scripts/programs (/global/bin), settings (/etc, /usr/local/etc), web data (/usr/local/www) and mysql databases/logs/etc (/var).
--
He who is not contented with what he has, would not be contented with what he would like to have. -Socrates


koitsu
Premium
join:2002-07-16
Mountain View, CA

reply to fcisler
Be aware of problems with dump on UFS2 filesystems -- see section "dump/restore": »wiki.freebsd.org/JeremyChadwick/···d_issues

Don't say I didn't warn you.

Consider using something like rsnapshot instead, but be aware if you have any programs that rely on file mtimes for importance (such as classic UNIX mbox mail), these will be stomped/lost.

Finally, I don't know what your big focus is with ISO images, but I would recommend you stop with it. It's not a format that is often focused upon when doing backups or snapshots, so you'll be going to great lengths to make unnecessary ISO images. You can use any of the above solutions with ssh, or dumping directly to a USB hard disk (but be aware there are problems with the USB stack on FreeBSD as well). You might be better off with a standard hard disk hooked up to something like this, which is connected to your PC via a eSATA or SATA port. It's going to be loads faster, and won't use the USB stack.
--
Making life hard for others since 1977.
I speak for myself and not my employer/affiliates of my employer.


fcisler
Premium
join:2004-06-14
Riverhead, NY

thanks deblin and koitsu.

I don't have anything that relies upon mtimes AFAIK, but a good thing to know.

I didn't have a fascination with ISO, I just figured it was a generic file type/container that people would know. Mainly what I wanted was a single file for the entire hard drive - hence ISO.

I think i'm going to go the route of pulling the HD and using acronis. I don't have to back it up that often. Thanks.
-
Forums » Tech and Talk » OS and Software » All Things UnixConfiguring SSH Idle Timeout on Solaris 10 »
« Last step of getting an Apache Server up and running  


Friday, 04-Dec 12:14:57 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [163] Comcast Releasing Promised Usage Meter
· [144] Avast Antivirus Has Gone Mad
· [111] Comcast Makes NBC Universal Acquisition Official
· [104] Graduate Student Unveils Sprint's GPS Sharing With Feds
· [96] Google Invades ISP, OpenDNS Turf With Google Public DNS
· [81] Latest Consumer Reports Survey Not Kind To AT&T
· [72] Sprint Defuses GPS Privacy Media Bomb
· [71] FCC Ponders Moving From PSTN To IP Voice
· [70] Baltimore To Ban Lazy Cable Installs
· [64] Broadband Killed The Game Console
Most people now reading
· False positive in Avast! or is it real? [Security]
· Seasoning Cast Iron Cookware [General Questions]
· Linux is terrorist - according to MS... [All Things Unix]
· Windows 7 boot manager editing questions [Microsoft Help]
· [WotLK] Doing away w/ conquest? [World of Warcraft]
· A little freaky, not sure if its legit. [Spam, Scam and Phishbusters]
· Equal speeds ruling [Canadian Broadband]
· Is Usenet targettable under ACTA? [TekSavvy]
· Connecting to Google Voice Via SIP [VOIP Tech Chat]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]