GithubHelp home page GithubHelp logo

merge / remote2local Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 35 KB

frictionless backup for a large, changing, remote directory tree via ssh

License: GNU General Public License v3.0

Shell 83.07% Makefile 16.93%
rsync backup-script ssh

remote2local's Introduction

rsync backup solution

This is an rsync-based backup solution for a large, remote directory tree.

features

  • history is preserved: incremental (daily) backups (using hardlinks)
  • fast over slow connections (compression; recognize moved files at the remote source)
  • robust error handling (interrupted connection or user errors)

how to install

download a release tarball

tar -xf <tarball>
sudo make install

how to use

remote2local.sh -c <configfile> [-q] [-r <nr_of_retries>]
	-c	path to config file, see example for the settings
	-q	quiet. print less
	-r	number of retries until remote is reachable. 0 for inifitely
	-v	only open a VNC session to the source machine
	-h	print this help text

how to uninstall

download a release tarball

tar -xf <tarball>
sudo make uninstall

requirements

  • remote source: ssh server, rsync
  • local destination: ssh client, rsync

optional

  • remote source: tor, x11vnc
  • local destination: tor, vncviewer (xtightvncviewer)

offtopic

ssh server behind any NAT

tor hidded service at source

  • install tor; set torrc for port 22
  • mkdir /var/lib/tor/ssh; chmod 700
  • chown debian-tor
  • restart and get the hostname
  • set sshd without password, ...
  • include own key.pub in authorized_keys

client

have tor installed and ssh configured:

Host <remote>
	User
	IdentityFile
	HostName xyz.onion
	proxyCommand ncat --proxy 127.0.0.1:9050 --proxy-type socks5 %h %p

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.