On Wed, 28 Dec 2011 10:06:14 +0400
"Wesley M." <open...@e-solutions.re> wrote:

> Hi,
> I want to backup our mailserver(4.7) in production.
> I read :
> http://www.openbsd.org/faq/faq10.html#DupFS 
> 
> Can i do this wd1(my backup
> disk) :
> 
> mount /dev/wd1a /mnt
> dump -0auf /mnt/etc_backup /dev/wd0a
> ...
> same
> for wd0d and wd0e ... Or do i need absolutely to do it in Single
> User? 
> 
> Or
> perhaps, there's a better way to do it.

Personaly I found a way for myself to produce a consistent backups:
1. have an additional filesystem /backup
2. mount /backup
3. sync your changed files to /backup (I usually do this with rsync,
YMMV)
4. umount /backup
5. mount /your_backup_media
6. dump -0auf /your_backup_media /dev/<backup>

However it need some preparation done beforehand, preferably on system
install.

this way you will be able to dump live filesystems without having to
reboot your server. 

-- 
With best regards,
        Gregory Edigarov

Reply via email to