Rsync

From WL-HDD Wiki

Jump to: navigation, search
WL-HDD Contents
What is the WL-HDD
Features
Pro's/con's
Reviews
Hacking
Inserting the HDD
Hacking Guides
Basic setup guides
Packages guides
Requests
Troubleshooting
This Wiki
Credits
Editing help
Contact Me

[edit] Prerequisites

To complete this guide, the following is assumed:

You are running Oleg's firmware (1.9.2.7-6b or later)
You have harddisk partitions up and running with an extended filesystem mounted to /opt
You have installed the Ipkg package system.
You have configured your partitions to automount.
You have installed OpenSSH and have used SSH to successfully connect to your WL-HDD

[edit] Install

Rsync also depends on the libiconv library so this must also be installed on the WL-HDD

ipkg install libiconv
ipkg install rsync

Now enter the following command when in a SSH or Telnet session:

rsync --help

You should get a list of all the rsync command flags and general instructions on the syntax of the rsync command.

[edit] Using Rsync

In order to use rsync, on your linux box run this command (or similar) in a terminal:

rsync -avz --delete --progress /home/username/ -e ssh admin@192.168.1.2:/opt/home/username

The first path (/home/username/) is the folder on your linux box and the second path (/opt/home/username) is the path on your WL-HDD.

In the above example, the username for the WL-HDD is admin and the IP address of the WL-HDD is 192.168.1.2 - make sure you change these to suit your own setup.

Personal tools