BackupPC-users

Re: [BackupPC-users] Backup# in DumpPostUserCmd

2012-01-30 13:05:21
Subject: Re: [BackupPC-users] Backup# in DumpPostUserCmd
From: Dan Johansson <Dan.Johansson AT dmj DOT nu>
To: backuppc-users AT lists.sourceforge DOT net
Date: Mon, 30 Jan 2012 19:03:06 +0100
On Monday 30 January 2012 11.13:04 Flako wrote:
> 2012/1/29 Dan Johansson <Dan.Johansson AT dmj DOT nu>:
> > Hi,
> > 
> > Is it possible to get the Backup# in the DumpPostUserCmd?
> > I have tried with $backup and $backupnumber but none work.
> > I also have tried to get the last Backup# from the backups file, but
> > this file is written _after_  is DumpPostUserCmd finished.
> > 
> > Any suggestions?
> > 
> > --
> > Dan Johansson, <http://www.dmj.nu>
> > ***************************************************
> > This message is printed on 100% recycled electrons!
> > ***************************************************
> 
> mm variable, do not know ..
> but could pass as parameter $ HostIP and within the script as / data /
> bacupPC / pc / $ HostIP and retrieve that data.
> 

Thanks for your tip, but I took an other approach - I split my script into two 
parts where part one is called in DumpPostUserCmd which does some basic checks 
and just ads the Client-name ($client) to a queue file. The second script is 
called on a regular basis from cron and it reads the queue file. Now I can get 
the last backup# from the backups file.

Regards,
-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>