User Tools

Site Tools


backup

Differences

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

Link to this comparison view

Next revision
Previous revision
backup [2010/02/16 23:28] – created memeruizbackup [2021/02/01 05:55] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== 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 > /dev/your_harddrive
 +
 +  * In server:
 +
 +  nc -q 1 ip_client_machine 6666< imagefile.img.gz
 +
 +
 ====== Procedure to recover from your backup ====== ====== Procedure to recover from your backup ======
  
Line 28: Line 59:
   * Restore from the backup /etc/mysql/debian.cnf   * Restore from the backup /etc/mysql/debian.cnf
   * Restart mysql-server twice (second time, you should not get an error)   * Restart mysql-server twice (second time, you should not get an error)
- 
- 
- 
backup.1266362887.txt.gz · Last modified: 2021/02/01 05:55 (external edit)