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
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:34] (current)
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/ [email protected]<​remote-vortexbox-ip>:/​storage rsync -av /storage/ [email protected]<​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/ [email protected]<​remote-vortexbox-ip>:/​storage rsync -av --delete /storage/ [email protected]<​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/ [email protected]<​remote-vortexbox-ip>:/​storage rsync -av --ignore-existing /storage/ [email protected]<​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 [email protected]<​remote-vortexbox-ip>:/​storage/​ /storage rsync -av [email protected]<​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 [email protected]<​remote-vortexbox-ip>:/​storage/​ /storage rsync -av --delete [email protected]<​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 [email protected]<​remote-vortexbox-ip>:/​storage/​ /storage rsync -av --ignore-existing [email protected]<​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.1461854934.txt.gz · Last modified: 2016/04/28 10:48 by keith