Re: [BackupPC-users] Jeff, script question (was Re: How to run night manually?)
Robin Lee Powell wrote at about 10:56:23 -0700 on Thursday, September 23, 2010: > > Another question: The script, running with "-c", failed eventually > at this line: > > my $err = $bpc->ServerConnect($Conf{ServerHost}, $Conf{ServerPort}); > > My serverport is set to -1; does it need to be set for this to work? > Could you not just call BackupPC_ServerMesg instead? Perhaps I > should hack my copy locally to do that... > I have it also set to -1 (that is the default value). The line that you are sighting is a pretty stock call and is pretty much independent of the rest of my script. I would suggest just abstracting the relevant lines and trying to call the routine directly to see why you can't connect to the server. -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Jeff, script question (was Re: How to run night manually?)
Another question: The script, running with "-c", failed eventually at this line: my $err = $bpc->ServerConnect($Conf{ServerHost}, $Conf{ServerPort}); My serverport is set to -1; does it need to be set for this to work? Could you not just call BackupPC_ServerMesg instead? Perhaps I should hack my copy locally to do that... -Robin -- http://singinst.org/ : Our last, best hope for a fantastic future. Lojban (http://www.lojban.org/): The language in which "this parrot is dead" is "ti poi spitaki cu morsi", but "this sentence is false" is "na nei". My personal page: http://www.digitalkingdom.org/rlp/ -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Jeff, script question (was Re: How to run night manually?)
On Wed, Sep 22, 2010 at 02:31:29AM -0400, Jeffrey J. Kosowsky wrote: > Honestly, I never really looked into whether it enforces the > constraints you mention above. But looking at the code, it seems > that these constraints are enforced only by the BackupPC main > routine (i.e. daeomon) itself (which then after checking such > constraints uses the same server messaging system to actually call > the BackupPC_nightly routine). Therefore my standalone routine > would NOT enforce such constraints. *Fantastic*. Thank you! That's exactly what I wanted. -Robin -- http://singinst.org/ : Our last, best hope for a fantastic future. Lojban (http://www.lojban.org/): The language in which "this parrot is dead" is "ti poi spitaki cu morsi", but "this sentence is false" is "na nei". My personal page: http://www.digitalkingdom.org/rlp/ -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
[BackupPC-users] Jeff, script question (was Re: How to run night manually?)
Robin Lee Powell wrote at about 12:38:34 -0700 on Tuesday, September 21, 2010: > On Mon, Sep 20, 2010 at 11:08:17AM +0200, Sorin Srbu wrote: > > >-Original Message- From: Robin Lee Powell > > >[mailto:rlpow...@digitalkingdom.org] Sent: Monday, September 20, > > >2010 3:47 AM To: sorin.s...@orgfarm.uu.se; General list for user > > >discussion, questions and support Subject: How to run night > > >manually? > > > > > >On Fri, Sep 17, 2010 at 01:48:55PM +0200, Sorin Srbu wrote: > > >> Wasn't there a gotcha' running the nightly cleanup manually? > > > > > >Was there? I'd very much like to hear about it. > > > > > >What's the right way to do that? > > > > I based my comment on the warning(s) given in the > > http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=How_to_delete_backups > > wiki article. You might find more articles of use to you on > > http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=Special%3ASearch&search=BackupPC_nightly&go=Go. > > Oooh, > http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=BackupPC_FixLinks > looks very nifty! > > My question is (for Jeff, really): when you run nightly via the > server like that, does it respect MaxBackupPCNightlyJobs and > BackupPCNightlyPeriod ? I wanted to force a "do everything, please" > run. > > -Robin > Assuming you are talking to about BackupPC_fixLinks, the script calls a function run_nightly from the library jLib.pm (my set of library routines) that in turn uses the BackupPC server messaging system to run the standard BackupPC_nightly routine. This is the sanctioned, generally safe way to call various BackupPC routines. Honestly, I never really looked into whether it enforces the constraints you mention above. But looking at the code, it seems that these constraints are enforced only by the BackupPC main routine (i.e. daeomon) itself (which then after checking such constraints uses the same server messaging system to actually call the BackupPC_nightly routine). Therefore my standalone routine would NOT enforce such constraints. But that is really what I think you want in most cases. Because if you want BackupPC_nightly to be run as part of the regular BackupPC daemon scheduling conditions then leave out the -c flag that manually triggers BackupPC_nightly to run immediately. If you want to force a run now, then add the -c flag. Hope this clarifies -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
[BackupPC-users] Jeff, script question (was Re: How to run night manually?)
On Mon, Sep 20, 2010 at 11:08:17AM +0200, Sorin Srbu wrote: > >-Original Message- From: Robin Lee Powell > >[mailto:rlpow...@digitalkingdom.org] Sent: Monday, September 20, > >2010 3:47 AM To: sorin.s...@orgfarm.uu.se; General list for user > >discussion, questions and support Subject: How to run night > >manually? > > > >On Fri, Sep 17, 2010 at 01:48:55PM +0200, Sorin Srbu wrote: > >> Wasn't there a gotcha' running the nightly cleanup manually? > > > >Was there? I'd very much like to hear about it. > > > >What's the right way to do that? > > I based my comment on the warning(s) given in the > http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=How_to_delete_backups > wiki article. You might find more articles of use to you on > http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=Special%3ASearch&search=BackupPC_nightly&go=Go. Oooh, http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=BackupPC_FixLinks looks very nifty! My question is (for Jeff, really): when you run nightly via the server like that, does it respect MaxBackupPCNightlyJobs and BackupPCNightlyPeriod ? I wanted to force a "do everything, please" run. -Robin -- http://singinst.org/ : Our last, best hope for a fantastic future. Lojban (http://www.lojban.org/): The language in which "this parrot is dead" is "ti poi spitaki cu morsi", but "this sentence is false" is "na nei". My personal page: http://www.digitalkingdom.org/rlp/ -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/