Hi Terry,
The thing you need to know about backup2 is that it is not in any of the yum repositories.
Here is how I have done it.
How to Install backup2 (for USB) on SME7Prepare the USB DriveUsing a recent Linux system (e.g., Fedora Core 3 or later, SME7), format the usb drive:
- Use fdisk to create a partition(s)
- Use mke2fs to format the partition(s)
> with the “-j” option to create ext3,
> use the “-c” option to check the device for bad blocks before creating the file system. If this option is specified twice, then a slower, read-write test is used instead of a fast read-only test. (
WARNING: This read-write operation will take a
VERY long time.)
>specify “-L backup2” to set the partition volume label to read ‘backup2’
- As a precaution, use 'fsck -f' to verify the partition before putting it into use[/list]
After the drive is formatted, plug the device into the SME7 usb port and confirm that it is visible to the system
# cat /proc/partitions
and that it has the label ‘backup2’ assigned (the following presumes it was /dev/sda1).
# /sbin/e2label /dev/sda1
I use the label in the fstab entry (see below) to avoid having to know which device (e.g., sda1, hdd1) needs to be mounted for the backup2usb job.
Install the SoftwareEnsure that there is a ‘software’ ibay to hold SME downloaded software.
Download the needed files into the directory ‘backup2’ in the ‘software’ ibay
# cd /home/e-smith/files/ibays/software/files/backup2
# wget http://mirror.contribs.org/smeserver/contribs/dmay/smeserver/7.x/rar-3.5.1-7dmay.i386.rpm
# wget http://mirror.contribs.org/smeserver/contribs/dmay/smeserver/7.x/smeserver-backup2-0.0.1-b2dmay.noarch.rpm
Go to that directory:
# cd /home/e-smith/files/ibays/software/files/backup2
Install the packages
# yum localinstall rar-3.5.1-7dmay.i386.rpm smeserver-backup2-0.0.1-b2dmay.noarch.rpm
and perform
# signal-event post-upgrade; signal-event reboot
Create a mountpoint and Setup the fstab EntryI use ‘/media/backup’ rather than ‘/media/usbdisk’ to avoid any possible confusion with auto-mounted usb devices.
# mkdir -p /media/backup
Modify ‘fstab’
# cd /etc
Create a three line fstab entry
# pico fstab
insert the following lines at the bottom of the fstab file.
# The following entry is for the backup usb disk for 'backup2'
LABEL=backup2 /media/backup auto noauto,defaults 0 0
#
Save (ctl-o) and exit (ctl-x)
The fstab entry is what backup2 uses to determine where to put the backup files.
The fstab entry, as configured above, says
LABEL=backup2’: for the drive identified as ‘backup2’
‘
/media/backup’: mount the drive on this mountpoint
‘
auto’: detect the file system type rather than having a predetermined one specified
‘
noauto,defaults’: do not automatically mount this device at boot or when it is attached to the system (it will get explicitly mounted by the backup2 script); but use all of the other default mounting options
‘
0’: do not backup this file system
‘
0’: do not attempt to perform a file-system check of this device on boot (because it is a removable device and may not be there)[/list]
Plug in the device and go to the Server-Manager panel to invoke backups, specifying ‘/media/backup’ as the target location for the backup.