Koozali.org: home of the SME Server

Dar backup question

Offline paradigm

  • *
  • 96
  • +0/-0
Dar backup question
« on: September 01, 2009, 09:55:32 PM »
I'm testing sme 7.4 on virtual box and doing backup with DAR ,and have encountered a snag , some days 

Backup Just does not run and i get no mail or an entry in the log file , just nothing happens .

I think i tracked it to the reason that if i don't move new files to the server itself or do an update on it or even a

New contrib install the backup skips because it thinks that nothing has changed from the last backup.

Is sme supposed to log or mail anything when there is nothing new to backup ?

How does DAR decide when a new backup should be done ?

Offline jpl

  • *
  • 112
  • +0/-0
Re: Dar backup question
« Reply #1 on: September 02, 2009, 08:24:01 PM »
Is sme supposed to log or mail anything when there is nothing new to backup ?

How does DAR decide when a new backup should be done ?

Workstation-backup makes a daily backup when enabled. It doesn't decide to do a backup or not : when enabled the backup is launched by cron.

If you don't see any log, verify workstation backup is enabled.

Offline paradigm

  • *
  • 96
  • +0/-0
Re: Dar backup question
« Reply #2 on: September 02, 2009, 10:39:35 PM »
I have been testing this for a week and on days that change not done on files stored on Ibays no backup is done.
On days like the one i described above no backup is done and no mail is sent or log written.
Workstation backup is enabled.

Offline jpl

  • *
  • 112
  • +0/-0
Re: Dar backup question
« Reply #3 on: September 03, 2009, 07:31:42 AM »
The first verification is to look at /etc/crontab to see if you have an entry for /sbin/e-smith/do_backupwk

Offline paradigm

  • *
  • 96
  • +0/-0
Re: Dar backup question
« Reply #4 on: September 03, 2009, 06:54:54 PM »
The first verification is to look at /etc/crontab to see if you have an entry for /sbin/e-smith/do_backupwk
Didn't find any of the above in the log file.

I removed dar2 contrib that was also installed , formated the usb hard disk , canceled the old backup job , and

Set a new one , which did a successful full first backup today.

will post in the coming days if some thing does not work as expected

Offline paradigm

  • *
  • 96
  • +0/-0
Re: Dar backup question
« Reply #5 on: September 04, 2009, 05:54:52 PM »
Well still not working as should , checked sme today a few minutes after  backup was timed to run , and nothing

Happend , no sign in the log file (/sbin/e-smith/do_backupwk)  and no email to admin account .

any ideas , or should i post a bug ?

thanks in advance..

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dar backup question
« Reply #6 on: September 04, 2009, 06:11:21 PM »
or should i post a bug ?

you must open a bug

Stefano

Offline jpl

  • *
  • 112
  • +0/-0
Re: Dar backup question
« Reply #7 on: September 04, 2009, 08:19:45 PM »
Before opening a bug, please answer my question : is there an entry for /sbin/e-smith/do_backupwk in the /etc/crontab file (not in the logs) ?

And did you launch a post-upgrade after removing dar2 ?
« Last Edit: September 04, 2009, 08:21:31 PM by jpl »

Offline paradigm

  • *
  • 96
  • +0/-0
Re: Dar backup question
« Reply #8 on: September 05, 2009, 12:02:50 AM »
I cant remember if i did launch a post-upgrade after removing dar2 , did it now along with signal-event reboot.

here is /etc/crontab file  (i marked in bold the entry which is similar to the backup time i checked in the server

manager - 18:25 :

#------------------------------------------------------------
#              !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root

# run-parts

01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

# logrotate
12 1 */7 * * root       /sbin/e-smith/signal-event logrotate


# Backup task is disabled
28 18 * * * root /sbin/e-smith/do_backupwk

02 4 * * * root /sbin/e-smith/check4updates -m


# smeserver-clamscan filesystem scan
50      0       *       *       0       root    /sbin/e-smith/smeserver-clamscan




16 4 * * * root squid -k rotate

16 10 * * 6 root  sleep $[ $RANDOM \% 60 ]; /sbin/e-smith/statusreport

Offline jpl

  • *
  • 112
  • +0/-0
Re: Dar backup question
« Reply #9 on: September 05, 2009, 12:59:01 PM »
You can verify if your options are correctly set and dar backup is enabled with : db configuration get backupwk

and launch a backup in a console (with /sbin/e-smith/do_backupwk) to see if you get error messages.

Offline paradigm

  • *
  • 96
  • +0/-0
Re: Dar backup question
« Reply #10 on: September 05, 2009, 09:36:25 PM »
After moving some files from and to Ibays a successful incremental backup was done today .

(problem still happening)

I will open a bug report....

http://bugs.contribs.org/show_bug.cgi?id=5457
« Last Edit: September 06, 2009, 08:01:00 PM by paradigm »