[Bacula-users] Laptop backup
This sounds interesting, maybe i can do a mixed solution with the script for triggering the job with this additional parameters. Thank you all ganiuszka wrote: > marco zanca: > > > > > terryc wrote: > > > > > manually -> bconsole -> run -> choose appropriate job -> check parametrs > > > -> yes > > > > > > > > > > > > Ok, but what if i can't be present all the time and do it manually? > > I need a way to automate this. It is possible to modify the number of > > retry? > > > > Hi, > > These three directives can be useful for your issue: > > Reschedule On Error > Reschedule Interval > Reschedule Times > > All these directives are define for the job resource. More information > you can find in Bacula documentation: > > http://bacula.org/5.0.x-manuals/en/main/main/Configuring_Director.html#SECTION00173 > > gani > > -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ___ > Bacula-users mailing list > Bacula-users < at > lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users +-- |This was sent by marco.za...@gmail.com via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Fatal error: backup.c:892 Network send error to SD. ERR=Connection reset by peer
On 04/16/2010 08:30 AM, Matija Nalis wrote: > On Mon, Apr 12, 2010 at 03:59:49PM -0500, Jon Schewe wrote: > >> On 4/12/10 9:40 AM, Matija Nalis wrote: >> >>> It is especially problem with bigger databases and MySQL instead of >>> PostgreSQL, see http://bugs.bacula.org/view.php?id=1472, where it can >>> take even several hours! (note that while it talks about "restore" >>> speed, it is also related to accurate backups which employ similar >>> SQL queries) >>> >>> >> Must be what it is then. I've been thinking about switching to postgres, >> but haven't because the opensuse packages for bacula are only for mysql. >> This may motivate me more. >> > You should probably switch soon, before you get to like your > database,,, Exporting bacula mysql tables for import in PostgreSQL > can be very painful and problematic; it is much better to just drop > the database and create fresh one. > > I'll keep that in mind as I go forward. >> The backup finished, so it seems that in version 3.0.3 bacula does NOT >> set the socket option SO_KEEPALIVE. >> > Hmm, yeah, I've check the code casually, and it indeed looks like the > heartbeats are not setting SO_KEEPALIVE timeouts (note that it does > set SO_KEEPALIVE on the socket, otherwise the advice above wouldn't > work -- it just doesn't do TCP_KEEPIDLE on that[1] to specify > user-defined timeouts and instead uses system defaults). > > The heartbeats look like are doing other things though (application-level, > not socket-level), but as you saw they are not perfect for fixing network > idleness problems - and so you also MUST set system defaults. > > I've updated the FAQ at: > http://wiki.bacula.org/doku.php?id=faq#my_backup_starts_but_dies_after_a_while_with_connection_reset_by_peer_error > > > [1] It actually tries that at one point in src/lib/bsock.c if > TCP_KEEPIDLE support is detected, but it fails to detect it > properly because is not included. > > However, even after fixing that (and missing semicolon in > 'int opt = heart_beat' line), it still doesn't look like it sets > TCP_KEEPIDLE correctly on FD->SD connection, so maybe this > codepath is not used there. > > Anyway I gave up debugging there and just set the system > defaults. But I just though I'd mention that in case someone > else wants to continue chasing the bug. > > Hmm, this sounds like a bug that should be fixed and once it is fixed may remove a bunch of problems with firewalls. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Laptop backup
marco zanca: > > terryc wrote: >> manually -> bconsole -> run -> choose appropriate job -> check parametrs >> -> yes >> > > > Ok, but what if i can't be present all the time and do it manually? > I need a way to automate this. It is possible to modify the number of retry? Hi, These three directives can be useful for your issue: Reschedule On Error Reschedule Interval Reschedule Times All these directives are define for the job resource. More information you can find in Bacula documentation: http://bacula.org/5.0.x-manuals/en/main/main/Configuring_Director.html#SECTION00173 gani -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] bconsole command for media info
Lamp Zy pisze: > Hi, > > In bacula-5.0.1 if I run the bconsole command: >"llist media pool=FullTapes" > I'll get the extended information for all tapes in the pool. > > Is there a command that will give me the same information bit only for > tapes I specifically ask for (like mediaid=4 or volumelabel=...) Hi, For volume name you can use command: llist media=medianame where medianame is a volume name. gani -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Laptop backup
You are right, ping is an active polling method, and probably not the best tool for the job. It would probably work if you only have a few laptops. If you want to back up many of them, I agree that it may cause too much ICMP traffic. Also, you would need a mechanism to detect that a backup has already started or has run within the last 24 hours. A better approach is probably some kind of passive mechanism. For instance, if you are in a domain, you could create a startup or logon script that creates a "flag" file somewhere on your server. Then create a Linux script that checks if that file has been created. If it has been created, kick of bacula and delete the flag file. Now all you have to do is call this script from your crontab every 15 minutes or so. There are variations of this approach. You could use fam instead of polling from a crontab. Or you could give your client computers permission to access bconsole and kick off the backup from within a startup script (note: if you use a logon script, you have to give the USER account permission. If you use a startup script, you have to give the COMPUTER account permission to use bconsole). > -Original Message- > From: marco zanca [mailto:bacula-fo...@backupcentral.com] > Sent: Sunday, April 18, 2010 3:45 AM > To: bacula-users@lists.sourceforge.net > Subject: [Bacula-users] Laptop backup > > > What about a script that ping the specific ip or name (e.g. 192.168.1.2 > or client1.work) and then, when the first ping response, start the > backup with the command bconsole etc? > I think this could work, but i'm not happy with this solution. Too much > overhead maybe? And potentially too much ICMP packets around. > And what if the laptop disconnects? If the job is started i think i end > up with a huge error. > > I'm start to think that bacula isn't supposed to be used in such > enviroment. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Laptop backup
What about a script that ping the specific ip or name (e.g. 192.168.1.2 or client1.work) and then, when the first ping response, start the backup with the command bconsole etc? I think this could work, but i'm not happy with this solution. Too much overhead maybe? And potentially too much ICMP packets around. And what if the laptop disconnects? If the job is started i think i end up with a huge error. I'm start to think that bacula isn't supposed to be used in such enviroment. +-- |This was sent by marco.za...@gmail.com via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Laptop backup
You can indeed script bacula, although it's a bit awkward: simply pipe the commands and all the input data into bconsole via stdin. If you have access to your DHCP server, you could use a lease renewal to trigger the backup (keep in mind that the lease will likely be renewed well before the laptop is fully booted). > -Original Message- > From: marco zanca [mailto:bacula-fo...@backupcentral.com] > Sent: Sunday, April 18, 2010 1:00 AM > To: bacula-users@lists.sourceforge.net > Subject: [Bacula-users] Laptop backup > > > > terryc wrote: > > > > manually -> bconsole -> run -> choose appropriate job -> check > parametrs > > -> yes > > > > > Ok, but what if i can't be present all the time and do it manually? > I need a way to automate this. It is possible to modify the number of > retry? > It is possible to run a job with a bash script? > > Regards > Marco Zancanaro > > +-- > |This was sent by marco.za...@gmail.com via Backup Central. > |Forward SPAM to ab...@backupcentral.com. > +-- > > > > --- > --- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Laptop backup
terryc wrote: > > manually -> bconsole -> run -> choose appropriate job -> check parametrs > -> yes > Ok, but what if i can't be present all the time and do it manually? I need a way to automate this. It is possible to modify the number of retry? It is possible to run a job with a bash script? Regards Marco Zancanaro +-- |This was sent by marco.za...@gmail.com via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users