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.
...