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
public:computers:rsync_backup [29/01/26 14:02 GMT] – [Rsync Script] johnpublic:computers:rsync_backup [29/01/26 15:22 GMT] (current) – [Rsync Laptop Backup] john
Line 2: Line 2:
  
  
-====== Rsync Laptop Backup ======+====== Laptop Backup via rsync ======
  
 ** A simple way to keep a backup of my laptop Home directory ** ** A simple way to keep a backup of my laptop Home directory **
Line 8: Line 8:
 ===== Backup hosts ===== ===== Backup hosts =====
  
-  * A NAS box on my home LAN : nas1 +**where to put the backups for safe keeping ** 
-  * An old Lenovo Laptop acting as a LAN file server : laptop + 
-  * My cloud VPS server : g4slv.info+  * A NAS box on my home LAN : ''nas1'' 
 +  * An old Lenovo Laptop acting as a LAN file server : ''laptop'' 
 +  * My cloud VPS server : ''g4slv.info''
  
 ===== Rsync Script ===== ===== Rsync Script =====
Line 58: Line 60:
 yadd_full* yadd_full*
 eSIM* eSIM*
 +bin/dokuwiki/*
  
 </code> </code>
Line 117: Line 120:
  
 </code> </code>
 +
 +
 +==== Dokuwiki Mirror/Backup ====
 +
 +I have a script to pull a copy of the dokuwiki files from the VPS and put them in ''/var/www/html/*'' on my laptop. The laptop runs ''apache2'' and can server the wiki itself. This mirror can be backed up through the above script to the other backup hosts ''nas1'' and ''laptop''
 +
 +<code bash>
 +#!/bin/bash
 +
 +rsync -av -e "ssh -p xxxx" --progress  xxxx@g4slv.info:/var/www/html/dokuwiki/ dokuwiki/
 +
 +sudo rsync -av dokuwiki/ /var/www/html/dokuwiki/
 +
 +sudo chown -R www-data:www-data /var/www/html/dokuwiki
 +
 +</code>
 +
 +
 --- //John Pumford-Green 29/01/26 13:48 GMT// --- //John Pumford-Green 29/01/26 13:48 GMT//
  
Line 123: Line 144:
  
  
-{{tag>}}+{{tag>computer backup}}
  
  

Navigation