Bacula-users

Re: [Bacula-users] Adding blank files

2009-01-25 23:32:16
Subject: Re: [Bacula-users] Adding blank files
From: Kevin Keane <subscription AT kkeane DOT com>
Date: Sun, 25 Jan 2009 20:29:16 -0800
You could write a script to touch all those files and put them into 
/usr/local/sbin . Something like this:

#!/bin/bash
touch /var/log/messages
touch ....

You may also want to have the same script recreate some other important 
files.

Make sure this script gets backed up. Then all you have to do is 
remember to run it after a full restore. You could even try to put it 
into a Client Run After script but I foresee a few problems with that.

Also, remember that a full restore requires a bit of manual work anyway. 
Simply restoring all the files is likely not going to be enough. There 
is a chapter on disaster recovery in the bacula documentation.

RYAN vAN GINNEKEN wrote:
> Hello does anyone know if bacula can add blank files example 
> /var/log/messages. I would like to do this becuase my log files are quite 
> large and i do not want them backed up each night.  However i would like them 
> to be recreated as an empty file during a full restore so the new system 
> doesnt choke with missing log files 
>   

-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or 
proprietary information. Please be advised that the unauthorized use or 
disclosure of the information is strictly prohibited. The information herein is 
intended only for use by the intended recipient(s) named above. If you have 
received this transmission in error, please notify the sender immediately and 
permanently delete the e-mail and any copies, printouts or attachments thereof.


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>