backup
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| backup [2011/11/01 10:10] – EtqCBTssTa 67.64.45.90 | backup [2021/02/01 05:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Thanks alot - your answer soveld | + | ====== Making a 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-backup. Check for /opt and /srv . | ||
| + | |||
| + | ===== Using netcat (nc) ===== | ||
| + | |||
| + | ==== Making a backup ==== | ||
| + | |||
| + | * In client: | ||
| + | |||
| + | cat / | ||
| + | |||
| + | * In server: | ||
| + | |||
| + | nc -l -p port | tar -xzf backup_file.tar.gz | ||
| + | |||
| + | |||
| + | ==== Restoring the backup ==== | ||
| + | |||
| + | * In client: | ||
| + | |||
| + | nc -l -p 6666 | zcat > / | ||
| + | |||
| + | * In server: | ||
| + | |||
| + | nc -q 1 ip_client_machine 6666< imagefile.img.gz | ||
| + | |||
| + | |||
| + | ====== Procedure to recover from your backup ====== | ||
| + | |||
| + | ===== apache ===== | ||
| + | |||
| + | * Install apache2. Configure normal. | ||
| + | * Install files for dokuwiki, homes and wordpress in / | ||
| + | * Make the corresponding symlinks to sites-enable | ||
| + | * Recover sites-available/ | ||
| + | |||
| + | ===== dokuwiki ===== | ||
| + | |||
| + | * Install dokuwiki from debian | ||
| + | * Recover | ||
| + | * Recover / | ||
| + | * Recover the plugins to / | ||
| + | |||
| + | ===== Wordpress ===== | ||
| + | |||
| + | * Install wordpress normally | ||
| + | * Recover the themes and plugins into / | ||
| + | * Recover config-blog.memelabs.net.php file to / | ||
| + | |||
| + | ===== 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 a 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 / | ||
| + | * Restore from the backup / | ||
| + | * Restart mysql-server twice (second time, you should not get an error) | ||
backup.1320142207.txt.gz · Last modified: 2021/02/01 05:55 (external edit)
