User Tools

Site Tools


backing_up_home_using_rsync

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
backing_up_home_using_rsync [2021/03/16 03:26] – created hc9backing_up_home_using_rsync [2021/03/16 18:08] – [Basic rsync backup.] removed lonestar from sdf path peteyboy
Line 21: Line 21:
 You will be using rsync on a machine to CONNECT TO SDF. What follows is NOT designed to be run from SDF. On the machine you wish to backup your SDF home directory to, issue the following: You will be using rsync on a machine to CONNECT TO SDF. What follows is NOT designed to be run from SDF. On the machine you wish to backup your SDF home directory to, issue the following:
  
-''rsync -avz -e ssh //username//@sdf.lonestar.org:/path/to/home /local/backup/dir''+''rsync -avz -e ssh //username//@sdf.org:/path/to/home /local/backup/dir''
  
 What does this mean? \\ What does this mean? \\
Line 30: Line 30:
   * ''-e'' : specify the shell to be used. This is being used here to rsync over a secure shell connection.   * ''-e'' : specify the shell to be used. This is being used here to rsync over a secure shell connection.
   * //username// : your SDF username.   * //username// : your SDF username.
-  * ''/path/to/home'' [[#caveat01|[1]]] : The path to the directory you wish to backup.+  * ''/path/to/home'' [[#for_example:|[1]]] : The path to the directory you wish to backup.
   * ''/local/backup/dir'' : Where you would like the files to be stored locally.   * ''/local/backup/dir'' : Where you would like the files to be stored locally.
  
Line 45: Line 45:
 Most often, the trailing slash when specifying a directory is optional. To rsync, however, the trailing slash has meaning when specifying the source directory. Omitting the trailing slash cause the entire directory structure of the source files to be recreated on the destination machine. Specifying the trailing slash, however, causes the directory structure only to be recreated from the given directory. Most often, the trailing slash when specifying a directory is optional. To rsync, however, the trailing slash has meaning when specifying the source directory. Omitting the trailing slash cause the entire directory structure of the source files to be recreated on the destination machine. Specifying the trailing slash, however, causes the directory structure only to be recreated from the given directory.
  
-For example:+== For example: ==
  
 ''rsync -avz -e ssh username@sdf.lonestar.org:/path/to/home /local/backup/dir'' ''rsync -avz -e ssh username@sdf.lonestar.org:/path/to/home /local/backup/dir''
backing_up_home_using_rsync.txt · Last modified: 2022/11/30 13:27 by n3t