Hello, Thanks for your answer.
Let me explain the situation. My english is not native (and maybe you have alreday noticed that) so please excuse me. Currently I'am using bacula with multi-catalog, multi-client, multi-storage setup. Bacula is configured to have dedicated: storage/catalog/volume set/file set.... for every client. I am using only Files as a media. Also I'm adding or deleting clients very often (when that's needed). The problem I'm facing is that sometime bacula decides to change the order of StorageId's (maybe after client deletion or something else ..I'm not very sure) and when this happens my new Backup jobs, are writing the new StorageId in the client_catalog->Media table. When this happens and bacula change the StorageId for a storage resource, if I try to restore a job which is older (before the storageID change), then bacula get's my OLD StorageID from catalog->Media table (which contains job history) then searches the id in catalog->Storage table(where nothing has changed) and tries to find a volume in that Storage which of course is unsuccessfull because that ID doesn't belong anymore to this client/storage resource/ and bacula gets wrong Storage + missing Volume. In that case, my only choice is to manually update all StorageID's in table Media(on all client catalogs) seting them to the new StorageID, because that way I will be able to make a restore job from all of the jobs (including older ones). I tried to manually edit the values in Storage table for a custom client and then run another backup job, but it seems that Bacula doesn't get the ID from this table and also I couldn't find any SQL queries related to this, so I decided that bacula uses some different mechanism to calculate the StorageIDs for the Stroage resources. That was the reason I asked for information about the way Bacula gets/calculates StorageID's for a storage resources. You mention "update slots", can you clarify what exactly this command does ? (truncate / re-insert all Storage tables of all catalogs or ..? ) Regards ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ Bacula-devel mailing list Bacula-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel