DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 18th January 2011
Scott7 Scott7 is offline
OpenBSD / XP
 
Join Date: Jan 2009
Posts: 7
Thanked 0 Times in 0 Posts
Default Safe Backup

Hi, I've got a Pentium III, running OpenBSD 4.6 -Stable, its the firewall for my network at home, I also have a few programs running on it such as apache, vsftp and samba being the main ones.

I'd like to do a clone of the HDD every few weeks, but I'd like it to be automated, I can do this with a cronjob, my problem is as far as I'm aware, using DD to backup to another drive isn't all that safe when mounted? I'm hoping I'm wrong however I'd also like to if the main HDD does die, be able to swap the IDE cable over and boot straight off the second HDD I have in the computer and have backed up to.

My Question, is DD a safe way to backup when the HDD is mounted and the system is 'live' lets say? If not how would I go about doing the above in another way?

Thanks

Scott
Reply With Quote
  #2   (View Single Post)  
Old 18th January 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,681
Thanked 214 Times in 189 Posts
Default

dd(1) just copies blocks. In whatever state they are in. Any data changing while your dd task is running will give you a low integrity backup. You will not be able to trust that you have a usable backup. Since you cannot ensure functional filesystems, another method for backup should be considered.

I recommend using dump(8) and restore(8), which are included with your OS. Missing data, such as log files that change, will still be missing, since you are backing up a live system.

If you have a database management system on that platform (PostgreSQL, MySQL, etc.) use the database's live backup facilities separately, since filesystem backup and restore will not ensure integrity of a database.
Reply With Quote
  #3   (View Single Post)  
Old 20th January 2011
Scott7 Scott7 is offline
OpenBSD / XP
 
Join Date: Jan 2009
Posts: 7
Thanked 0 Times in 0 Posts
Default

Hi jggimi, Thank you for your reply. I also have a question about the new pf synax with OpenBSD 4.7, the reason that i've not upgraded my 4.6 install. I'll get this setup first though.

Scott
Reply With Quote
  #4   (View Single Post)  
Old 20th January 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,681
Thanked 214 Times in 189 Posts
Default

Ask your question on a new subject in a brand new thread. It will make it easier for people who search.

But it is likely your question can be simply answered by the upgrade guide for 4.7, or failing that, in the PF Users Guide.
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
Street View catches Finn with his pants down (not office safe!) J65nko News 0 11th February 2010 06:50 PM
How to choose a safe bank guitarscn Off-Topic 8 22nd January 2010 03:36 AM
Safe FTP/SFTP access questions Albright FreeBSD Security 9 21st September 2009 09:21 PM
swine: am i safe? ax0 Off-Topic 8 2nd May 2009 08:03 AM
backup freeBSD 7.0 using Backup Exec ccc FreeBSD General 2 25th April 2009 09:23 PM


All times are GMT. The time now is 04:10 AM.


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