Line 550: |
Line 550: |
| | | |
| rsync -av /var/affa/prodserv/daily.0/$RDIR 10.204.48.1:$RDIR | | rsync -av /var/affa/prodserv/daily.0/$RDIR 10.204.48.1:$RDIR |
| + | |
| + | </li>If the servers are configured to use a different ssh port eg 2222, then instead do: |
| + | |
| + | export RDIR=/home/e-smith/users/briedlin/Maildir/.orders/ |
| + | rsync -av -e 'ssh -p 2222' /var/affa/prodserv/daily.0/$RDIR 10.204.48.1:$RDIR |
| </li></ol> | | </li></ol> |
| + | |
| | | |
| <b>Example 2:</b> A user has deleted the file orderform.pdf from ibay 'docs' and asks you to restore it. | | <b>Example 2:</b> A user has deleted the file orderform.pdf from ibay 'docs' and asks you to restore it. |
Line 558: |
Line 564: |
| export RFILE=/home/e-smith/files/ibays/docs/files/orderform.pdf | | export RFILE=/home/e-smith/files/ibays/docs/files/orderform.pdf |
| rsync -av /var/affa/prodserv/weekly.1/$RFILE 10.204.48.1:$RFILE | | rsync -av /var/affa/prodserv/weekly.1/$RFILE 10.204.48.1:$RFILE |
| + | |
| + | </li>If the servers are configured to use a different ssh port eg 2222, then instead do: |
| + | |
| + | export RFILE=/home/e-smith/files/ibays/docs/files/orderform.pdf |
| + | rsync -av -e 'ssh -p 2222' /var/affa/prodserv/weekly.1/$RFILE 10.204.48.1:$RFILE |
| </li></ol> | | </li></ol> |
| + | |
| | | |
| '''Example 3:''' Restoring a file with special characters in the path | | '''Example 3:''' Restoring a file with special characters in the path |
Line 565: |
Line 577: |
| Quote the source and destination path. In the destination path escape blank characters with a double backslash and brackets with a single backslash. | | Quote the source and destination path. In the destination path escape blank characters with a double backslash and brackets with a single backslash. |
| rsync -av "/var/affa/fileshare/daily.4/home/e-smith/files/ibays/mechfiles/files/Valve Control (Design Gr)/VALVE LIST FOR ISSUED.xls" "192.168.1.7:/home/e-smith/files/ibays/mechfiles/files/Valve\\ Control\\ \(Design\\ Gr\)/VALVE\\ LIST\\ FOR\\ ISSUED.xls" | | rsync -av "/var/affa/fileshare/daily.4/home/e-smith/files/ibays/mechfiles/files/Valve Control (Design Gr)/VALVE LIST FOR ISSUED.xls" "192.168.1.7:/home/e-smith/files/ibays/mechfiles/files/Valve\\ Control\\ \(Design\\ Gr\)/VALVE\\ LIST\\ FOR\\ ISSUED.xls" |
| + | |
| + | If the servers are configured to use a different ssh port eg 2222, then instead do: |
| + | |
| + | rsync -av -e 'ssh -p 2222' "/var/affa/fileshare/daily.4/home/e-smith/files/ibays/mechfiles/files/Valve Control (Design Gr)/VALVE LIST FOR ISSUED.xls" "192.168.1.7:/home/e-smith/files/ibays/mechfiles/files/Valve\\ Control\\ \(Design\\ Gr\)/VALVE\\ LIST\\ FOR\\ ISSUED.xls" |
| | | |
| ==== Full restore ==== | | ==== Full restore ==== |