backup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
backup [2011/11/01 14:58] – tCXfMghKoetnfgvSf 204.83.243.107 | backup [2012/02/16 16:33] – memeruiz | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | bsZw8q | + | ====== 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 /dev/yourharddrive | nc server_ip server_port | ||
+ | |||
+ | * 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 /etc/ | ||
+ | * Make the corresponding symlinks to sites-enable | ||
+ | * Recover sites-available/ | ||
+ | |||
+ | ===== dokuwiki ===== | ||
+ | |||
+ | * Install dokuwiki from debian | ||
+ | * Recover all / | ||
+ | * 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.txt · Last modified: 2021/02/01 05:55 by 127.0.0.1