User Tools

Site Tools


backup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
backup [2011/11/01 14:58] – tCXfMghKoetnfgvSf 204.83.243.107backup [2011/11/08 22:02] – old revision restored memeruiz
Line 1: Line 1:
-bsZw8q  <href="http://zyxejuovvodh.com/">zyxejuovvodh</a>+====== Making backup ====== 
 + 
 +===== Tips ===== 
 + 
 +  * Everytime that a configuration file is edited, make a symlink to it from a configuration backup directory.  
 +  * Backup the configuration backup directory, your homes, /usr/local, /var, using rdiff-backupCheck for /opt and /srv .  
 + 
 +===== Using netcat (nc) ===== 
 +==== Restoring the backup ==== 
 + 
 +  * In client: 
 + 
 +  nc -l -p 6666 | zcat /dev/your_harddrive 
 + 
 +  * In server: 
 + 
 +  nc -q 1 ip_client_machine 6666imagefile.img.gz 
 + 
 + 
 +====== Procedure to recover from your backup ====== 
 + 
 +===== apache ===== 
 + 
 +  * Install apache2. Configure normal. 
 +  * Install files for dokuwiki, homes and wordpress in /etc/apache2/sites-available 
 +  * Make the corresponding symlinks to sites-enable 
 +  * Recover sites-available/default file 
 + 
 +===== dokuwiki ===== 
 + 
 +  * Install dokuwiki from debian 
 +  * Recover all /var/lib/dokuwiki/ back 
 +  * Recover /etc/dokuwiki/local.php and users.auth.php or something like this. 
 +  * Recover the plugins to /usr/share/dokuwiki/lib/plugins  . Just copy them there. (It's really only necessary to install translation2 plugin. Which doesn't need any other special configuration.  
 + 
 +===== Wordpress ===== 
 + 
 +  * Install wordpress normally 
 +  * Recover the themes and plugins into /usr/share/wordpress/wp-content/ 
 +  * Recover config-blog.memelabs.net.php file to /etc/wordpress/ 
 + 
 +===== MySQL ===== 
 +  
 +  * Use the same root password during debian installation than the one from old database 
 +  * Stop mysql-server  
 +  * Restore mysql original complete database. For some reason if I only restore wordpress database I get Error establishing a database connection error. Also, if I restore from mysql client I still get inconsistency errors in the database. I had to recover the whole /var/lib/mysql directory 
 +  * Restore from the backup /etc/mysql/debian.cnf 
 +  * Restart mysql-server twice (second time, you should not get an error)
backup.txt · Last modified: 2021/02/01 05:55 by 127.0.0.1