Skip to content

Instantly share code, notes, and snippets.

@Beyarz
Last active November 18, 2019 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Beyarz/bf19177c6d6f49a1bcc0f24d3c606a67 to your computer and use it in GitHub Desktop.
Save Beyarz/bf19177c6d6f49a1bcc0f24d3c606a67 to your computer and use it in GitHub Desktop.
rsync notes

rsync

Config file

vi /etc/rsyncd.conf

Example config

pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsync.log
port = 873

[files]
path = /absolute/path/to/public_folder
comment = RSYNC FILES
read only = true
timeout = 300

Grep rsync

ps x | grep rsync

Start rsync daemon (share files publicly)

rsync --daemon

Access daemon using rsync protocol

rsync rsync://xx.xx.xx.xx/

Kill rsync

kill $(cat /var/run/rsyncd.pid)

Example of rsync from remote to local

rsync -rzP --progress USER@IP:/REMOTE/DIR /LOCAL/DIR


Creds to Jason Mazzota @ atlantic.net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment