From: Neil S. <sir...@us...> - 2003-06-13 14:09:47
|
CVSROOT : /cvsroot/publicdnsadmin Module : publicdnsadmin Commit time: 2003-06-13 14:09:38 UTC Modified files: dbbackup.php docs/CHANGELOG docs/INSTALL Log message: Author: SiRVu|caN Log message: Fixed formatting issue on dbbackup page. Added documentation for the dbbackup setup into INSTALL, i will improve the way it works later. Fixed path for .gz backup download link. ---------------------- diff included ---------------------- Index: publicdnsadmin/dbbackup.php diff -u publicdnsadmin/dbbackup.php:1.1.1.1 publicdnsadmin/dbbackup.php:1.2 --- publicdnsadmin/dbbackup.php:1.1.1.1 Wed Apr 16 00:19:03 2003 +++ publicdnsadmin/dbbackup.php Fri Jun 13 07:09:27 2003 @@ -11,17 +11,16 @@ */ require("lib/prepend.php"); include("lib/header.php"); - +echo "<Br>"; if (userHasAccess($_SESSION["_UID"], "users")) { $date = date("mdy-hia"); -$dbname = "lbdns"; -$filename = "/usr/local/powerdnsadmin/data/lbdns-$date.sql"; +$filename = "/path/to/publicdnsadmin/data/lbdns-$date.sql"; $dbhost = "127.0.0.1"; -$dbuser = "root"; -$dbpass = ""; -$dbname = "pdns"; +$dbuser = "dbuser"; +$dbpass = "dbpass"; +$dbname = "dbname"; passthru("mysqldump --opt -h$dbhost -u$dbuser $dbname >$filename"); $zipline = "gzip ".$filename.""; @@ -30,10 +29,11 @@ $filename2 = $filename.".gz"; $filesmall = "lbdns-$date.sql.gz"; -echo "<a href=\"/data/".$filesmall."\">Download Backup ($date)</a>"; +echo "<a href=\"data/".$filesmall."\">Download Backup ($date)</a>"; } else { displayNoAccess(); } +echo "<br><br>"; include("lib/footer.php"); ?> Index: publicdnsadmin/docs/CHANGELOG diff -u publicdnsadmin/docs/CHANGELOG:1.2 publicdnsadmin/docs/CHANGELOG:1.3 --- publicdnsadmin/docs/CHANGELOG:1.2 Fri Jun 13 06:39:19 2003 +++ publicdnsadmin/docs/CHANGELOG Fri Jun 13 07:09:28 2003 @@ -4,5 +4,9 @@ SiRVu|caN <sir...@si...> - 24/5/2003 - Fixed PRIO-bug. SiRVu|caN <sir...@si...> - 13/6/2003 - CSS HTML link color fix. SiRVu|caN <sir...@si...> - 13/6/2003 - Allow the use of $DOMAIN in content field of template records. -SiRVu|caN <sir...@si...> - 13/6/2003 - Users with granted access of other domains can now create/edit - records in them. + - Users with granted access of other domains can now create/edit + records in them. +SiRVu|caN <sir...@si...> - 14/6/2003 - Fixed formatting issue on dbbackup page. + - Added documentation for the dbbackup setup into INSTALL, i + will improve the way it works later. + - Fixed path for .gz backup download link. Index: publicdnsadmin/docs/INSTALL diff -u publicdnsadmin/docs/INSTALL:1.1.1.1 publicdnsadmin/docs/INSTALL:1.2 --- publicdnsadmin/docs/INSTALL:1.1.1.1 Wed Apr 16 00:19:07 2003 +++ publicdnsadmin/docs/INSTALL Fri Jun 13 07:09:28 2003 @@ -16,3 +16,12 @@ PowerDNS, you must add some tables for Public DNS Administration to work properly. The required structure data can be found in mysql.sql and postgresql.sql in the same directory as this INSTALL-file. + + Edit dbbackup.php in the Public DNS Administrator root dir, change thse values: + + $filename = "/path/to/publicdnsadmin/data/lbdns-$date.sql"; + $dbhost = "dbhost"; + $dbuser = "dbuser"; + $dbpass = "dbpass"; + $dbname = "dbname"; + ----------------------- End of diff ----------------------- |