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:
961
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  


Tuesday, 10-Nov 23:39:21 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
· [125] Moto Sold About 100,000 Droids
· [95] Verizon Keeps Swinging At AT&T
· [86] VoIP Over 3G Still Not Working For iPhone
· [67] Government Will Release Some Telco Wiretap Lobbying Documents
· [62] Verizon's Hanging Up On Rural America
· [48] Verizon's Higher ETFs Annoy Senator
· [34] Bill Would Force ISPs To Block Financial Scams
· [31] Sprint Announces Job Cuts
· [24] Mediacom Hints At 50, 100 Mbps Speeds
· [24] Google Offers Free Holiday Airport Wi-Fi
Most people now reading
· Massive Slowdowns? [cover,1584]
· Google Has Acquired Gizmo5 [VOIP Tech Chat]
· RG Firmware update to VDSL2 this morning [AT&T U-verse]
· Windows 7 boot manager editing questions [Microsoft Help]
· House inspector failed to find major gas leak [Home Repair & Improvement]
· Holy work line speeds!! [TekSavvy]
· [Connectivity] Slow Route and Bad RDNS [Comcast HSI]
· I had enough! Let's go out on the street!! STOP THROTTLING!! [Canadian Broadband]
· [ Classes] 3.2.2 Rogue [World of Warcraft]