Koozali.org: home of the SME Server

Workstation Backup Disk Utilization

Offline sonoracomm

  • *
  • 208
  • +0/-0
    • http://www.sonoracomm.com
Workstation Backup Disk Utilization
« on: February 23, 2011, 07:01:48 PM »
Hello,

I'm asking for advice on how to display the current disk utilization for Workstation Backup.

We use the Workstation Backup as a Level 1 backup where Level 2 is our on-line backup service.

As long as you have plenty of disk space on the USB (or internal) disk that you use to back up to, everything seems very reliable.  If you run short of disk space on your backup drive, things fail without warning.

Since the backup drive is only mounted during the backup, it would be nice if the workstation backup report e-mailed to the administrator contained disk utilization info on the backup drive.  Even the output of "df -h" would be very helpful.

Unfortunately, my first attempts at making this happen have not been successful.  I really should learn perl, I guess.

So, does anyone have a suggestion for me as to which script to tweak and how?  I would appreciate it very much.

Thanks,

G

Offline brianr

  • *
  • 990
  • +2/-0
Re: Workstation Backup Disk Utilization
« Reply #1 on: February 24, 2011, 07:22:48 PM »
Interestingly, the 8.0b6 version does this:

Moving backup files to target directory /media/nolabel/server.doamin.com/set2
Disk usage 8.9G, 2% full, 862G available
Updating backup configuration data
Backup successfully terminated at : Wed Feb 23 22:00:19 2011

whereas 7.5.1:

Moving backup files to target directory /media/usbdisk/server.domain.org/set0
Updating backup configuration data
Backup successfully terminated at : Wed Feb 23 22:01:01 2011



Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline sonoracomm

  • *
  • 208
  • +0/-0
    • http://www.sonoracomm.com
Re: Workstation Backup Disk Utilization
« Reply #2 on: February 24, 2011, 10:37:29 PM »
Hi Brian,

Thanks for that.

It so happens that one of the servers I was monitoring was SME8b6, but it didn't have the disk utilization stats in the e-mailed reports.  I did a 'yum update' (smeserver-backup was updated) and that did the trick.

Thanks Brian ands thank to all devs for a fantastic project.

G

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
Re: Workstation Backup Disk Utilization
« Reply #3 on: March 12, 2011, 04:44:28 PM »
The feature was requested in the Bug Tracker, and as it was both easy to implement and useful, I implemented it.
- Include disk usage in Workstation Backup email [SME: 6143]

There is also another related change that you may be interested in
Backup to Workstation does not handle full remote disc gracefully, by Filippo Carletti [SME: 6355]

That one is just waiting for someone to verify it before being released. It lets failures due to full disks fail more gracefully.


............

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: Workstation Backup Disk Utilization
« Reply #4 on: March 13, 2011, 05:55:55 AM »
That one is just waiting for someone to verify it before being released. It lets failures due to full disks fail more gracefully.

On its way....
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.