You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/backup/rsync_ssh.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ The only other options that we need to specify in this example is:
58
58
* -e, specify the remote shell to use
59
59
* --delete, which says if the target directory has a file in it that doesn't exist on the source, get rid of it
60
60
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:
62
62
63
63
`vi /usr/local/sbin/rsync_dirs`
64
64
@@ -68,7 +68,7 @@ And then make it executable:
68
68
69
69
## Testing
70
70
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:
72
72
73
73
```
74
74
#!/bin/bash
@@ -103,7 +103,7 @@ Run the script again:
103
103
104
104
Verify that the file no longer exists on the target computer.
105
105
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:
107
107
108
108
`touch /home/your_user/a_different_file.txt`
109
109
@@ -148,11 +148,11 @@ This will pull up the cron, which may look something like this:
148
148
#
149
149
# m h dom mon dow command
150
150
```
151
-
The cron is set up on a 24hour 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:
152
152
153
153
`00 23 * * * /usr/local/sbin/rsync_dirs`
154
154
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:
0 commit comments