[Box Backup] Re: Bug#479145: boxbackup-client: Complaints about «file of unknown type» (socket)

Reinhard Tartler boxbackup@fluffy.co.uk
Tue, 20 May 2008 11:42:09 +0200


(please keep the CC line intact)

Tollef Fog Heen <tfheen@err.no> writes:
> Hi,
>
> it seems like boxbackup-client doesn't know how to ignore sockets and
> so I get lines in daemon log like:
>
> May  2 23:07:44 xoog Box Backup (bbackupd)[3512]: WARNING: Ignoring file =
of unknown type: /var/run/postgresql/.s.PGSQL.5432
> May  2 23:07:44 xoog Box Backup (bbackupd)[3512]: WARNING: Ignoring file =
of unknown type: /var/run/postgresql/.s.PGSQL.5433
>
> This causes boxbackup-client to send email about «files not being
> backed up», which is quite annoying.

Indeed. I had a closer look at the source code, and I think the relevant
part of the code is in BackupDaemon::NotifyUnsupportedFileType:

        virtual void NotifyUnsupportedFileType(
                const BackupClientDirectoryRecord* pDirRecord,
                const std::string& rLocalPath)
        {
                BOX_WARNING("Ignoring file of unknown type: " << rLocalPath);
        }

Now, as a workaround, you could of course add an explicit ignore in your
boxbackup configuration to work around this issue. I'm not sure if this
is the 'correct' way to solve this problem. TBH, I'd rather expect
boxbackup to 'more or less' silently ignore this. I'm therefore inclined
to change that line of code from BOX_WARNING to BOX_INFO.

What do the boxbackup developers think of this?


-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4