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 26th October 2010
wesley wesley is offline
Real Name: Wesley
Fdisk Soldier
 
Join Date: Aug 2009
Location: Reunion Island
Posts: 76
Thanked 1 Time in 1 Post
Post backup a mailserver

Hi everyone,

I have a mailserver (OpenBSD 4.7 : wd0a, wd0b slices).
I want to backup entire OS.
So i done that :
Plug on the mailserver a USB Hard-disk (FAT32, sd0i)
mount /dev/sd0i /mnt
dump -0auf /mnt/backup_os wd0a
-> terminated without any errors.

I have an other machine (exactly the same hardware than the mailserver machine), i want now to restore my dump on it.
I booted OpenBSD 4.7 iso release
I choosed [SHELL]
use fdisk and diskpart utility for create slices (wd0a, and wd0b)
newfs wd0a
mount /dev/wd0a /mnt
mount /dev/sd0i /mnt2
cd /mnt
restore -rf /mnt2/backup_os

I ve got a lot of errors like : Expected next file 164898, got 102090
And inode errors…

Please how can i restore my dump without any errors ?
thanks.
Reply With Quote
  #2   (View Single Post)  
Old 26th October 2010
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,886
Thanked 214 Times in 189 Posts
Default

You are backing up a system with open files and running processes. Guaranteed 100% filesystem integrity can only be assured by backing up a static system from single user mode.

If your mail server uses a database, you can back up modern DBMSes with full integrity while they are operational using the DBMS tools.
Reply With Quote
  #3   (View Single Post)  
Old 26th October 2010
wesley wesley is offline
Real Name: Wesley
Fdisk Soldier
 
Join Date: Aug 2009
Location: Reunion Island
Posts: 76
Thanked 1 Time in 1 Post
Default

What is DBMS Tools ?
Reply With Quote
  #4   (View Single Post)  
Old 26th October 2010
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,088
Thanked 198 Times in 156 Posts
Default

DBMS

Quote:
A Database Management System (DBMS) is a set of computer programs that controls the creation, maintenance, and the use of a database.
In other words: mysql_dump or pg_dump or [something else] depending on your database software.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #5   (View Single Post)  
Old 26th October 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,930
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by wesley View Post
What is DBMS Tools ?
Each of the major databases (MySQL, PostgreSQL, etc.) have their own tools. Look into the documentation associated with whatever you are currently using.

Likewise, is there a reason why you are using FAT32? Why not FFS?
Reply With Quote
Reply

Tags
backup openbsd slices restore dump

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
Stop Spam from ISP Mailserver Simon OpenBSD Security 1 27th April 2010 01:03 PM
Mailserver for websites xCipherx FreeBSD Ports and Packages 4 13th April 2010 03:56 PM
Partitioning for web/mailserver? DrKrall OpenBSD Installation and Upgrading 3 20th November 2009 01:14 PM
backup freeBSD 7.0 using Backup Exec ccc FreeBSD General 2 25th April 2009 09:23 PM
freebsd mailserver Demodog FreeBSD Ports and Packages 19 10th June 2008 07:25 PM


All times are GMT. The time now is 06:20 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