Koozali.org formerly Contribs.org

[UPDATE 7.2] e-smith-backup with dar

Offline jester

  • *
  • 496
Re: [UPDATE 7.2] e-smith-backup with dar
« Reply #75 on: November 28, 2007, 01:20:58 PM »
I've updated e-smith-backup from the test repo and trying to backup to an Iomega usb REV (rrd) drive. The rev-drive is normally in /media/usbdisk and through the backup admin-panel i can select it when configuring a 'backup to workstation'. I've created an action for pre-backup to mount the REV-cartridge with (otherwise i presume the backup will end up in the /media/usbdisk/ directory in stead of on the rev-cartridge):
Code: [Select]
#!/bin/sh
exec /bin/mount /media/usbdisk

and two actions for post-backup to umount and eject the REV-cartridge:
Code: [Select]
#!/bin/sh
exec /bin/umount /media/usbdisk
and
Code: [Select]
#!/bin/sh
exec /usr/bin/eject /media/usbdisk

But i must be doing something wrong 'cause nothing appears on the rev-cartridge.... suggestions anyone?!

Thanx!
jester.


Offline jpl

  • *
  • 112
Re: [UPDATE 7.2] e-smith-backup with dar
« Reply #76 on: November 28, 2007, 01:50:20 PM »
If you use last available version of e-smith-backup (e-smith-backup-1.15.0-7, or even -6)), the mount is made by the backup script.

So if you mount /media/usbdisk through a pre-backup script, the backup script should normally fail.


Offline jester

  • *
  • 496
Re: [UPDATE 7.2] e-smith-backup with dar
« Reply #77 on: November 28, 2007, 10:46:15 PM »
Thanks jpl, got things working now.... on with the testing.

Re: [UPDATE 7.2] e-smith-backup with dar
« Reply #78 on: December 12, 2007, 08:04:24 PM »
Hello!

I have an annoying problem on my server with this contrib.

When I try a sel_restore from the web interface of server-manager, response is pretty bad:

"Corrupted database :Not a zero terminated string in file"

What's exactly going on? i didn't read/find anything about this problem...

Thanks!

Re: [UPDATE 7.2] e-smith-backup with dar
« Reply #79 on: December 19, 2007, 02:38:22 PM »
I didn't see any mention of this, but would I be able to use e-smith backup to automatically backup selected folders on each one of my Windows XP machines?

Let's say I have an sme server, running e-smith-backup, and 3 Windows XP (pro or home) machines, with some shared folders:
XP 1 has "My Documents", "Games" & "Client invoices"
XP 2 has "My Documents", "random stuff", "quotes", "client invoices", "client work"
XP 3 has "My Documents", "client invoices"

How would I use e-smith-backup to automatically backup all of these to say /home/e-smith/files/ibays/backups/{machine name}?
Cause then I can automatically backup the backups ibays to my USB backup drive

Offline raem

  • *
  • 3,972
Re: [UPDATE 7.2] e-smith-backup with dar
« Reply #80 on: December 19, 2007, 06:03:47 PM »
SoftDux

e-smith-backup does not support that funtionality.

If you read earlier parts of this thread, you will see commands that allow you to mount a windows share, so if you created shares for those locations you could then mount them to /home/e-smith/files/ibays/backups/....
and they would be included in normal daily backups.

You would have to create seperate cron jobs/scripts to handle the mounting and unmounting.

There is the BackupPC contrib which is designed to do this.

Why not just point those locations on your windows PC's to use the users home drive (H:), or enable roamimg profiles, then that data is automtaically included in backups.
...

Re: [UPDATE 7.2] e-smith-backup with dar
« Reply #81 on: December 19, 2007, 06:39:16 PM »
ok, thanx. I'll check out BackupPC

Offline raem

  • *
  • 3,972
Re: [UPDATE 7.2] e-smith-backup with dar
« Reply #82 on: December 19, 2007, 07:15:01 PM »
SoftDux

Assuming you are using sme as a domain controller, and as you only have 3 workstations, it would be very easy to just click on My Documents/Properties and change the path to H:, and then that stuff will automatically be saved on the server in the users home drive, and will therefore be included in normal backups, nothing extra to install or configure.

Alternatively if you don''t use sme as a domain controller and don't have home drives, change My Documents to another shared drive eg P:\username which happens to be an ibay, that will also be included in normal backups without any extra effort.
...

Re: [UPDATE 7.2] e-smith-backup with dar
« Reply #83 on: December 19, 2007, 07:25:21 PM »
I don't use sme as a domain controller, and I don't want to move the Documents folder to a share on the server. I'm looking for something to implement on all the networks that I administrate, some have Windows XP, some Windows 2000, Some MAC, some Linux - all use samba though, so the principle will stay the same.

Ideally, I'd prefer to "pull" the files from the sme server, so the mount option will work fine :)

Offline holck

  • *
  • 278
Re: [UPDATE 7.2] e-smith-backup with dar
« Reply #84 on: September 19, 2008, 11:32:43 PM »
I have a small problem with this contrib, which otherwise is really helpful. I choose to backup to a USB-disk attached to the server, and the script automatically (?) selects "/media/usbdisk" as the backup-device, but this disk is non-existent. I want it to use "/media/usbdisk1" which is where the external disk is.

I found out that I can change the name of the disk with
/sbin/e-smith/db configuration setprop backupwk SmbShare media/usbdisk1

But this is annoying to do every time I change the backup settings.

Any ideas / help?
« Last Edit: September 19, 2008, 11:37:43 PM by holck »
......

Offline janet

  • ****
  • 4,808
Re: [UPDATE 7.2] e-smith-backup with dar
« Reply #85 on: September 20, 2008, 03:48:51 AM »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline holck

  • *
  • 278
Re: [UPDATE 7.2] e-smith-backup with dar
« Reply #86 on: September 20, 2008, 06:34:25 PM »
Thanks for the link :-)

I have now labeled my USB backup disk:
# /sbin/e2label /dev/sda3 USB-backup

The two relevant lines in /etc/fstab:
/dev/sda3          /media/usbdisk1        ext3   defaults
/dev/sda1          /media/usbdisk          ext3   pamconsole,noatime,sync,exec,noauto,managed 0 0

I changed to:
#/dev/sda3          /media/usbdisk1         ext3   defaults
LABEL=USB-backup  /media/usbdisk        ext3   defaults
/dev/sda1         /media/usbdisk     ext3    pamconsole,noatime,sync,exec,noauto,managed 0 0

I hope it works, but I am little concerned whether these changes to /etc/fstab will "survive" various events and system changes.
......

Offline janet

  • ****
  • 4,808
Re: [UPDATE 7.2] e-smith-backup with dar
« Reply #87 on: September 21, 2008, 03:26:06 AM »
holck

Not everything in sme is templated.
I think fstab changes will survive reconfiguration.

You can easily prove this by doing
signal-event post-upgrade
signal-event reboot

and then see if your fstab changes are still there.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.