Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: lional on May 09, 2008, 10:23:52 AM

Title: backing up server config and i bays to usb disk
Post by: lional on May 09, 2008, 10:23:52 AM
Is there a simple contrib that would enable the server config and i bays to be backed up to usb disk. These backups need to be able to be scheduled.

Thanks

Lional
Title: Re: backing up server config and i bays to usb disk
Post by: warren on May 09, 2008, 10:31:12 AM
a click away at the wiki would have shown :

http://wiki.contribs.org/Backup_with_dar (http://wiki.contribs.org/Backup_with_dar)

if that does not meet your  needs, then search through the other backup options under contribs.
Title: Re: backing up server config and i bays to usb disk
Post by: lional on May 09, 2008, 10:43:59 AM
I am using that and I go to the schedule and configure workstation backup. I take it that is where I configure thye schedule. Is there anything else I need to configure as to which files are backed up because nothing gets written to my external usb drive
Title: Re: backing up server config and i bays to usb disk
Post by: warren on May 09, 2008, 11:40:23 AM
Quote
I am using that and I go to the schedule and configure workstation backup. I take it that is where I configure thye schedule. Is there anything else I need to configure as to which files are backed up because nothing gets written to my external usb drive

Is the usb drive plugged into the workstation ? If so then you need to set up the drive to be accessable as a ( nfs, smbfs, cifs ) share on the LAN

Quote
What is e-smith-backup with dar ?
e-smith-backup with dar is an upgrade of current e-smith-backup sme core rpm which provides panels for daily full or incremental backup on LAN workstation (via nfs, smbfs or cifs) or local usb disk, and full or selective restore with use of dar program.

  from http://wiki.contribs.org/Backup_with_dar (http://wiki.contribs.org/Backup_with_dar)

Alternatively, you can plug the ussb drive into the server.

You can also customise the files/dirs that get backed up by creating a custom template fragment :
see  http://wiki.contribs.org/Backup_with_dar#Adding_Directories_and_Files_to_the_list_of_backup_inclusions (http://wiki.contribs.org/Backup_with_dar#Adding_Directories_and_Files_to_the_list_of_backup_inclusions)

The howto for : Backup with dar seems initially intimidating, go back and read through it a few times.
Title: Re: backing up server config and i bays to usb disk
Post by: lional on May 09, 2008, 11:47:59 AM
The usb is plugged into the server. I can see the drive through /media/backup. The drive was formatted on a windows machine, will this be a problem
Title: Re: backing up server config and i bays to usb disk
Post by: warren on May 10, 2008, 10:59:05 AM
Unplug the usb drive, an re-plug it into the server.
from the command promt tail  /var/log/messages to see the name assigned to the usb drive ( eg /dev/sda)

Then , issue fdisk /dev/sda  ( the name of the device you saw in the log)

Now format the drive with an ext3 filesystem :

mkfs.ext3  /dev/sda
Title: Re: backing up server config and i bays to usb disk
Post by: versa on May 10, 2008, 01:11:06 PM
I used this guide to set up my usb disk
http://wiki.contribs.org/USBDisks

Then I found there is a usb disks contrib avaible so I was able to mount it in an I bay to have access to it from my desktop it gives you a panel in the server-manager to manage any usb disks you have.

Then I use the DAR2 contrib to do the backups.
http://wiki.contribs.org/DAR2

To Install the usbdisksmanager try:

Code: [Select]
yum install --enablerepo=smecontribs smeserver-usbdisksmanager