Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| public:computers:rsync_backup [29/01/26 13:56 GMT] – created john | public:computers:rsync_backup [29/01/26 15:22 GMT] (current) – [Rsync Laptop Backup] john | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| - | ====== | + | ====== Laptop Backup |
| ** 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 ===== | ||
| - | | + | **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 | + | |
| + | * An old Lenovo Laptop acting as a LAN file server : '' | ||
| + | * My cloud VPS server : '' | ||
| ===== Rsync Script ===== | ===== Rsync Script ===== | ||
| Line 19: | Line 21: | ||
| To reduce the traffic, and to limit backing up needless data (i.e. don't just backup the whole of $HOME) I have an '' | To reduce the traffic, and to limit backing up needless data (i.e. don't just backup the whole of $HOME) I have an '' | ||
| + | |||
| + | The backups are saved in a remote Directory called " | ||
| + | |||
| + | I also backup a mirror of the wiki to the local NAS and Laptop hosts (as long as I remember to pull a backup/ | ||
| ==== Exclude ==== | ==== Exclude ==== | ||
| Line 54: | Line 60: | ||
| yadd_full* | yadd_full* | ||
| eSIM* | eSIM* | ||
| + | bin/ | ||
| </ | </ | ||
| Line 107: | Line 114: | ||
| if [ $INFO == 1 ] | if [ $INFO == 1 ] | ||
| then | then | ||
| - | rsync -av -e 'ssh -p 2182' --exclude-from=$EXCLUDEFROM $SOURCE $CLOUD: | + | rsync -av -e 'ssh -p xxxx' --exclude-from=$EXCLUDEFROM $SOURCE $CLOUD: |
| else | else | ||
| echo " | echo " | ||
| Line 113: | Line 120: | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ==== Dokuwiki Mirror/ | ||
| + | |||
| + | I have a script to pull a copy of the dokuwiki files from the VPS and put them in ''/ | ||
| + | |||
| + | <code bash> | ||
| + | #!/bin/bash | ||
| + | |||
| + | rsync -av -e "ssh -p xxxx" --progress | ||
| + | |||
| + | sudo rsync -av dokuwiki/ / | ||
| + | |||
| + | sudo chown -R www-data: | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| --- //John Pumford-Green 29/01/26 13:48 GMT// | --- //John Pumford-Green 29/01/26 13:48 GMT// | ||
| Line 119: | Line 144: | ||
| - | {{tag>}} | + | {{tag>computer backup}} |