Skip to content

Commit 78167e3

Browse files
authored
Update rsync_ssh.md (#1062)
* Update rsync_ssh.md * correct source.domain.com * remove useless word (hundred) * 24-hour clock * Update rsync_ssh.md
1 parent 2fb5438 commit 78167e3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/guides/backup/rsync_ssh.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The only other options that we need to specify in this example is:
5858
* -e, specify the remote shell to use
5959
* --delete, which says if the target directory has a file in it that doesn't exist on the source, get rid of it
6060

61-
Next, we need to set up a script by creating a file for it. (Again, use your favorite editor if you are not familiar with vi.) To create the file, just use this command:
61+
Next, we need to set up a script by creating a file for it (again, use your favorite editor if you are not familiar with vi). To create the file, just use this command:
6262

6363
`vi /usr/local/sbin/rsync_dirs`
6464

@@ -68,7 +68,7 @@ And then make it executable:
6868

6969
## Testing
7070

71-
Now, scripting makes it super simple and safe so that you can test it fearlessly. Please note that the URL used below is "Soure.domain.com". Replace it with the domain or IP address of your own source computer, both will work. Also remember that in this example, the script is created on the "target" computer, because the file is pulled from the source computer:
71+
Now, scripting makes it super simple and safe so that you can test it fearlessly. Please note that the URL used below is "source.domain.com". Replace it with the domain or IP address of your own source computer, both will work. Also remember that in this example, the script is created on the "target" computer, because the file is pulled from the source computer:
7272

7373
```
7474
#!/bin/bash
@@ -103,7 +103,7 @@ Run the script again:
103103

104104
Verify that the file no longer exists on the target computer.
105105

106-
Finally, let's create a file on the target machine that doesn't exist on the source. So on the target:
106+
Finally, let's create a file on the target machine that doesn't exist on the source. So, on the target:
107107

108108
`touch /home/your_user/a_different_file.txt`
109109

@@ -148,11 +148,11 @@ This will pull up the cron, which may look something like this:
148148
#
149149
# m h dom mon dow command
150150
```
151-
The cron is set up on a 24 hour clock, so what we will need for our entry at the bottom of this file is:
151+
The cron is set up on a 24-hour clock, so what we will need for our entry at the bottom of this file is:
152152

153153
`00 23 * * * /usr/local/sbin/rsync_dirs`
154154

155-
What this says is to run this command at 00 minutes, 23 hundred hours, every day, every month, and every day of the week. Save your cron entry with:
155+
What this says is to run this command at 00 minute, 23 h, every day, every month, and every day of the week. Save your cron entry with:
156156

157157
`Shift : wq!`
158158

0 commit comments

Comments
 (0)