Rsync: Difference between revisions
m Category:CLI Applications added, link added |
m →Running a server: use <syntaxhighlight lang="console"> for shell command |
||
| (One intermediate revision by one other user not shown) | |||
| Line 3: | Line 3: | ||
== Running a server == | == Running a server == | ||
Running rsync via SSH is recommended for security reasons. | Running rsync via [[SSH]] is recommended for security reasons. | ||
You can restrict an SSH user to rsync command using {{ic|pkgs.rrsync}}: | You can restrict an SSH user to rsync command using {{ic|pkgs.rrsync}}: | ||
| Line 19: | Line 19: | ||
Now you should be able to backup to your directory with the rsync client: | Now you should be able to backup to your directory with the rsync client: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="console"> | ||
$ rsync -Pav -e "ssh -i $HOME/.ssh/somekeys" photos backup@server: | $ rsync -Pav -e "ssh -i $HOME/.ssh/somekeys" photos backup@server: | ||
</syntaxhighlight> | </syntaxhighlight> | ||