PDA

View Full Version : bandwidth generated by rsync to show in DA



PBilodeau
01-10-2009, 12:44 PM
Hello,

As an extra service, I am providing an online backup solution to some of my clients, using rsync through ssh to copy their most critical files to my server.

Althought rsync generates logs with the detailed bandwidth file by file, this bandwidth is not accounted for in DA. This is as expected. The question is: If I manage to get a summary of the bandwidth used by the RSYNC jobs (I use an rsync daemon, so it's all at the same place), is there an easy way to incorporate this bandwidth in DA's logs?

Something like this would be enough: echo 'bandwidth=123456&user=username' >> /usr/local/directadmin/somefile

If could also be a matter of editing a disk file, I don't mind, as long as there is a way.

Thanks in advance.

floyd
01-11-2009, 05:05 AM
You could include some php code in the skin to read your log.

PBilodeau
01-11-2009, 05:23 AM
You could include some php code in the skin to read your log.

I'm not a PHP programmer but I can probably figure something out... Where should I look? What file should I modify?

Thanks!

floyd
01-11-2009, 05:32 AM
Search this forum, the knowledgebase, and the versions system for skins and how to run php code in skins.