Bruno Friedmann <[email protected]> writes:
> On lundi, 18 juillet 2016 05.13:44 h CEST Willy_W wrote:
>> I noticed that the bareos spool directory still contains some files, named
>> after servers that don't exist anymore or have been retired. Is it safe to
>> just delete those files or is there anything in the database which might
>> still be referring to such files? They are quite big and it would safe a
>> lot of space if we could get rid of them.
>
> Once a job is done, normally spooling directory should be empty.
> So they are certainly related to failed jobs and so.
>
> Safe to be removed.

on Linux, it is a useful trick that the mtime for /proc/PID is the start
time of the process.  so I do this to clean up spool files which are
left behind after a bareos-sd crash:

  find /srv/bareos/spool -name '*.spool' \! -newer /proc/$(pgrep bareos-sd) 
-delete

this is safe even when there is no bareos-sd running, since the mtime
for /proc itself is the boot time of the server.

-- 
Kjetil T. Homme
Redpill Linpro AS - Changing the game

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to