Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/guides/backup/rsync_ssh.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ The only other options that we need to specify in this example is:
* -e, specify the remote shell to use
* --delete, which says if the target directory has a file in it that doesn't exist on the source, get rid of it

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:
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:

`vi /usr/local/sbin/rsync_dirs`

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

## Testing

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:
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:

```
#!/bin/bash
Expand Down Expand Up @@ -103,7 +103,7 @@ Run the script again:

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

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

`touch /home/your_user/a_different_file.txt`

Expand Down Expand Up @@ -148,11 +148,11 @@ This will pull up the cron, which may look something like this:
#
# m h dom mon dow command
```
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:
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:

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

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:
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:

`Shift : wq!`

Expand Down