| 1 |
.... backup.pl ,.... |
| 2 |
|
| 3 |
Date: Thu, 17 Jul 1997 14:31:32 +0200 |
| 4 |
From: Emanuele Leonardi <[email protected]> |
| 5 |
To: [email protected] |
| 6 |
|
| 7 |
It wakes up at 23:54 every night and copies all the current daily gifs |
| 8 |
for the given list of routers to a directory named with the current date |
| 9 |
(e.g. 970717). The Perl code is extremely straightforward so there |
| 10 |
should be no problem in understanding it. |
| 11 |
|
| 12 |
The cron entry I use is: |
| 13 |
54 23 * * * /usr/local/lib/mrtg-2.2/backup.pl 1>> |
| 14 |
/usr/local/lib/mrtg-2.2/backup.log 2>&1 |
| 15 |
|
| 16 |
I'll be very happy to discuss any possible improvement or modification. |
| 17 |
|
| 18 |
Ciao |
| 19 |
|
| 20 |
Emanuele |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
... mrtg.archiver.pl ..... |
| 25 |
|
| 26 |
From: Rawlin Blake <[email protected]> |
| 27 |
To: [email protected], [email protected], Emanuele Leonardi <[email protected]> |
| 28 |
Date: Mon, 4 Jan 1999 15:05:38 -0800 (PST) |
| 29 |
Subject: mrtg-archiver |
| 30 |
|
| 31 |
|
| 32 |
I have made some revisions to mrtg-archiver for use at my site. In the |
| 33 |
hopes that those changes will help others, I have appended my version. |
| 34 |
|
| 35 |
Changes include: |
| 36 |
Weekly archiving of week gifs, monthly archiving of month gifs, yearly |
| 37 |
archiving of year gifs. |
| 38 |
Specification of which interfaces you want summary files saved for. |
| 39 |
Terse error messages. (I happen to prefer shorter messages, to each their |
| 40 |
own :-) ) |
| 41 |
Creation of the archive directory if it doesn't exist. |
| 42 |
Symlinking of the mrtg gifs instead of copying (I have limited disk space) |
| 43 |
|
| 44 |
|
| 45 |
--------- |
| 46 |
[email protected] http://www.nevada.edu/~blake |
| 47 |
|
| 48 |
How far would Moses have gone if he had taken a poll in Egypt? What would |
| 49 |
Jesus Christ have preached if he had taken a poll in the land of Israel? |
| 50 |
What would have happened to the Reformation if Martin Luther had taken a |
| 51 |
poll? It isn't polls or public opinion of the moment that counts. It is |
| 52 |
right and wrong and leadership. |
| 53 |
-- USA President Harry S Truman |
| 54 |
========================================================================== |