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/09/06 17:53] 138.246.2.47backup [2021/02/01 05:55] (current) – external edit 127.0.0.1
Line 8: Line 8:
 ===== Using netcat (nc) ===== ===== Using netcat (nc) =====
  
-==== Restoring the backup ====+==== Making a backup ==== 
 + 
 +  * In client: 
 + 
 +  cat /dev/yourharddrive | nc server_ip server_port
  
   * In server:   * In server:
  
-  nc -l -p 6666< imagefile.img.gz+  nc -l -p port | tar -xzf backup_file.tar.gz 
 + 
 + 
 +==== Restoring the backup ====
  
   * In client:   * In client:
  
-  nc ip_server 6666 | gunzip --> /dev/your_harddrive+  nc --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 47: 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.1283795587.txt.gz · Last modified: 2021/02/01 05:55 (external edit)