Bacula-users

[Bacula-users] modifying file paths on the fly for restore job

2010-02-09 08:27:09
Subject: [Bacula-users] modifying file paths on the fly for restore job
From: Özgür <hinoglu AT gmail DOT com>
To: Bacula-users AT lists.sourceforge DOT net
Date: Tue, 9 Feb 2010 16:24:49 +0200
Hi,

 is the definition o restore job i use for restoring the backed up files 
using webacula interface. 

Job {
    Name = "Restore"
    SpoolData = yes
    Type = Restore
    Client = restore
    Storage = File
    Where = "/tmp/restores/job-%j/"
    Pool = "Krt Pool"
    Messages = Standard
    FileSet = "Dummy Set"
}


I'm trying to modify the webacula interface according to following scenario:
- user starts a restore job for specific data via webacula
- restore job restores the data to /tmp/restores/job-jobid/
- python script that runs on job completion, packs the /tmp/restores/job-jobid 
as filename.tar.gz
and moves it to a directory where web server can access 
- user downloads the filename.tar.gz from web interface 

http://www.bacula.org/en/dev-manual/Python_Scripting.html doesn't provide much 
information about scripting,
and it seems that dynamic naming for restore path(where=) is not possible.

If it's  possible, how can i provide dynamic paths for restore jobs? 
Any other suggestions are also welcomed :)

thanks.





------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
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>
  • [Bacula-users] modifying file paths on the fly for restore job, Özgür <=