Bacula-users

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

2008-08-13 09:02:33
Subject: Re: [Bacula-users] ad-hoc full backup
From: "Weber, Philip" <Philip.Weber AT egg DOT com>
To: <bacula-users AT lists.sourceforge DOT net>
Date: Wed, 13 Aug 2008 14:02:05 +0100
Or add something like "Run = Full Aug 13 at 18:00" to the schedule definition 
and reload the config?

-----Original Message-----
From: bacula-users-bounces AT lists.sourceforge DOT net 
[mailto:bacula-users-bounces AT lists.sourceforge DOT net] On Behalf Of Arno 
Lehmann
Sent: 13 August 2008 11:32
To: bacula-users AT lists.sourceforge DOT net
Subject: Re: [Bacula-users] ad-hoc full backup

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
-----------------------------------------
Egg is a trading name of the Egg group of companies which includes:
Egg Financial Intermediation Ltd (reg no 3828289) and Egg Banking
plc (reg no 2999842). Egg Banking plc and Egg Financial
Intermediation Ltd are authorised and regulated by the Financial
Services Authority (FSA) and are entered in the FSA register under
numbers 205621 and 309551 respectively. These members of the Egg
group are registered in England and Wales. Registered office:
Citigroup Centre, Canada Square, London E14 5LB.

This e-mail is confidential and for use by the addressee only. If
you are not the intended recipient of this e-mail and have received
it in error, please return the message to the sender by replying to
it and then delete it from your mailbox. Internet e-mails are not
necessarily secure. The Egg group of companies do not accept
responsibility for changes made to this message after it was sent.

Whilst all reasonable care has been taken to avoid the transmission
of viruses, it is the responsibility of the recipient to ensure
that the onward transmission, opening or use of this message and
any attachments will not adversely affect its systems or data. No
responsibility is accepted by the Egg group of companies in this
regard and the recipient should carry out such virus and other
checks as it considers appropriate. 

This communication does not create or modify any contract.


-------------------------------------------------------------------------
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>