[Box Backup-commit] Re: #48: Locations that don't exist on first run are never tried
again
Box Backup
boxbackup-dev@boxbackup.org
Sat, 08 Nov 2008 22:18:55 -0000
#48: Locations that don't exist on first run are never tried again
-----------------------+----------------------------------------------------
Reporter: chris | Owner: chris
Type: defect | Status: new
Priority: normal | Milestone: 0.12
Component: bbackupd | Version: 0.11rc1
Resolution: | Keywords: backup location not available retry backup-ok notification
-----------------------+----------------------------------------------------
Old description:
> Torsten reports:
>
> ''if i have a location not existing locally and not existing on the store
> but
> activated as a location in bbackupd.conf. With this configuration box
> backup
> throws this errors on start.''
>
> {{{
> ERROR: Failed to stat file: '/test-192.168.1.87-torsten': No such file or
> directory (2)
> WARNING: Exception thrown: CommonException(OSFileError) at
> BackupClientFileAttributes.cpp(309)
> ERROR: Failed to get attributes for path '/test-192.168.1.87-torsten',
> skipping location 'test-192.168.1.87-torsten'
> WARNING: Failed to access directory: /test-192.168.1.87-torsten: No such
> file or directory
> NOTICE: About to notify administrator about event backup-ok, running
> script '/root/exobackup/boxbackup/NotifySysadmin.sh backup-ok'
> }}}
>
> * ''this errors are only printed once. The next backup runs do not
> consider to
> backup this location. That is not good for me. I have locations on remote
> storage mounted via samba. So only one mount error and i will never again
> be
> notified that this location is not backed up.''
>
> * ''is this the right behavior, that backup-ok is called even though
> there was
> this error?''
>
> ''I attached a little patch that makes box backup to retry this location.
> But i
> dont think that this is a clean way.''
New description:
Torsten reports:
If i have a location not existing locally and not existing on the store
but activated as a location in bbackupd.conf. With this configuration box
backup throws this errors on start.
{{{
ERROR: Failed to stat file: '/test-192.168.1.87-torsten': No such file or
directory (2)
WARNING: Exception thrown: CommonException(OSFileError) at
BackupClientFileAttributes.cpp(309)
ERROR: Failed to get attributes for path '/test-192.168.1.87-torsten',
skipping location 'test-192.168.1.87-torsten'
WARNING: Failed to access directory: /test-192.168.1.87-torsten: No such
file or directory
NOTICE: About to notify administrator about event backup-ok, running
script '/root/exobackup/boxbackup/NotifySysadmin.sh backup-ok'
}}}
* this errors are only printed once. The next backup runs do not consider
to backup this location. That is not good for me. I have locations on
remote storage mounted via samba. So only one mount error and i will never
again be notified that this location is not backed up.
* is this the right behavior, that backup-ok is called even though there
was this error?
I attached a little patch that makes box backup to retry this location.
But i dont think that this is a clean way.
--
Ticket URL: <https://www.boxbackup.org/trac/ticket/48#comment:1>
Box Backup <http://www.boxbackup.org/>
An open source, completely automatic on-line backup system for UNIX.