Alan writes:
> I'd just like to make two feature requests:
> 1. I have manually configured BackupPC to wake machines up using
> "wakeonlan". It would be fantastic if the ability to call wakeonlan
> was indeed built into BackupPC. The ideal situation would be to: try
> and ping machine, if ping fails send magic packet and wait X seconds
> before trying to ping the machine again. Even better, would be if
> BackupPC could remember if the machine was woken up and optionally run
> a user specifiable script on the client machine at the end of backup
> (e.g. to send the machine back to sleep if it was woken up to perform
> the backup).
You could implement this by setting $Conf{PingCmd} to point to a
custom script that does what you require: ping, if it fails call
wakeonlan, wait, and ping again. The only requirement is that
the script's output should look like the output from the final
(successful) ping, or it should exit with a non-zero status if
the final ping fails.
To put a macine back to sleep you can use $Conf{DumpPostUserCmd}.
Your $Conf{PingCmd} script could generate a status file (eg: touch
a file called .../wakeup/HOST) and then the $Conf{DumpPostUserCmd}
script could put just those machines back to sleep (you'll need to
handle the case the wakeup file is old - maybe check the timestamp).
> 2. It would be fantastic if when browsing backups, there was an option
> to run "du" on a branch of the backup to list the size of sub-
> directories in the backup. Naturally this would need to be done ad-hoc
> due to the cost of running du.
The drawback here is the potentially large running time. If you use
mod_perl, then one entire hpptd process is busy for that time.
It's possible in a future version that each directory's full size could
be stored in the attrib file, allowing an immediate display of the tree
size.
Craig
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/
|