Re: [Bacula-users] Runafterjob issue

2012-10-04 Thread Wouter van Marle
Related issues I just ran into improving my script. The RunAfterJob now reads (one line): RunAfterJob = "/bin/sh -c \"echo '/usr/local/bin/glacier-cmd --logtostdout upload Squirrel_backup %v \\\"%j (%l, since %s)\\\" ' | batch\"" Which results in these messages (two lines): > 04-Oct 21:43 acor

Re: [Bacula-users] Runafterjob issue

2012-10-04 Thread Wouter van Marle
That works, thanks for the quick reply! Would be nice to have this mentioned in the docs, if it's there I totally missed it. Writing a real script is of course easy, it's just messy and harder to see what's going on if I revisit this which may be years from now. Wouter. > To not mess with writi

Re: [Bacula-users] Runafterjob issue

2012-10-04 Thread Konstantin Khomoutov
On Thu, Oct 04, 2012 at 12:38:44PM +0800, Wouter van Marle wrote: [...] > RunAfterJob = "echo '/usr/local/bin/glacier-cmd --logtostdout upload > Squirrel_backup %v' | batch" > > Running this command (replacing the %v with an actual file name of > course) from the command line works fine. The proc

[Bacula-users] Runafterjob issue

2012-10-03 Thread Wouter van Marle
Hi all, I'm trying to launch a runafterjob script to upload my just created archive to another server. As this can take long - a day or so, and other backup jobs are to be run (I have three jobs: two backup jobs of separate parts of the system plus the database backup), I intend to do this uploa