Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: the-heck on April 17, 2007, 10:06:36 PM
-
I have been testing the SMESERVER-DAR2 contrib. The webpanel for the Job is having a schedule field. Even though I pick any of the day, including *, the task doesn't seem to go on schedule.
When I do click the Backup, or issue via commandline the backup is going well.
What could be wrong?
the-heck
-
I have been testing the SMESERVER-DAR2 contrib. The webpanel for the Job is having a schedule field. Even though I pick any of the day, including *, the task doesn't seem to go on schedule.
When I do click the Backup, or issue via commandline the backup is going well.
What could be wrong?
the-heck
You have not provided enough info. Try adding these results to your post:
# rpm -q smeserver-release smeserver-dar2
# db dar2 show jobname
# cat /etc/crontab
Darrell
-
Darell,
This is the result. Thanks for the assistance.
[root@fileshare ~]# rpm -q smeserver-release smeserver-dar2
smeserver-release-7.1.3-1.el4.sme
smeserver-dar2-0.0.1-3dmay
[root@fileshare ~]# db dar2 show fullbackup
fullbackup=dar2
Backup=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,root
Compression=0
Description=Full Backup
Exclude=
Expiry=0
Mount=/media/usbdisk2
Password=
Prune=
Slice=650
Target=/media/usbdisk2
Username=
VFSType=ext3
Verbose=off
backupDay=*
backupTime=23:30
status=enabled
[root@fileshare ~]# cat /etc/crontab
#------------------------------------------------------------
# !!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://wiki.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
# dar2
30 23 * * * root /etc/e-smith/events/actions/dar2-backup fullbackup
# squid is disabled
4 12 * * 3 root sleep $[ $RANDOM \% 60 ]; /sbin/e-smith/statusreport
[root@fileshare ~]#
:D
-
Why '/media/usbdisk2' ?
This /etc/crontab line should be launching the backup at 23:30:
30 23 * * * root /etc/e-smith/events/actions/dar2-backup fullbackup
View the cron & messages logs to see what's happening:
# grep 23:30 /var/log/cron /var/log/messages
Darrell
-
Why '/media/usbdisk2' ?
>>Because when I use the default /media/usbdisk, it is not working even manually. I have to usbdisk drive, usbdisk1 and usbdisk2.
# grep 23:30 /var/log/cron /var/log/messages
Results:
/var/log/messages:Apr 18 23:30:02 fileshare kernel: kjournald starting. Commit interval 5 seconds
/var/log/messages:Apr 18 23:30:02 fileshare kernel: EXT3 FS on sdc1, internal journal
/var/log/messages:Apr 18 23:30:02 fileshare kernel: EXT3-fs: mounted filesystem with ordered data mode.
Today, the scheduled backup also did not commence. :(
-
Expand your search. You have not shown anything from /var/log/cron and only three lines from /var/log/messages. Look further into your logs around 23:30. Make sure crond is running.
# /etc/rc.d/init.d/crond status
crond (pid 2803) is running...
Run the job manually (which you say works) and view the /var/log/messages details.
Darrell
-
For the first time this contribs doesnt work.
It abckup the db.zip but not the others
[root@sme ~]# /etc/e-smith/events/actions/dar2-backup Backup
Connecting to /media/usbdisk/
Expanding /etc/dar2/Backup template
Creating /media/usbdisk//sme.lindsay-lohan.dyndns.org/Backup/db.zip
Expiring old backups
Executing pre-backup event
[root@sme ~]#
What can i do to make it work?
And how do i uninstall and reinstall this contribs?
never mind it was a error in the database that cause it :D
-
Connecting to /media/usbdisk2
Expanding /etc/dar2/fullbackup template
Creating /media/usbdisk2/fileshare.rabigh-mhi.com/fullbackup/db.zip
Expiring old backups
Executing pre-backup event
Verbose logging is off
Performing fullbackup backup
No terminal found for user interaction. All questions will be assumed a negative answer (less destructive choice), which most of the time will abort the program.
Darell,
This is what I found from the cron message sent to my inbox.
I will send the logs later after the backup session.
thanks again.
-
The Contrib is so great and so useful!!
I can now schedule and remount my usbdrive!!
Thank you Darell!!
:D
Suggestion: It would be nice to have an option in the panel to re-mount the usbdrive after Dar.