Koozali.org: home of the SME Server

Howto for Backup2

Offline Tillebeck

  • ***
  • 76
  • +0/-0
Howto for Backup2
« on: March 24, 2006, 01:06:46 PM »
Most people seem to evaluate the contrib backup2 very possitive. So I have tried to join the group of users using it :-) But since I am not a linux user even figuring out how to do the installation took some time. To help out other beginners (and myself included) I hope that we together can create a how-to in this thread... or if any such thing allready exist then maybe one of you can post a link to it.

Current Server version for my tryout: 7.0rc1


Installation:
I did the installation acording to http://forums.contribs.org/index.php?topic=31150.0
1. Log in to at server terminal as root
2. Download this three packages to a folder of own choice (check for newest version before doing so):
wget http://wftp.tu-chemnitz.de/pub/linux/centos/4.2/os/i386/CentOS/RPMS/compat-libstdc++-33-3.2.3-47.3.i386.rpm
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-b1dmay.noarch.rpm

3. Use rpm -Uvh *.rpm to install the packages

Use of Backup2:
 - It is possible to set up mulitple ordinary backup jobs of own choice and schedule them independently of each other and even to different servers or usb-devices.
 - It is only possible to do one 911 backup job and that should be enough since it is a total backup

Questions:
 - How can I register the evaluation copy of Backup2? I am asked to do that when receiving notofication emails from backup2
 - How can I do my backup to an ibay on another Sme Server? I have tried to type in the path as //servername/ibayname/folder and supplied the correct credentials but nothing happens.
 - How can I mount a USB device to my server to the usb backup?


Please help me with my questions and any other relevant info for a complete guide.

Great thanks to dmay for this contribution.

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Re: Howto for Backup2
« Reply #1 on: March 24, 2006, 06:38:53 PM »
Quote from: "Tillebeck"

 - How can I register the evaluation copy of Backup2?

You meant to ask, "How can I register the evaluation copy of rar?".

# lynx /usr/share/doc/rar-3.5.1/order.htm

Quote from: "Tillebeck"
How can I do my backup to an ibay on another Sme Server? I have tried to type in the path as //servername/ibayname/folder and supplied the correct credentials but nothing happens.

Curious... I have not tried that. Worthy of a test.

Quote from: "Tillebeck"
How can I mount a USB device to my server to the usb backup?

Try this post:

http://forums.contribs.org/index.php?topic=29872.0

Darrell

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Re: Howto for Backup2
« Reply #2 on: March 24, 2006, 09:21:37 PM »
Quote from: "dmay"
Quote from: "Tillebeck"
How can I do my backup to an ibay on another Sme Server? I have tried to type in the path as //servername/ibayname/folder and supplied the correct credentials but nothing happens.

Curious... I have not tried that. Worthy of a test.

I have tested and confirm this works. Three key things to look for. Make sure your Workgroup panel settings match for both servers. Make sure you are using a valid username and password that can access the i-bay. Try IP addresses if UNC fails.

However, if I was backing up one server to the other.... I would simply use the admin login name/password and the admin home directory. No ibay required.

Kydoimus

Howto for Backup2
« Reply #3 on: March 25, 2006, 10:27:10 AM »
I did the same thing as above.

I made 2 backup tasks (u never know).

One with the destination: \\192.168.1.10\backup\files and the other one with the destination //192.168.1.10/backup/files

I also made a Ibay called Backup and made a group called backup with a dedicated backup user called backup with password 123!ZxC (testing server)

I completed al the settings and did 2 times a manuel backup.

If i look 1 hour later there is nothing in the ibay and i never got a admin e-mail.

Does someone konw what to do?

Offline Tillebeck

  • ***
  • 76
  • +0/-0
Howto for Backup2
« Reply #4 on: March 26, 2006, 12:19:39 AM »
Hi Kydoimus
We obviously have the same problem. I have placed both servers in same workgroup as suggested by dmay. When starting the backup jobs manually I can hear the server creating the the backup work. But as you nothing ends up in the destination ibay and no email is sent.

Emails are sent when a faulty windows job is set up
Emails are sent after a correct windows backup
Emails are sent after a windows job is started but aborted by the windows user.

If I edit the destination path to a share on a windows machine it works like a dream. So it must be a sme2sme thing...

Kydoimus

Howto for Backup2
« Reply #5 on: March 26, 2006, 06:40:06 PM »
Tillebeck,

THX for your reaction. I tested the same with a Windows XP machine and created a share called backupsme with full write rights and the backup worked also fine.

The sad thing is that i dont want Windows machines for backup tasks. Not at this point. So i would like to backup 3 SME servers on a other SME server (outside the building) and do the same with the 3 SME servers on the other location. I only sync with a remote harddisk ones a week.

But backup2 would be exact the right thing for me.

Tomorrow iam going to test the write speeds to a windows machine in a production network with a test server.

Hopefully someone will find a way tot let it work SME2SME.

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Howto for Backup2
« Reply #6 on: March 27, 2006, 09:24:36 PM »
Quote from: "Kydoimus"
Hopefully someone will find a way to let it work SME2SME.

I thought I did? I recommended for SME2SME that you use the admin account and admin share (not i-bays). Give it a try.

Darrell

Offline Tillebeck

  • ***
  • 76
  • +0/-0
Howto for Backup2
« Reply #7 on: March 28, 2006, 06:56:31 PM »
Nope... still doesn't work for me.


I have set up the job from server 1
IP:192.168.2.50
Version 70RC1
With backup2 installed

To server 2
IP: 192.168.3.3
Version 70RC1
No backup2 installed

Both servers are in same workgroup. Firewall allows trafic from server 1 to server 2

-----[job set up on server 1]---------------------------
Method:
backup2ws

Source: /etc/e-smith/templates-custom,/etc/e-smith/templates-user-custom,/etc/group,/etc/gshadow,/etc/passwd,/etc/samba/secrets.tdb,/etc/samba/smbpasswd,/etc/shadow,/etc/smbpasswd,/etc/ssh,/etc/sudoers,/home/e-smith,/opt,/root,/var/cache/yum

Destination:
//192.168.3.3/admin/backup/test01

Username:
admin

Password:
MyAdminPasswordOnServer2

Mount status:
Unmounted

Reporting status:
enabled
------[End job on server 1]-------------------------

Sorry Darrell. I cannot make it work. Nothing happens... I have checked the admin share on server 2. No emails are sent either.

I have now bought a USB-HD to do future backup2 to and have started reading about RSYNC to do backups sme2sme.

So far some fine rsync links are:
Rsync Homepage: http://rsync.samba.org
Tutorial 1: http://www.mikerubel.org/computers/rsync_snapshots
Tutorial 2: http://everythinglinux.org/rsync/
Tutorila 3: http://sunsite.dk/info/guides/rsync/rsync-mirroring.html

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Howto for Backup2
« Reply #8 on: March 28, 2006, 08:33:58 PM »
I can only continue to confirm it works for me. I suggested you use the admin home directory, which means you would set the destination to:

//192.168.3.3/admin

Try a small manual backup. If the scheduler isn't working you probably forgot to update and save the panel.

Darrell

Offline p-jones

  • *
  • 594
  • +0/-0
Howto for Backup2
« Reply #9 on: April 05, 2006, 07:22:15 AM »
I have been trying to get this to work also without any success. Log entries below

Apr  5 17:18:53 gulfserv1 esmith::event[14120]: Processing event: pre-backup2-custom 590223
serv1 kernel: init_special_inode: bogus i_mode (0)
serv1 kernel: smb_retry: no connection process
serv1 kernel: smb_add_request: request [c36daee0, mid=0] timed out!
serv1 kernel: smb_delete_inode: could not close inode 2
serv1 mount.smbfs[14126]: [2006/04/05 17:19:25, 0] client/smbmount.c:send_fs_socket(410)
serv1 mount.smbfs[14126]:   mount.smbfs: entering daemon mode for service \\evo001\serverbackup, pid=14126
serv1 e-smith-bg: /bin/ls: /mnt/backup2.590223/590223/590223.04.05.06.*: No such file or directory
serv1 esmith::event[14163]: Processing event: post-backup2-custom 590223
...

Offline p-jones

  • *
  • 594
  • +0/-0
Howto for Backup2
« Reply #10 on: April 05, 2006, 07:23:28 AM »
Woops...I should qualify this,  SME V7RC1

Rgds
Peter
...

Offline p-jones

  • *
  • 594
  • +0/-0
Howto for Backup2
« Reply #11 on: April 05, 2006, 08:03:12 AM »
Have also tried this with an external USB Drive and also no success.

Apr  5 17:36:16 server2 kernel: usb 1-5: new high speed USB device using address 2
Apr  5 17:36:16 server2 kernel: Initializing USB Mass Storage driver...
Apr  5 17:36:16 server2 kernel: scsi3 : SCSI emulation for USB Mass Storage devices
Apr  5 17:36:16 server2 kernel:   Vendor: Genesys   Model: USB to IDE Disk   Rev: 0002
Apr  5 17:36:16 server2 kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Apr  5 17:36:16 server2 kernel: SCSI device sdb: 40021632 512-byte hdwr sectors (20491 MB)
Apr  5 17:36:16 server2 kernel: sdb: test WP failed, assume Write Enabled
Apr  5 17:36:16 server2 kernel: sdb: assuming drive cache: write through
Apr  5 17:36:16 server2 kernel: SCSI device sdb: 40021632 512-byte hdwr sectors (20491 MB)
Apr  5 17:36:16 server2 kernel: sdb: test WP failed, assume Write Enabled
Apr  5 17:36:16 server2 kernel: sdb: assuming drive cache: write through
Apr  5 17:36:16 server2 kernel:  sdb: sdb1
Apr  5 17:36:16 server2 kernel: Attached scsi removable disk sdb at scsi3, channel 0, id 0, lun 0
Apr  5 17:36:16 server2 kernel: USB Mass Storage device found at 2
Apr  5 17:36:16 server2 kernel: usbcore: registered new driver usb-storage
Apr  5 17:36:16 server2 kernel: USB Mass Storage support registered.
Apr  5 17:36:16 server2 scsi.agent[4404]: disk at /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0/host3/target3:0:0/3:0:0:0
Apr  5 17:36:27 server2 fstab-sync[4458]: added mount point /media/usbdisk for /dev/sdb1


Apr  5 17:51:09 server2 esmith::event[5406]: Processing event: pre-backup2-custom 312799
Apr  5 17:51:09 server2 e-smith-bg: mount: can't find [/media/usbdisk in /etc/fstab or /etc/mtab
Apr  5 17:51:09 server2 e-smith-bg: Error occured mounting [/media/usbdisk at /etc/e-smith/events/actions/backup2-backup line 161.


Same box - SME7RC1

Source = /home/e-smith/files/ibays/users/roland
Destination = [/media/usbdisk]

I am certain I followed the instructions closely when I installed this.
...

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Howto for Backup2
« Reply #12 on: April 05, 2006, 09:16:43 PM »
Quote from: "p-jones"
serv1 mount.smbfs[14126]:   mount.smbfs: entering daemon mode for service \\evo001\serverbackup, pid=14126

Possible typo. Linux syntax requires forward slashes:

INCORRECT = \\evo001\serverbackup
CORRECT = //evo001/serverbackup

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Howto for Backup2
« Reply #13 on: April 05, 2006, 09:19:19 PM »
Quote from: "p-jones"
Apr  5 17:51:09 server2 e-smith-bg: mount: can't find [/media/usbdisk in /etc/fstab or /etc/mtab
Apr  5 17:51:09 server2 e-smith-bg: Error occured mounting [/media/usbdisk at /etc/e-smith/events/actions/backup2-backup line 161.

Same box - SME7RC1
Source = /home/e-smith/files/ibays/users/roland
Destination = [/media/usbdisk]

I am certain I followed the instructions closely when I installed this.

Again, looks like a typo:

INCORRECT=Error occured mounting [/media/usbdisk
INCORRECT=[/media/usbdisk]
CORRECT=/media/usbdisk

Offline p-jones

  • *
  • 594
  • +0/-0
Howto for Backup2
« Reply #14 on: April 05, 2006, 10:06:15 PM »
The logs are cut and paste. I have just rechecked the job and there are no typo's. The backup2ws job works just fine on a 6.01 box. and it's been copied exactly.
...

Offline jumba

  • ****
  • 291
  • +0/-0
  • Donations: July 2007 - $ 20.00
    • Smeserver på svenska!
Howto for Backup2
« Reply #15 on: April 06, 2006, 04:28:55 PM »
Could this contrib also be used to do backups to an external scsi-disk?

Anyone tried?????

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Howto for Backup2
« Reply #16 on: April 06, 2006, 11:48:03 PM »
Quote from: "jumba"
Could this contrib also be used to do backups to an external scsi-disk?

Anyone tried?????

Yes. It will perform a backup to any mountable ext3 fs storage device.

Darrell

Offline p-jones

  • *
  • 594
  • +0/-0
Howto for Backup2
« Reply #17 on: April 07, 2006, 12:14:51 PM »
I am still no further ahead with this despite checking, checking and more checking of what I have done. It has been sugested that that I have specified the location as \\server\share insteaad of //server/share.

I I put the slashes in the wrong way the logs look like THIS !!!!

Apr  7 22:07:48 server2 esmith::event[6090]: Processing event: pre-backup2-custom 575128
Apr  7 22:07:49 server2 e-smith-bg: Usage: mount.smbfs service mountpoint [-o options,...]
Apr  7 22:07:49 server2 e-smith-bg: Version 3.0.10-1.4E.2
Apr  7 22:07:49 server2 e-smith-bg:
Apr  7 22:07:49 server2 e-smith-bg: Options:
Apr  7 22:07:49 server2 e-smith-bg:       username=<arg>                  SMB username
Apr  7 22:07:49 server2 e-smith-bg:       password=<arg>                  SMB password
Apr  7 22:07:49 server2 e-smith-bg:       credentials=<filename>          file with username/password
Apr  7 22:07:49 server2 e-smith-bg:       krb                             use kerberos (active directory)
Apr  7 22:07:49 server2 e-smith-bg:       netbiosname=<arg>               source NetBIOS name
Apr  7 22:07:49 server2 e-smith-bg:       uid=<arg>                       mount uid or username
Apr  7 22:07:49 server2 e-smith-bg:       gid=<arg>                       mount gid or groupname
Apr  7 22:07:49 server2 e-smith-bg:       port=<arg>                      remote SMB port number
Apr  7 22:07:49 server2 e-smith-bg:       fmask=<arg>                     file umask
Apr  7 22:07:49 server2 e-smith-bg:       dmask=<arg>                     directory umask
Apr  7 22:07:49 server2 e-smith-bg:       debug=<arg>                     debug level
Apr  7 22:07:49 server2 e-smith-bg:       ip=<arg>                        destination host or IP address
Apr  7 22:07:49 server2 e-smith-bg:       workgroup=<arg>                 workgroup on destination
Apr  7 22:07:49 server2 e-smith-bg:       sockopt=<arg>                   TCP socket options
Apr  7 22:07:49 server2 e-smith-bg:       scope=<arg>                     NetBIOS scope
Apr  7 22:07:49 server2 e-smith-bg:       iocharset=<arg>                 Linux charset (iso8859-1, utf8)
Apr  7 22:07:49 server2 e-smith-bg:       codepage=<arg>                  server codepage (cp850)
Apr  7 22:07:49 server2 e-smith-bg:       unicode                         use unicode when communicating with server
Apr  7 22:07:49 server2 e-smith-bg:       lfs                             large file system support
Apr  7 22:07:49 server2 e-smith-bg:       ttl=<arg>                       dircache time to live
Apr  7 22:07:49 server2 e-smith-bg:       guest                           don't prompt for a password
Apr  7 22:07:49 server2 e-smith-bg:       ro                              mount read-only
Apr  7 22:07:49 server2 e-smith-bg:       rw                              mount read-write
Apr  7 22:07:49 server2 e-smith-bg:
Apr  7 22:07:49 server2 e-smith-bg: This command is designed to be run from within /bin/mount by giving
Apr  7 22:07:49 server2 e-smith-bg: the option '-t smbfs'. For example:
Apr  7 22:07:49 server2 e-smith-bg:   mount -t smbfs -o username=tridge,password=foobar //fjall/test /data/test
Apr  7 22:07:49 server2 e-smith-bg: Error occured mounting \\k500\smebackup at /etc/e-smith/events/actions/backup2-backup line 96.
...

Offline p-jones

  • *
  • 594
  • +0/-0
Howto for Backup2
« Reply #18 on: April 07, 2006, 12:26:59 PM »
If I put the slashes the correct way, the logs look like THIS....

Apr  7 22:22:39 server2 esmith::event[7152]: Processing event: pre-backup2-custom 575128
Apr  7 22:22:39 server2 e-smith-bg: 7157: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
Apr  7 22:22:39 server2 e-smith-bg: SMB connection failed
Apr  7 22:22:39 server2 e-smith-bg: Error occured mounting //k500/smebackup/ at /etc/e-smith/events/actions/backup2-backup line 96.

The share most definitely exists and has appropiate R/W permissions.

backup2-backup looks like this:

# Syntax: backup2-backup $BackupJob
#
# Copyright (C) 2003-2006 Darrell May <dmay@myezserver.com>
# --------------------------------------------------------------------

my $BackupJob = $ARGV
  • ;

die "BackupJob argument missing." unless defined ($BackupJob);

$ENV {'QMAILUSER'} = "root";
$ENV {'HOME'} = "/root";
$ENV {'USER'} = "root";

package esmith;

use strict;
use Errno;
use esmith::ConfigDB;
use esmith::util;

# Retrieve db entries
my $db = esmith::ConfigDB->open_ro("backup2");
my $rec = $db->get("$BackupJob");

# Set variables
my $Date = /bin/date +%m.%d.%y;
$Date =~ s/\n//g;
my $Compression = $rec->prop("Compression") || "0";
my $Description = $rec->prop("Description") || "";
my $Destination = $rec->prop("Destination") || "";
my $Exclude = $rec->prop("Exclude") || "";
my @Exclude = split(/,/, "$Exclude");
my $ExcludeList = "/tmp/backup2.$BackupJob.exclude";
my $Expiry = $rec->prop("Expiry") || "";
my $FileSystem = $rec->prop("FileSystem") || "smbfs";
my $IncludeList = "/tmp/backup2.$BackupJob.include";
my $LogFile = "/var/log/backup2/$BackupJob.backup.log";
my $Method = $rec->prop("Method");
my $Mount = $rec->prop("Mount");
my $Password = $rec->prop("Password") || "";
my $Reporting = $rec->prop("Reporting") || "";
my $Size = $rec->prop("Size") || "";
my $Source = $rec->prop("Source") || "";
my @Source = split(/,/, "$Source");
my $Username = $rec->prop("Username") || "";

# rar command options
my $Options="a -idp -ap -dh -ep2 -idc -m$Compression -ol -ow -v$Size" . "m -x\@$ExcludeList";

# -----------------------------------------------------------------------
# Start of generic functions
# -----------------------------------------------------------------------

# Create the inclusion list file
system("/bin/rm -f $IncludeList");
system("/bin/touch $IncludeList");
foreach $Source (@Source)
        {
        system("/bin/echo $Source >> $IncludeList");
        }

# Create the exclusion list file
system("/bin/rm -f $ExcludeList");
system("/bin/touch $ExcludeList");
foreach $Exclude (@Exclude)
        {
        system("/bin/echo $Exclude >> $ExcludeList");
        }

# Launch custom pre-backup2 event
system("/sbin/e-smith/signal-event", "pre-backup2-custom", "$BackupJob") == "0"
                 or die("Error occured during pre-backup2-custom event");

# Backup mySQL databases
if ("$BackupJob" eq "911")
        {
        system("/sbin/e-smith/signal-event", "pre-backup2") == "0"
                     or die("Error occured during pre-backup2 event");
        }

# -----------------------------------------------------------------------
# Start of backup2ws specific functions
# -----------------------------------------------------------------------

if ("$Method" eq "backup2ws")
{
# Create the mount point
system("/bin/mkdir -p /mnt/backup2.$BackupJob");

# Mount the Windows/samba share
system("/bin/umount $Destination > /dev/null 2>&1");
system("/bin/mount -t $FileSystem -o username=$Username,password=$Password $Destination /mnt/backup2.$BackupJob") == "0"
   or die("Error occured mounting $Destination");

# Create the backup directory
system("/bin/mkdir -p /mnt/backup2.$BackupJob/$BackupJob");

if ("$Expiry" eq "")
   {
        system("/bin/rm -f /mnt/backup2.$BackupJob/$BackupJob/$BackupJob.*") == "0"
                   or die("Error occured removing previous backup");
   }
   else
   {
        system("/bin/rm -f /mnt/backup2.$BackupJob/$BackupJob/$BackupJob.$Date.*") == "0"
                        or die("Error occured removing previous backup");

        system("/usr/bin/find /mnt/backup2.$BackupJob/$BackupJob/$BackupJob.* -type f -mtime +$Expiry -exec /bin/rm -f {} \\; > /dev/null 2>&1");
   }

# Backup using rar
system("/usr/bin/rar $Options -- /mnt/backup2.$BackupJob/$BackupJob/$BackupJob.$Date.rar \@$IncludeList > $LogFile");

# Create report file
my $Report = ("/bin/cat << EOF
# ----------------------------------------------------------------
# backup2 report for $Description, job number $BackupJob:
# ----------------------------------------------------------------

Please review the dates, time and sizes of the following:

Actual backup destination = [ $Destination/$BackupJob ]

/bin/ls -l /mnt/backup2.$BackupJob/$BackupJob/$BackupJob.$Date.*

Log file:

/bin/ls -l $LogFile

End of log file reports:

/usr/bin/tail $LogFile
EOF");

# send report to the administrator
if ("$Reporting" eq "enabled")
        {
        system("/bin/mail -s \"backup2 for $Description, job\# $BackupJob report\" admin < $Report");
        }

# Unmount and remove the mount point
if ("$Mount" eq "unmounted")
        {
   system("/bin/umount -f /mnt/backup2.$BackupJob");
   system("/bin/rmdir /mnt/backup2.$BackupJob");
   }
}

# --------------------------------------------------------------------
# Start of backup2usb specific functions
# --------------------------------------------------------------------

if ("$Method" eq "backup2usb")
{
# Mount the USB drive
system("/bin/umount $Destination > /dev/null 2>&1");
system("/bin/mount $Destination") == "0"
   or die("Error occured mounting $Destination");

# Create the backup directory
system("/bin/mkdir -p $Destination/$BackupJob");

if ("$Expiry" eq "")
   {
   system("/bin/rm -f $Destination/$BackupJob/$BackupJob.*") == "0"
                or die("Error occured removing previous backup");
   }
   else
   {
        system("/bin/rm -f $Destination/$BackupJob/$BackupJob.$Date.*") == "0"
                or die("Error occured removing previous backup");

   system("/usr/bin/find $Destination/$BackupJob/$BackupJob.* -type f -mtime +$Expiry -exec /bin/rm -f {} \\; > /dev/null 2>&1");
   }

# Backup using rar
system("/usr/bin/rar $Options -- $Destination/$BackupJob/$BackupJob.$Date.rar \@$IncludeList > $LogFile");

# Create report file
my $Report = ("/bin/cat << EOF
# ----------------------------------------------------------------
# backup2 report for $Description, job number $BackupJob:
# ----------------------------------------------------------------

Please review the dates, time and sizes of the following:

Actual backup destination = [ $Destination/$BackupJob ]

/bin/ls -l $Destination/$BackupJob/$BackupJob.$Date.*

Log file:

/bin/ls -l $LogFile

End of log file reports:

/usr/bin/tail $LogFile
EOF");

# send report to the administrator
if ("$Reporting" eq "enabled")
        {
        system("/bin/mail -s \"backup2 for $Description, job\# $BackupJob report\" admin < $Report");
        }

# Unmount the mount point
if ("$Mount" eq "unmounted")
   {
   system("/bin/umount -f $Destination");
   }

}

# -----------------------------------------------------------------------
# End of specific functions
# -----------------------------------------------------------------------

# Remove the in/exclude files
system("/bin/rm -f $IncludeList > /dev/null 2>&1");
system("/bin/rm -f $ExcludeList > /dev/null 2>&1");

# Remove mySQL dump
if ("$BackupJob" eq "911")
   {
        system("/sbin/e-smith/signal-event", "post-backup") == "0"
                     or die("Error occured during post-backup event");
        }

# Launch custom post-backup2 event
system("/sbin/e-smith/signal-event", "post-backup2-custom", "$BackupJob") == "0"
                     or die("Error occured during post-backup2-custom event");

exit (0);
...

Offline p-jones

  • *
  • 594
  • +0/-0
Howto for Backup2
« Reply #19 on: April 07, 2006, 02:36:14 PM »
Some Breakthroughs - Phew...

Firstly I removed the rpms, reconfigured the system then re installed using YUM. It made no difference to anything.

I next focused on Backup2USB. Wiped the Ext3 partition clean and recreated with Ext2. BINGO, success immeadiately. Moved the USB disk to a windows machine with the IFS Drives/WinRar 3.3 installed and was able to open the backup and extract files.

Next to Backup2Workstation. I had no idea where to go next so in desperation, supplied "administrator" and password. BINGO, more success.

Tried to open the RAR backup file with WinRar 3.3 but failed. Will do another backup overnight and revisit....

In summary,
Problems with Ext3 FS for USB drive (did I miss something somewhere - I thought EXt3 was OK)

A Windows permissions problem with the Wkstn share.

There are others in this thread who had reported similiar issues to mine - hope this helps

P
...

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Howto for Backup2
« Reply #20 on: April 07, 2006, 05:35:17 PM »
Quote from: "p-jones"
Problems with Ext3 FS for USB drive (did I miss something somewhere - I thought EXt3 was OK)

Yes, ext3 is preferred.

Quote from: "p-jones"
A Windows permissions problem with the Wkstn share.

Are you in a Win ADS domain environment? The account you use must be defined on the local workstation, not in ADS. Next be careful about the password you assign this local account. Keep it simple and do not use non alpha-numeric characters unless you know how to excape these characters. Try these in your testing:

username = backup2
password = backup2

Finally, test mounting your drive from the command line by following the two basic /bin/mount code lines found under this heading you copied above:

# Mount the Windows/samba share

Darrell

Offline p-jones

  • *
  • 594
  • +0/-0
Howto for Backup2
« Reply #21 on: April 07, 2006, 11:46:21 PM »
Hi Darrel

the wkstn is not in a windows Domain however the password does have a non alpha-numeric character to meet V7 security requirements (and map the server share).

The Ext3 bit has really got me confused now.

Cheers
Peter
...