Hi
I am have problems creating a backup using the DAR2 contrib
I have been reading the Dar2 topics in this forum but haven't been able to find a hint that I can use as a solution
From what I have read DAR2 is breaking partway though the process (which I am guessing is why USB is left mounted) but I have no idea why. Below I have included as much info as i can.
I have reinstall, run the update, installed dar2 then tried again but the result is the same.
If you can please Help
I have stripped down the included selection, I did this as a test but the results where the same as the default selection
*********** Dar 2 configuration in Server manager********************
Job name USB
DESCRIPTION USB Test
Backup selections etc/passwd
Prune directories
Exclude files
Target /media/usbdisk
Username
PASSWORD
File system ext3
Slice size 650
Compression 0
Expiry 3
Verbose on
Backup day *
Backup time 11:48
I have no log in /var/log/dar2
In my log message:
************* output from log/messages *****************************************
[root@sme log]# cat /var/log/messages | grep 11:48
Oct 9 11:47:02 sme /etc/e-smith/web/panels/manager/cgi-bin/dar2[15258]: /home/e-smith/db/dar2: NEW USB=dar2|Backup|etc/passwd|Compression|0|Description|USB Test|Exclude||Expiry|3|Mount|//media/usbdisk|Password||Prune||Slice|650|Target|//media/usbdisk|Username||VFSType|ext3|Verbose|on|backupDay|*|backupTime|11:48|status|enabled
Oct 9 11:48:03 sme kernel: kjournald starting. Commit interval 5 seconds
Oct 9 11:48:03 sme kernel: EXT3 FS on sda1, internal journal
Oct 9 11:48:03 sme kernel: EXT3-fs: mounted filesystem with ordered data mode.
Oct 9 11:48:16 sme esmith::event[15294]: Processing event: pre-backup
Oct 9 11:48:16 sme esmith::event[15294]: Running event handler: /etc/e-smith/events/pre-backup/S10mysql-delete-dumped-tables
Oct 9 11:48:16 sme esmith::event[15294]: S10mysql-delete-dumped-tables=action|Event|pre-backup|Action|S10mysql-delete-dumped-tables|Start|1223513296 557383|End|1223513296 560665|Elapsed|0.003282
Oct 9 11:48:16 sme esmith::event[15294]: Running event handler: /etc/e-smith/events/pre-backup/S20mysql-dump-tables
Oct 9 11:48:16 sme esmith::event[15294]: S20mysql-dump-tables=action|Event|pre-backup|Action|S20mysql-dump-tables|Start|1223513296 561065|End|1223513296 686984|Elapsed|0.125919
Oct 9 11:48:16 sme esmith::event[15294]: Running event handler: /etc/e-smith/events/pre-backup/S50rewind-tape
Oct 9 11:48:16 sme esmith::event[15294]: S50rewind-tape=action|Event|pre-backup|Action|S50rewind-tape|Start|1223513296 687377|End|1223513296 802718|Elapsed|0.115341
** Note ** I ran the test to create the log entry later
************* from log file in Server manager using DAR as a filter ****************************************
Oct 8 21:56:18 sme /etc/e-smith/web/panels/manager/cgi-bin/dar2[6824]: /home/e-smith/db/dar2: NEW USB=dar2|Backup|etc/passwd|Compression|0|Description|USB Test|Exclude||Expiry|3|Mount|//media/usbdisk|Password||Prune||Slice|650|Target|//media/usbdisk|Username||VFSType|ext3|Verbose|on|backupDay|*|backupTime|21:57|status|enabled
************* mount before *****************************************
target /media/usbdisk in not mounted
************* after backup USB is left mounted*****************************************
etc/smbpasswd[root@sme ~]# mount
/dev/mapper/main-root on / type ext3 (rw,usrquota,grpquota)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/md1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sda1 on /media/usbdisk type ext3 (rw,nosuid,nodev,sync,noatime)
*************** Email re event**********************************************
Date: 8 Oct 2008 10:57:02 -0000 [09:57:02 PM EST]
From: Cron Daemon <root@thefarmsgate.com>Add root@thefarmsgate.com to my Address Book
To: root@thefarmsgate.comAdd root@thefarmsgate.com to my Address Book
Subject: Cron <root@sme> /etc/e-smith/events/actions/dar2-backup USB
Headers: Show All Headers
Connecting to //media/usbdisk
Expanding /etc/dar2/USB template
Creating //media/usbdisk/sme.thefarmsgate.com/USB/db.zip
Expiring old backups
Executing pre-backup event
Verbose logging is on
Performing USB 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.
Parse error on command line (or included files): //media/usbdisk/sme.thefarmsgate.com/USB/2008.10.08 is an not a valid path: Empty string as subdirectory does not make a valid path
*************** dump of /etc/dar2/USB **********************************************
[root@sme dar2]# cat USB
#------------------------------------------------------------
# !!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
#------------------------------------------------------------
--go-into "etc/passwd"
--empty-dir
--fs-root /
--noconf
--no-warn
--slice 650M
--verbose
*************** Created zip file **********************************************
Created backup
[root@sme ~]# ls -l /media/usbdisk/sme.thefarmsgate.com/USB/
total 36
-rw-r--r-- 1 root root 32916 Oct 8 21:57 db.zip
*************** Content of zip file ********************************************
[root@sme ~]# unzip -l /media/usbdisk/sme.thefarmsgate.com//USB/db.zip
Archive: /media/usbdisk/sme.thefarmsgate.com//USB/db.zip
Length Date Time Name
-------- ---- ---- ----
3721 10-08-08 21:38 home/e-smith/db/accounts
577 10-08-08 21:32 home/e-smith/db/backups
8346 10-08-08 21:40 home/e-smith/db/configuration
2824 10-08-08 21:56 home/e-smith/db/dar2
362 10-08-08 21:38 home/e-smith/db/domains
722 10-02-08 20:04 home/e-smith/db/hosts
3098 10-08-08 21:38 home/e-smith/db/mailpatterns
298 10-08-08 21:38 home/e-smith/db/networks
0 11-09-07 09:35 home/e-smith/db/portforward_tcp
0 11-09-07 09:35 home/e-smith/db/portforward_udp
271 10-08-08 21:38 home/e-smith/db/spamassassin
90912 10-08-08 19:45 home/e-smith/db/yum_available
32477 10-08-08 19:45 home/e-smith/db/yum_installed
3493 10-08-08 21:38 home/e-smith/db/yum_repositories
11421 10-08-08 19:45 home/e-smith/db/yum_updates
1 10-08-08 21:40 home/e-smith/db/confusbdisks
-------- -------
158523 16 files