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
backup [2010/04/06 17:54] 131.159.18.41backup [2021/02/01 05:55] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Making a backup ====== ====== Making a backup ======
 +
 +===== Tips =====
  
   * Everytime that a configuration file is edited, make a symlink to it from a configuration backup directory.    * 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 .    * 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 33: 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.1270576486.txt.gz · Last modified: 2021/02/01 05:55 (external edit)