"Phil Stracchino" <ala...@metrocast.net> kirjoitti viestissä news:4b71cf9e.6010...@metrocast.net... > On 02/09/10 15:14, connextis wrote: >> I got Problems to set up the admin job, which closes the last created >> volume in a pool. >> how does the script know which is the last used volume? > > Well, one way would be to have your script issue a list volumes command > to the console, then parse the output to sort by last-written date. > >
Ather way could be adding a run-after-job option to actul backups. This obviously expands to volume name: %v = Volume name (Only on director side) (I don't know what happens when the volume fills up during a job... will %v be the last or the first or whichever volume?) Maybe writing it to a file, and then admin job should close the volume the name of which is in the file? Or even append the volume names to a file, and then make sure that all volumes from that file are closed. ps. The other question there... how to know the last day: run the admin job 1st day of the next month, at 00:01, for example. I would still vote for using different pools for consecutive months. I think it would be more straight-forward, or Bacula-like. But it's up to you to decide... -- TiN ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users