Package: backup-manager
Version: 0.7.7-1
Severity: normal

Hi,
when doing a backup with dar I noticed that if one backup fails (in the
specific case dar exits 5 if a file is modified when read) then
every subsequent backup fails as well even if the backup program exits
successfully, my best guess is that error_code is not resetted in the
latter case:

594             $command "$target"> $logfile 2>&1 || error_code=$?
595             check_error_code "$error_code" "$file_to_create" "$logfile"

a debug log is attached.

thanks,
filippo

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25.1-mactel (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages backup-manager depends on:
ii  debconf [debconf-2.0]         1.5.22     Debian configuration management sy
ii  findutils                     4.4.0-2    utilities for finding files--find,
ii  gzip                          1.3.12-6   The GNU compression utility
ii  ucf                           3.006      Update Configuration File: preserv

backup-manager recommends no packages.

-- debconf information excluded
Backup Manager 0.7.7-debian1 - Copyright (c) 2004-2007 Alexis Sukrieh
DEBUG: Loading configuration file : "/etc/backup-manager.conf".
DEBUG: Sanitizing the configuration file.
DEBUG: replace_deprecated_booleans()
DEBUG: confkey_handle_deprecated (BM_ARCHIVES_REPOSITORY, BM_REPOSITORY_ROOT)
DEBUG: confkey_require (BM_REPOSITORY_ROOT, /var/archives)
DEBUG: confkey_require (BM_TEMP_DIR, /tmp)
DEBUG: confkey_require (BM_REPOSITORY_SECURE, true)
DEBUG: confkey_handle_deprecated (BM_USER, BM_REPOSITORY_USER)
DEBUG: confkey_require (BM_REPOSITORY_USER, root)
DEBUG: confkey_handle_deprecated (BM_GROUP, BM_REPOSITORY_GROUP)
DEBUG: confkey_require (BM_REPOSITORY_GROUP, root)
DEBUG: confkey_require (BM_REPOSITORY_CHMOD, 770)
DEBUG: confkey_require (BM_ARCHIVE_CHMOD, 660)
DEBUG: confkey_require (BM_REPOSITORY_RECURSIVEPURGE, false)
DEBUG: confkey_handle_deprecated (BM_MAX_TIME_TO_LIVE, BM_ARCHIVE_TTL)
DEBUG: confkey_require (BM_ARCHIVE_TTL, 5)
DEBUG: confkey_handle_deprecated (BM_PURGE_DUPLICATES, BM_ARCHIVE_PURGEDUPS)
DEBUG: confkey_require (BM_ARCHIVE_PURGEDUPS, true)
DEBUG: confkey_handle_deprecated (BM_ARCHIVES_PREFIX, BM_ARCHIVE_PREFIX)
DEBUG: confkey_require (BM_ARCHIVE_PREFIX, clamp)
DEBUG: confkey_handle_deprecated (BM_BACKUP_METHOD, BM_ARCHIVE_METHOD)
DEBUG: confkey_require (BM_ARCHIVE_METHOD, tarball)
DEBUG: confkey_require (BM_ARCHIVE_NICE_LEVEL, 10)
DEBUG: confkey_require (BM_TARBALL_FILETYPE, tar.gz)
DEBUG: confkey_require (BM_TARBALL_NAMEFORMAT, long)
DEBUG: confkey_require (BM_TARBALL_DUMPSYMLINKS, false)
DEBUG: confkey_handle_deprecated (BM_FILETYPE, BM_TARBALL_FILETYPE)
DEBUG: confkey_handle_deprecated (BM_NAME_FORMAT, BM_TARBALL_NAMEFORMAT)
DEBUG: confkey_handle_deprecated (BM_DIRECTORIES_BLACKLIST, 
BM_TARBALL_BLACKLIST)
DEBUG: confkey_handle_deprecated (BM_DUMP_SYMLINKS, BM_TARBALL_DUMPSYMLINKS)
DEBUG: confkey_require (BM_LOGGER, true)
DEBUG: confkey_require (BM_LOGGER_FACILITY, user)
DEBUG: Initializing environment
DEBUG: bm_init_env()
DEBUG: Checking if logger is available
DEBUG: Getting lock
DEBUG: get_lock()
Removing lock for old PID, 25168 is not running.
DEBUG: release_lock()
Getting lock for backup-manager 12953 with /etc/backup-manager.conf
DEBUG: check_filetypes()
DEBUG: Running pre-command
DEBUG: exec_pre_command()
DEBUG: create_directories()
DEBUG: Purging the repository
DEBUG: clean_repositories
Cleaning /media/disk/backups/clamp
DEBUG: clean_directory (/media/disk/backups/clamp)
DEBUG: Building archives
DEBUG: make_archives()
DEBUG: backup_method_tarball (tarball-incremental)
Using method "tarball-incremental".
DEBUG: __get_flags_dar_maxsize ()
DEBUG: __get_flags_dar_overwrite
DEBUG: __make_local_tarball_archives
DEBUG: __make_local_tarball_token (/bin)
DEBUG: get_dir_name (/bin, long)
DEBUG: __get_flags_dar_incremental (-bin)
DEBUG: __get_master_day ()
DEBUG: __init_masterdatevalue ()
DEBUG: __build_local_archive (/bin, -bin)
DEBUG: __get_file_to_create (/bin)
DEBUG: get_dir_name (/bin, long)
DEBUG: __get_backup_tarball_command ()
DEBUG: __get_flags_dar_blacklist (/bin)
DEBUG: __get_flags_relative_blacklist (-P, /bin)
DEBUG: build_clear_archive ()
DEBUG: logfile: /tmp/bm-tarball.log.C14595
DEBUG: /usr/bin/nice -n 2 /usr/bin/dar      -z9 -Q -c 
/media/disk/backups/clamp/clamp-bin.20080511.master -R /bin> 
/tmp/bm-tarball.log.C14595 2>&1
DEBUG: Outping content of /tmp/bm-tarball.log.C14595 to stderr
DEBUG: commit_archives (/media/disk/backups/clamp/clamp-bin.20080511.master)
DEBUG: size_of_path (/media/disk/backups/clamp/clamp-bin.20080511.master.1.dar)
DEBUG: commit_archive 
(/media/disk/backups/clamp/clamp-bin.20080511.master.1.dar)
DEBUG: rm -f .orig
DEBUG: get_md5sum (/media/disk/backups/clamp/clamp-bin.20080511.master.1.dar)


 --------------------------------------------
 102 inode(s) saved
 with 3 hard link(s) recorded
 0 inode(s) changed at the moment of the backup
 0 inode(s) not saved (no inode/file change)
 0 inode(s) failed to save (filesystem error)
 0 inode(s) ignored (excluded by filters)
 0 inode(s) recorded as deleted from reference backup
 --------------------------------------------
 Total number of inode considered: 102
 --------------------------------------------
 EA saved for 0 inode(s)
 --------------------------------------------
/media/disk/backups/clamp/clamp-bin.20080511.master.1.dar: ok (3M, 
8e237c1f08a51bb2cf10b5a6c1da13dd)
DEBUG: purge_duplicate_archives 
(/media/disk/backups/clamp/clamp-bin.20080511.master.1.dar)
DEBUG: get_md5sum (/media/disk/backups/clamp/clamp-bin.20080511.master.1.dar)
DEBUG: get_date_from_file 
(/media/disk/backups/clamp/clamp-bin.20080511.master.1.dar)
DEBUG: get_date_from_archive 
(/media/disk/backups/clamp/clamp-bin.20080511.master.1.dar)
DEBUG: __make_local_tarball_token (/boot)
DEBUG: get_dir_name (/boot, long)
DEBUG: __get_flags_dar_incremental (-boot)
DEBUG: __get_master_day ()
DEBUG: __init_masterdatevalue ()
DEBUG: __build_local_archive (/boot, -boot)
DEBUG: __get_file_to_create (/boot)
DEBUG: get_dir_name (/boot, long)
DEBUG: __get_backup_tarball_command ()
DEBUG: __get_flags_dar_blacklist (/boot)
DEBUG: __get_flags_relative_blacklist (-P, /boot)
DEBUG: build_clear_archive ()
DEBUG: logfile: /tmp/bm-tarball.log.k14881
DEBUG: /usr/bin/nice -n 2 /usr/bin/dar      -z9 -Q -c 
/media/disk/backups/clamp/clamp-boot.20080511.master -R /boot> 
/tmp/bm-tarball.log.k14881 2>&1
DEBUG: Outping content of /tmp/bm-tarball.log.k14881 to stderr
DEBUG: commit_archives (/media/disk/backups/clamp/clamp-boot.20080511.master)
DEBUG: size_of_path (/media/disk/backups/clamp/clamp-boot.20080511.master.1.dar)
DEBUG: commit_archive 
(/media/disk/backups/clamp/clamp-boot.20080511.master.1.dar)
DEBUG: rm -f .orig
DEBUG: get_md5sum (/media/disk/backups/clamp/clamp-boot.20080511.master.1.dar)
/media/disk/backups/clamp/clamp-boot.20080511.master.1.dar: ok (42M, 
0c4f92d87b2b4d5e850fc16fd58dfb11)
DEBUG: purge_duplicate_archives 
(/media/disk/backups/clamp/clamp-boot.20080511.master.1.dar)
DEBUG: get_md5sum (/media/disk/backups/clamp/clamp-boot.20080511.master.1.dar)
DEBUG: get_date_from_file 
(/media/disk/backups/clamp/clamp-boot.20080511.master.1.dar)
DEBUG: get_date_from_archive 
(/media/disk/backups/clamp/clamp-boot.20080511.master.1.dar)
DEBUG: __make_local_tarball_token (/etc)
DEBUG: get_dir_name (/etc, long)
DEBUG: __get_flags_dar_incremental (-etc)
DEBUG: __get_master_day ()
DEBUG: __init_masterdatevalue ()
DEBUG: __build_local_archive (/etc, -etc)
DEBUG: __get_file_to_create (/etc)


 --------------------------------------------
 106 inode(s) saved
 with 0 hard link(s) recorded
 0 inode(s) changed at the moment of the backup
 0 inode(s) not saved (no inode/file change)
 0 inode(s) failed to save (filesystem error)
 0 inode(s) ignored (excluded by filters)
 0 inode(s) recorded as deleted from reference backup
 --------------------------------------------
 Total number of inode considered: 106
 --------------------------------------------
 EA saved for 0 inode(s)
 --------------------------------------------
DEBUG: get_dir_name (/etc, long)
DEBUG: __get_backup_tarball_command ()
DEBUG: __get_flags_dar_blacklist (/etc)
DEBUG: __get_flags_relative_blacklist (-P, /etc)
DEBUG: build_clear_archive ()
DEBUG: logfile: /tmp/bm-tarball.log.r15165
DEBUG: /usr/bin/nice -n 2 /usr/bin/dar      -z9 -Q -c 
/media/disk/backups/clamp/clamp-etc.20080511.master -R /etc> 
/tmp/bm-tarball.log.r15165 2>&1
DEBUG: Outping content of /tmp/bm-tarball.log.r15165 to stderr
DEBUG: commit_archives (/media/disk/backups/clamp/clamp-etc.20080511.master)
DEBUG: size_of_path (/media/disk/backups/clamp/clamp-etc.20080511.master.1.dar)
DEBUG: commit_archive 
(/media/disk/backups/clamp/clamp-etc.20080511.master.1.dar)
DEBUG: rm -f .orig
DEBUG: get_md5sum (/media/disk/backups/clamp/clamp-etc.20080511.master.1.dar)
/media/disk/backups/clamp/clamp-etc.20080511.master.1.dar: ok (14M, 
c2e3faae1d65e5f910f32f1b4e34b68c)
DEBUG: purge_duplicate_archives 
(/media/disk/backups/clamp/clamp-etc.20080511.master.1.dar)
DEBUG: get_md5sum (/media/disk/backups/clamp/clamp-etc.20080511.master.1.dar)
DEBUG: get_date_from_file 
(/media/disk/backups/clamp/clamp-etc.20080511.master.1.dar)
DEBUG: get_date_from_archive 
(/media/disk/backups/clamp/clamp-etc.20080511.master.1.dar)
DEBUG: __make_local_tarball_token (/home)
DEBUG: get_dir_name (/home, long)
DEBUG: __get_flags_dar_incremental (-home)
DEBUG: __get_master_day ()
DEBUG: __init_masterdatevalue ()
DEBUG: __build_local_archive (/home, -home)
DEBUG: __get_file_to_create (/home)
DEBUG: get_dir_name (/home, long)


 --------------------------------------------
 7413 inode(s) saved
 with 0 hard link(s) recorded
 0 inode(s) changed at the moment of the backup
 0 inode(s) not saved (no inode/file change)
 0 inode(s) failed to save (filesystem error)
 0 inode(s) ignored (excluded by filters)
 0 inode(s) recorded as deleted from reference backup
 --------------------------------------------
 Total number of inode considered: 7413
 --------------------------------------------
 EA saved for 0 inode(s)
 --------------------------------------------
DEBUG: __get_backup_tarball_command ()
DEBUG: __get_flags_dar_blacklist (/home)
DEBUG: __get_flags_relative_blacklist (-P, /home)
DEBUG: build_clear_archive ()
DEBUG: logfile: /tmp/bm-tarball.log.s15455
DEBUG: /usr/bin/nice -n 2 /usr/bin/dar   -Pnobackup    -z9 -Q -c 
/media/disk/backups/clamp/clamp-home.20080511.master -R /home> 
/tmp/bm-tarball.log.s15455 2>&1
DEBUG: Outping content of /tmp/bm-tarball.log.s15455 to stderr
DEBUG: handle_tarball_error 
(/media/disk/backups/clamp/clamp-home.20080511.master, 
/tmp/bm-tarball.log.s15455)
Unable to create "/media/disk/backups/clamp/clamp-home.20080511.master", check 
/tmp/bm-tarball.log.s15455
DEBUG: __make_local_tarball_token (/lib)
DEBUG: get_dir_name (/lib, long)
WARNING! File modified while reading it for backup: 
/home/godog/.mozilla/firefox/powerbook/urlclassifier3.sqlite-journal
WARNING! File modified while reading it for backup: 
/home/godog/.mozilla/firefox/powerbook/urlclassifier3.sqlite


 --------------------------------------------
 361530 inode(s) saved
 with 1008 hard link(s) recorded
 2 inode(s) changed at the moment of the backup
 0 inode(s) not saved (no inode/file change)
 0 inode(s) failed to save (filesystem error)
 1 inode(s) ignored (excluded by filters)
 0 inode(s) recorded as deleted from reference backup
 --------------------------------------------
 Total number of inode considered: 361533
 --------------------------------------------
 EA saved for 0 inode(s)
 --------------------------------------------
DEBUG: __get_flags_dar_incremental (-lib)
DEBUG: __get_master_day ()
DEBUG: __init_masterdatevalue ()
DEBUG: __build_local_archive (/lib, -lib)
DEBUG: __get_file_to_create (/lib)
DEBUG: get_dir_name (/lib, long)
DEBUG: __get_backup_tarball_command ()
DEBUG: __get_flags_dar_blacklist (/lib)
DEBUG: __get_flags_relative_blacklist (-P, /lib)
DEBUG: build_clear_archive ()
DEBUG: logfile: /tmp/bm-tarball.log.C15893
DEBUG: /usr/bin/nice -n 2 /usr/bin/dar      -z9 -Q -c 
/media/disk/backups/clamp/clamp-lib.20080511.master -R /lib> 
/tmp/bm-tarball.log.C15893 2>&1
DEBUG: Outping content of /tmp/bm-tarball.log.C15893 to stderr
DEBUG: handle_tarball_error 
(/media/disk/backups/clamp/clamp-lib.20080511.master, 
/tmp/bm-tarball.log.C15893)
Unable to create "/media/disk/backups/clamp/clamp-lib.20080511.master", check 
/tmp/bm-tarball.log.C15893
DEBUG: __make_local_tarball_token (/root)
DEBUG: get_dir_name (/root, long)
DEBUG: __get_flags_dar_incremental (-root)
DEBUG: __get_master_day ()
DEBUG: __init_masterdatevalue ()
DEBUG: __build_local_archive (/root, -root)
DEBUG: __get_file_to_create (/root)
DEBUG: get_dir_name (/root, long)
DEBUG: __get_backup_tarball_command ()
DEBUG: __get_flags_dar_blacklist (/root)
DEBUG: __get_flags_relative_blacklist (-P, /root)
DEBUG: build_clear_archive ()
DEBUG: logfile: /tmp/bm-tarball.log.r16117
DEBUG: /usr/bin/nice -n 2 /usr/bin/dar      -z9 -Q -c 
/media/disk/backups/clamp/clamp-root.20080511.master -R /root> 
/tmp/bm-tarball.log.r16117 2>&1
DEBUG: Outping content of /tmp/bm-tarball.log.r16117 to stderr


 --------------------------------------------
 5524 inode(s) saved
 with 0 hard link(s) recorded
 0 inode(s) changed at the moment of the backup
 0 inode(s) not saved (no inode/file change)
 0 inode(s) failed to save (filesystem error)
 0 inode(s) ignored (excluded by filters)
 0 inode(s) recorded as deleted from reference backup
 --------------------------------------------
 Total number of inode considered: 5524
 --------------------------------------------
 EA saved for 0 inode(s)
 --------------------------------------------
DEBUG: handle_tarball_error 
(/media/disk/backups/clamp/clamp-root.20080511.master, 
/tmp/bm-tarball.log.r16117)
Unable to create "/media/disk/backups/clamp/clamp-root.20080511.master", check 
/tmp/bm-tarball.log.r16117
DEBUG: __make_local_tarball_token (/sbin)
DEBUG: get_dir_name (/sbin, long)
DEBUG: __get_flags_dar_incremental (-sbin)
DEBUG: __get_master_day ()
DEBUG: __init_masterdatevalue ()
DEBUG: __build_local_archive (/sbin, -sbin)
DEBUG: __get_file_to_create (/sbin)
DEBUG: get_dir_name (/sbin, long)
DEBUG: __get_backup_tarball_command ()
DEBUG: __get_flags_dar_blacklist (/sbin)
DEBUG: __get_flags_relative_blacklist (-P, /sbin)
DEBUG: build_clear_archive ()
DEBUG: logfile: /tmp/bm-tarball.log.F16308
DEBUG: /usr/bin/nice -n 2 /usr/bin/dar      -z9 -Q -c 
/media/disk/backups/clamp/clamp-sbin.20080511.master -R /sbin> 
/tmp/bm-tarball.log.F16308 2>&1
DEBUG: Outping content of /tmp/bm-tarball.log.F16308 to stderr


 --------------------------------------------
 76 inode(s) saved
 with 0 hard link(s) recorded
 0 inode(s) changed at the moment of the backup
 0 inode(s) not saved (no inode/file change)
 0 inode(s) failed to save (filesystem error)
 0 inode(s) ignored (excluded by filters)
 0 inode(s) recorded as deleted from reference backup
 --------------------------------------------
 Total number of inode considered: 76
 --------------------------------------------
 EA saved for 0 inode(s)
 --------------------------------------------
DEBUG: handle_tarball_error 
(/media/disk/backups/clamp/clamp-sbin.20080511.master, 
/tmp/bm-tarball.log.F16308)
Unable to create "/media/disk/backups/clamp/clamp-sbin.20080511.master", check 
/tmp/bm-tarball.log.F16308
DEBUG: __make_local_tarball_token (/usr)
DEBUG: get_dir_name (/usr, long)
DEBUG: __get_flags_dar_incremental (-usr)
DEBUG: __get_master_day ()
DEBUG: __init_masterdatevalue ()
DEBUG: __build_local_archive (/usr, -usr)
DEBUG: __get_file_to_create (/usr)
DEBUG: get_dir_name (/usr, long)
DEBUG: __get_backup_tarball_command ()
DEBUG: __get_flags_dar_blacklist (/usr)
DEBUG: __get_flags_relative_blacklist (-P, /usr)
DEBUG: build_clear_archive ()
DEBUG: logfile: /tmp/bm-tarball.log.G16502
DEBUG: /usr/bin/nice -n 2 /usr/bin/dar      -z9 -Q -c 
/media/disk/backups/clamp/clamp-usr.20080511.master -R /usr> 
/tmp/bm-tarball.log.G16502 2>&1
DEBUG: Outping content of /tmp/bm-tarball.log.G16502 to stderr


 --------------------------------------------
 123 inode(s) saved
 with 7 hard link(s) recorded
 0 inode(s) changed at the moment of the backup
 0 inode(s) not saved (no inode/file change)
 0 inode(s) failed to save (filesystem error)
 0 inode(s) ignored (excluded by filters)
 0 inode(s) recorded as deleted from reference backup
 --------------------------------------------
 Total number of inode considered: 123
 --------------------------------------------
 EA saved for 0 inode(s)
 --------------------------------------------

Reply via email to