User Tools

Site Tools


how_do_i_back-up_to_nas

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
how_do_i_back-up_to_nas [2016/04/28 10:48]
keith created
how_do_i_back-up_to_nas [2016/04/28 11:33]
keith
Line 1: Line 1:
-How to Back-up to NAS+=== How to Back-up to NAS ===
  
  
 rsync from local to remote (push): rsync from local to remote (push):
  
-1. To sync /storage from local vortexbox to remote vortexbox: Code+1. To sync /storage from local vortexbox to remote vortexbox:​ 
 +<​code>​
 rsync -av /storage/ root@<​remote-vortexbox-ip>:/​storage rsync -av /storage/ root@<​remote-vortexbox-ip>:/​storage
 +</​code>​
 rsync will prompt you for the root password on the remote machine before doing the transfer. rsync will prompt you for the root password on the remote machine before doing the transfer.
 This does not delete files on the remote machine that are not on the local machine. This does not delete files on the remote machine that are not on the local machine.
  
-2. To make the remote /storage a mirror copy of the local /storage: Code+2. To make the remote /storage a mirror copy of the local /storage: 
 +<​code>​
 rsync -av --delete /storage/ root@<​remote-vortexbox-ip>:/​storage rsync -av --delete /storage/ root@<​remote-vortexbox-ip>:/​storage
-3. To not overwrite existing files on the remote ​/storage: Code:+</code>
  
 +3. To not overwrite existing files on the remote /storage:
 +<​code>​
 rsync -av --ignore-existing /storage/ root@<​remote-vortexbox-ip>:/​storage rsync -av --ignore-existing /storage/ root@<​remote-vortexbox-ip>:/​storage
 +</​code>​
 rsync from remote to local (pull): rsync from remote to local (pull):
  
-4. To sync /storage from remote vortexbox to local vortexbox: Code+4. To sync /storage from remote vortexbox to local vortexbox:​ 
 +<​code>​
 rsync -av root@<​remote-vortexbox-ip>:/​storage/​ /storage rsync -av root@<​remote-vortexbox-ip>:/​storage/​ /storage
-5. To make the local /storage a mirror copy of the remote /storage: Code:+</code>
  
 +5. To make the local /storage a mirror copy of the remote /storage:
 +<​code>​
 rsync -av --delete root@<​remote-vortexbox-ip>:/​storage/​ /storage rsync -av --delete root@<​remote-vortexbox-ip>:/​storage/​ /storage
-6. To not overwrite existing files on the local /storage: Code:+</code>
  
 +6. To not overwrite existing files on the local /storage:
 +<​code>​
 rsync -av --ignore-existing root@<​remote-vortexbox-ip>:/​storage/​ /storage rsync -av --ignore-existing root@<​remote-vortexbox-ip>:/​storage/​ /storage
 +</​code>​
 rsync with dry-run: rsync with dry-run:
  
-7. It's a good idea to try these commands using the "​dry-run"​ option first, which shows what would be done without actually modifying any files: Code+7. It's a good idea to try these commands using the "​dry-run"​ option first, which shows what would be done without actually modifying any files: 
 +<​code>​
 rsync --dry-run -av .... rsync --dry-run -av ....
 +</​code>​
 Once the dry-run looks good, then rerun without the "​--dry-run"​ option to do the actual transfer. Once the dry-run looks good, then rerun without the "​--dry-run"​ option to do the actual transfer.
  
how_do_i_back-up_to_nas.txt · Last modified: 2016/04/28 11:34 by keith