From dc3768c1de25812f829a596883b18563da4c865f Mon Sep 17 00:00:00 2001 From: el3ctr0lyte <69082962+el3ctr0lyte@users.noreply.github.com> Date: Thu, 1 Jul 2021 17:47:20 +0200 Subject: Basic rsync tutorial --- rsync.html | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 rsync.html (limited to 'rsync.html') diff --git a/rsync.html b/rsync.html new file mode 100644 index 0000000..7480b18 --- /dev/null +++ b/rsync.html @@ -0,0 +1,35 @@ + + + + Mirror your site over tor + + + + + + + + +

Using rsync for website and servers

+ +
+

So you have a website and you have ssh setup on your server. Rsync is a way of uploading and downloading files to and from your server. Here is how.

+

Installing rsync

+

Run the following on your server and on your local machine.

+
apt install rsync
+

Uploading files with rsync

+

From your local machine you can upload files to your server like this:

+
rsync -avz /path/to/file landchad.net:/path/on/the/server
+

You will be prompted to enter a password. By default it will use the username that you are logged in with on you local machine. To use a different user, do this:

+
rsync -avz /path/to/file username@landchad.net:/path/on/the/server
+

Downloading file with rsync

+

Basically like downloading, you just swap the last two arguments, like this:

+
rsync -avz landchad.net:/path/to/file /path/to/file
+

Again, with a different username on you server:

+
rsync -avz username@landchad.net:/path/to/file /path/to/file
+

Contribution

+

el3ctr0lyte: github, XMR: 86DBJdiG83ZDea6kJgsbVN5tMae5ScfuhJ3PihEMTHatCrGEw2gctyUB92V2fz4R4YhwRaQeAGL5M4gPRXvVvtkULJi4ayk

+
+ + + -- cgit v1.2.3 From a3a04a496f59b65fbd78ce58fcaee4165e1bb88b Mon Sep 17 00:00:00 2001 From: el3ctr0lyte <69082962+el3ctr0lyte@users.noreply.github.com> Date: Thu, 1 Jul 2021 17:51:37 +0200 Subject: Fixed a mistake --- rsync.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rsync.html') diff --git a/rsync.html b/rsync.html index 7480b18..dc9defb 100644 --- a/rsync.html +++ b/rsync.html @@ -1,7 +1,7 @@ - Mirror your site over tor + Using rsync for your website or server -- cgit v1.2.3 From 8d4177c694b51c72f76c7bf39bc52f2b7bbd8769 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 3 Jul 2021 08:59:22 -0400 Subject: rsync fixes --- index.html | 4 ++-- rss.xml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ rsync.html | 50 +++++++++++++++++++++++++++++++++++--------------- 3 files changed, 86 insertions(+), 17 deletions(-) (limited to 'rsync.html') diff --git a/index.html b/index.html index b6a2dc8..4a3dce4 100644 --- a/index.html +++ b/index.html @@ -47,7 +47,8 @@

Excellent Extras