Backups over the internet with rsync

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 05:05, 7 September 2008 by Ramuk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This set of instructions are intended for running (hopefully secure) backups over the interweb from one location to another with either a telnet-enabled stock linkstation pro/live/tera series, or a debianized LS/TS/kuro.

This guide is related to running NAS to NAS (or really any linux machine) over one lan to another lan through routers, however there are other configurations as well, manipulate as you please. There are ways of setting up windows gui rsync backups as well See Unison File Syncronizer and RsyncOnWindows.

Outline:

  • Setup dynamic ip updater service
  • Setup rsync or rsync over ssh


more to come (work in progress :-)

Contents

Setting up a dynamic IP updater

Stock Buffalo's with buffalonas.com

Visit buffalonas.com and find instructions there :-) (fill in at some point)

Debianized Devices

You can setup 2 NAS's behind routers with dynamic IP's from the ISP with DynDNS or no-ip.

Setup via DynDNS

  • Setup a host at DynDNS.com to one of the dynamic sides of your setup with a dns name and IP address

Perl Based - Install ddclient

As a super-user type:
#aptitude install ddclient

This will complete the installation

Configuring ddclient

If you want to reconfigure you seetings use the following command

#dpkg-reconfigure ddclient

You want to make sure it runs as a service and monitors changes in ppp–something that the install wizard doesn’t cover.

Edit the configuration file /etc/ddclient.conf

#vi /etc/ddclient.conf

# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
pid=/var/run/ddclient.pid
protocol=easydns
use=web
server=members.easydns.com
login=yournamehere
password=’password’
*.your.domain

If you can’t find the public IP address, then you can have ddclient check your public IP address from the web by editing /etc/ddclient.conf and making it use the web by saying

use=web

or

use=web, web=checkip.dyndns.org/, web-skip=’IP Address’

Save and exit the file

Restart ddclient service using the following command

#/etc/init.d/ddclient restart


Setting up Rsync

more to do... sleep now