Difference between revisions of "Anarchopedia:Technic"

From Anarchopedia
Jump to: navigation, search
m
m
Line 21: Line 21:
 
(MySQL dumps are generating every day at 01:00 CDT.)
 
(MySQL dumps are generating every day at 01:00 CDT.)
  
*Database dumps for meta can be found at http://meta.anarchopedia.org/dev/db/.
+
*Database dumps for meta can be found at http://meta.anarchopedia.org/dev/db/. ''(in moment not available)''
 
*Database dumps for deu can be found at http://deu.anarchopedia.org/dev/db/.
 
*Database dumps for deu can be found at http://deu.anarchopedia.org/dev/db/.
*Database dumps for eng can be found at http://eng.anarchopedia.org/dev/db/.
+
*Database dumps for eng can be found at http://eng.anarchopedia.org/dev/db/. ''(in moment not available)''
 
*Database dumps for fra can be found at http://fra.anarchopedia.org/dev/db/.
 
*Database dumps for fra can be found at http://fra.anarchopedia.org/dev/db/.
 
*Database dumps for hrv can be found at http://hrv.anarchopedia.org/dev/db/.
 
*Database dumps for hrv can be found at http://hrv.anarchopedia.org/dev/db/.

Revision as of 11:19, 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.)