Re: [Bacula-users] Some issues while trying to setup bacula environment
Op vrijdag 14 oktober 2005 20:18, schreef Phil Stracchino: I don't fully get the naming.. Should i manually give all 8 tapes a name, and then add them through bconsole with the same names? But the naming i want them to have is dynamic ( Label Format = Test-$Day$Month$Year ), so it'll nag again that i don't have the correct named tape present, and to insert it... :$ There is no mechanism for automatically deleting and relabelling tapes. I suggest just naming all your tapes once, numerically, and using them in rotation. If you need to restore something, Bacula will tell you which tape it needs anyway; the whole point of an automated backup system with a catalog database is that it keeps track of things like this for you. Oh, that explains a lot of my worries :d Is there a way to script this? Like when somebody inserts a tape, and then starts a shellscript that asks for the name, and labels it for him? Secondly, is it better to have 1 big pool of 7 tapes, each with a Test-$Day$Month$Year kind of label?, or per dag 1 tape, with correct label ofcourse? Will bacula automatically unload the current tape if it has a different label, and load the correct one if it's in the same pool? I mean, will it know like ah, tape 2 is currently loaded, but it has a label of Test-12102005, but i need Test-14102005, which is in slot 5, let's load this one instead to do the backup. ? :d Maybe anybody has experience in making it not-really-technical-tape-changer-people-proof? :d Thanks a lot for the help so far :d Kind regards, Bart Verwilst --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Some issues while trying to setup bacula environment
Bart Verwilst wrote: Greetings! I'm trying to setup a Bacula to back up a remote server. I'm going to try and explain my current setup and ultimate goal ;) Now, how do i proceed to automate the tape naming and such? When i created a volume on bconsole with the add command, then tried to run a backup, it nagged that the tape had the wrong label, and to insert a tape with another name.. But it should just automatically overwrite the existing ones.. :$ I don't fully get the naming.. Should i manually give all 8 tapes a name, and then add them through bconsole with the same names? But the naming i want them to have is dynamic ( Label Format = Test-$Day$Month$Year ), so it'll nag again that i don't have the correct named tape present, and to insert it... :$ There is no mechanism for automatically deleting and relabelling tapes. I suggest just naming all your tapes once, numerically, and using them in rotation. If you need to restore something, Bacula will tell you which tape it needs anyway; the whole point of an automated backup system with a catalog database is that it keeps track of things like this for you. -- Phil Stracchino [EMAIL PROTECTED] Renaissance Man, Unix generalist, Perl hacker Mobile: 603-216-7037 Landline: 603-886-3518 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Some issues while trying to setup bacula environment
Op vrijdag 14 oktober 2005 20:18, schreef Phil Stracchino: I don't fully get the naming.. Should i manually give all 8 tapes a name, and then add them through bconsole with the same names? But the naming i want them to have is dynamic ( Label Format = Test-$Day$Month$Year ), so it'll nag again that i don't have the correct named tape present, and to insert it... :$ There is no mechanism for automatically deleting and relabelling tapes. I suggest just naming all your tapes once, numerically, and using them in rotation. If you need to restore something, Bacula will tell you which tape it needs anyway; the whole point of an automated backup system with a catalog database is that it keeps track of things like this for you. Oh, that explains a lot of my worries :d Is there a way to script this? Like when somebody inserts a tape, and then starts a shellscript that asks for the name, and labels it for him? Secondly, is it better to have 1 big pool of 7 tapes, each with a Test-$Day$Month$Year kind of label?, or per dag 1 tape, with correct label ofcourse? Will bacula automatically unload the current tape if it has a different label, and load the correct one if it's in the same pool? I mean, will it know like ah, tape 2 is currently loaded, but it has a label of Test-12102005, but i need Test-14102005, which is in slot 5, let's load this one instead to do the backup. ? :d Maybe anybody has experience in making it not-really-technical-tape-changer-people-proof? :d Thanks a lot for the help so far :d BTW sorry for using the wrong email address to post to this list a couple of times :$ Kind regards, Bart Verwilst --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Some issues while trying to setup bacula environment
Hello, On 14.10.2005 15:34, Bart Verwilst wrote: Greetings! I'm trying to setup a Bacula to back up a remote server. I'm going to try and explain my current setup and ultimate goal ;) What i have now: * 1 tapedrive, Dell, with LTO-2 tapes, that works perfectly on my server. * 1 backup server, Ubuntu 5.10 * Bacula 1.36.3 * 8 LTO-2 tapes in the drive * My config files, which are attached. * 1 tape is loaded and present ( otherwise i get I/O errors ;) ) ... which indicates a problem if it's really an eror and only an informational message. What the eventual outcome should be: * Daily (Full) backup from monday to sunday, each day on a new tape. * On sunday, the tape should be ejected after the backup for off-site storage, and a new one will be placed in the device, which should become the new sunday-tape. * Picking up the ejected tape, and inserting a new one, should be the only manual tasks ( if possible ) Please take a moment to look at my included config files now.. Nah, I didn't do that... sorry. But I think I can give you some advice. Here are some output pieces to show the 'virgin status of the system. Bacula etc ]# btape -c /etc/bacula/bacula-sd.conf TapeStorage Tape block granularity is 1024 bytes. btape: butil.c:258 Using device: TapeStorage for writing. btape: btape.c:335 open_dev /dev/nst0 OK *label Enter Volume Name: Tape1 Wrote Volume label for volume Tape1. Don't forget to remove that label again. And, of course, this doesn't show us a lot about the status of your system. Have you run the tests suggested in the manual? Bacula etc ]# bconsole Connecting to Director Bacula:9101 1000 OK: Bacula-dir Version: 1.36.3 (22 April 2005) Enter a period to cancel a command. *list media Using default Catalog name=MyCatalog DB=bacula Pool: Default No results to list. Pool: MondayPool No results to list. Pool: TuesdayPool No results to list. Pool: WednesdayPool No results to list. Pool: ThursdayPool No results to list. Pool: FridayPool No results to list. Pool: SaturdayPool No results to list. Pool: SundayPool No results to list. *list jobs No results to list. *status all Bacula-dir Version: 1.36.3 (22 April 2005) i486-pc-linux-gnu debian testing/unstable Daemon started 14-Oct-05 14:34, 0 Jobs run since started. Scheduled Jobs: Level Type Pri Scheduled Name Volume === Full Backup10 14-Oct-05 22:00TestFridayBackup *unknown* Running Jobs: No Jobs running. Device status: Archive FileStorage is not open or does not exist. Archive TapeStorage is not open or does not exist. Hmm, no clients defined? How did you get a job scheduled? Now, how do i proceed to automate the tape naming and such? When i created a volume on bconsole with the add command, then tried to run a backup, it nagged that the tape had the wrong label, Re-read the manual. Add doesn't label a tape. and to insert a tape with another name.. But it should just automatically overwrite the existing ones.. :$ Again, the fine manual - Bacula doesn't overwrite labeled tapes. I don't fully get the naming.. Should i manually give all 8 tapes a name, and then add them through bconsole with the same names? But the naming i want them to have is dynamic ( Label Format = Test-$Day$Month$Year ), so it'll nag again that i don't have the correct named tape present, and to insert it... :$ If I understand your setup, you will only need to label tapes in one pool automatically. The other ones, for the weekdays, will always keep their names. Note that in your situation I would not use automatic labeling. Two reasons: You need to label a tape only when you swap tapes, i.e. you have to go to the backup host anyway (or log into it). You have to unmount the tape, remove it, insert a new one, and mount that one. Then you could also issue the label command manually. Reason number two: Automatic tape labeling is definitely too complicated to setup (in my opinion). The LabelFormat alone... and doing tape labeling automatically will, as far as I know, only work with barcodes, and you will hardly have barcodes with your desired format... What I would - perhaps - do to make tape management easier: Create a script that ejects the used sunday tape and informs bacula of this. Run this script after the sunday backup. Create another script that looks for a new tape, and lets bacula label it. If it can't find a new tape, send a reminder to the operator. If the new tape for the week has already been labeled, do nothing. Let this script run as a cronjob monday to friday. Thursday and Friday, send the reminder to the operators superior, too :-) Thanks a lot for clearing this out for me :$ I hope this helps. Arno Thanks in advance! Kind regards, Bart Verwilst # # Bacula
Re: [Bacula-users] Some issues while trying to setup bacula environment
Bart Verwilst wrote: Op vrijdag 14 oktober 2005 20:18, schreef Phil Stracchino: I don't fully get the naming.. Should i manually give all 8 tapes a name, and then add them through bconsole with the same names? But the naming i want them to have is dynamic ( Label Format = Test-$Day$Month$Year ), so it'll nag again that i don't have the correct named tape present, and to insert it... :$ There is no mechanism for automatically deleting and relabelling tapes. I suggest just naming all your tapes once, numerically, and using them in rotation. If you need to restore something, Bacula will tell you which tape it needs anyway; the whole point of an automated backup system with a catalog database is that it keeps track of things like this for you. Oh, that explains a lot of my worries :d Is there a way to script this? Like when somebody inserts a tape, and then starts a shellscript that asks for the name, and labels it for him? Um, no, you're still thinking in terms or relabelling your tapes every time you use them. You CAN do this, but there's no point and it's wasteful. Secondly, is it better to have 1 big pool of 7 tapes, each with a Test-$Day$Month$Year kind of label?, or per dag 1 tape, with correct label ofcourse? Uh, there isn't really a difference in what you've said. All your tapes need to be in a Pool. However, rather than trying to keep them labelled with the date you intend to use them on, try just labelling them in order and let Bacula cycle through them. Otherwise you'll be relabelling tapes every day for basically no reason. Will bacula automatically unload the current tape if it has a different label, and load the correct one if it's in the same pool? I mean, will it know like ah, tape 2 is currently loaded, but it has a label of Test-12102005, but i need Test-14102005, which is in slot 5, let's load this one instead to do the backup. ? :d With an autochanger, yes, it will automatically unload the loaded tape if necessary, and load the first appendable tape in the correct pool for that job. -- Phil Stracchino [EMAIL PROTECTED] Renaissance Man, Unix generalist, Perl hacker Mobile: 603-216-7037 Landline: 603-886-3518 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users