Bacula-users

Re: [Bacula-users] ad-hoc full backup

2008-08-13 06:32:30
Subject: Re: [Bacula-users] ad-hoc full backup
From: Arno Lehmann <al AT its-lehmann DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 13 Aug 2008 12:32:15 +0200
Hi,

13.08.2008 12:09, Adrian Moisey wrote:
> Hi
> 
>> 13.08.2008 10:38, Silver Salonen wrote:
>>> On Wednesday 13 August 2008 11:33:05 Adrian Moisey wrote:
>>>> Hi
>>>>
>>>>>> How do i set bacula to do a full backup of all the PCs on an ad-hoc 
>>> basis?
>>>>> How is that supposed to work?
>>>> My schedule does a full backup every sunday.
>>>>
>>>> I would like a full backup tonight also, just as a once off.
>>> Aha.
>>>
>>> To my mind you cannot do it. I suggest changing the schedule 
>>> temporarily.
>>
>> How about, in bconsole, 'run job=Name level=full pool=whatever yes'?
> 
> For all 30 jobs?

If this is a one-time event: yes.

If you expect that to happen regularly, I'd use a small script. 
Something I did (but don't have access to now):

echo "sta dir" | bconsole | awk 'script to find all scheduled jobs 
names'  > joblist.txt

or use the list the run command produces

and then

while read jobname ; do
echo "run job=$jobname level=full yes" | bconsole ;
done < joblist.txt

or similar... I always need some trial-and-error for this sort of 
script ;-)

Alternatively, use

for i in `seq 1 maxjob' ; do
echo -e "run\n$i\nyes\n<add changing the level here>" | bconsole ;
done

Arno


-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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>