Difference between revisions of "Anarchopedia:Technic"

From Anarchopedia
Jump to: navigation, search
m
m (MySQL dumps)
Line 27: Line 27:
 
*Database dumps for ita can be found at http://ita.anarchopedia.org/dev/db/.
 
*Database dumps for ita can be found at http://ita.anarchopedia.org/dev/db/.
 
*Database dumps for spa can be found at http://spa.anarchopedia.org/dev/db/.
 
*Database dumps for spa can be found at http://spa.anarchopedia.org/dev/db/.
*Database dumps for srp can be found at http://srp.anarchopedia.org/dev/db/.
 

Revision as of 11:21, 16 May 2006


MySQL dumps

Database dumps are produced by script:

 #!/usr/bin/perl -w
 use POSIX qw(strftime);
 $date = strftime "%Y%m%d%H%M", gmtime;
 print "mysqldump --opt -uusername -ppassword anarchopedia cur old > anarchopedia-".$date.".sql\n";
 print "bzip2 anarchopedia-".$date.".sql\n";
 print "mv anarchopedia-".$date.".sql.bz2 /srv/www/virtual/org.anarchopedia/htdocs/db/\n";
 print "chmod a+r /srv/www/virtual/org.anarchopedia/htdocs/db/anarchopedia-".$date.".sql.bz2\n";


Crontab job:

 0  1    * * *   root    /srv/system/bin/ap-mysqldump.pl | sh

(MySQL dumps are generating every day at 01:00 CDT.)