Difference between revisions of "Backups over the internet with rsync"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
m
 
(5 intermediate revisions by one user not shown)
Line 1: Line 1:
[[Category:LSPro]]
+
{{Articles|LSPro}}
 
+
 
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 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), but there are ways of setting up windows gui rsync.
+
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 [http://www.cis.upenn.edu/~bcpierce/unison/ Unison File Syncronizer] and [http://support.svi.nl/wiki/RsyncOnWindows RsyncOnWindows].
  
 
Outline:<br />
 
Outline:<br />
 
*Setup dynamic ip updater service
 
*Setup dynamic ip updater service
*Setup port forwarding in the router
 
 
*Setup rsync or rsync over ssh
 
*Setup rsync or rsync over ssh
 
<br />
 
<br />
more to come
+
more to come (work in progress :-)
 +
 
 +
=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 [http://www.dyndns.com/ 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: <pre>#aptitude install ddclient</pre>
 +
 
 +
This will complete the installation
 +
 
 +
=====Configuring ddclient=====
 +
 
 +
If you want to reconfigure you seetings use the following command
 +
 
 +
<pre>#dpkg-reconfigure ddclient</pre>
 +
 
 +
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
 +
 
 +
<pre>#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</pre>
 +
 
 +
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
 +
 
 +
<pre>use=web</pre>
 +
 
 +
or
 +
 
 +
<pre>use=web, web=checkip.dyndns.org/, web-skip=’IP Address’</pre>
 +
 
 +
Save and exit the file
 +
 
 +
Restart ddclient service using the following command
 +
 
 +
<pre>#/etc/init.d/ddclient restart</pre>
 +
 
 +
 
 +
=Setting up Rsync=
 +
 
 +
more to do...  sleep now

Latest revision as of 05:05, 7 September 2008

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