I was experimenting with Blueonyx the other day and found that I could use rsync over the internet with no problem. Remembering that BO has alias directories I made sure I created sites using the web GUI then I used rsync to simply move the data from the primary server to a secondary server at a different location. (Handy!)
1. Make sure you do these operations as root. Make a new user (unpriviledged) on the primary server and give that user read access to the files you wish to duplicate on the secondary server.
#useradd -d /home/anewuser -m -s /bin/bash anewuser -This will creeate anewuser with a profile directory of home/anewuser – create a password by entering #passwd anewuser
2. To test rsunc funtionality you have a couple more things to do.
-if the servers are connected through a LAN then nothing extra is necessary. If the servers have a firewall between them, such as across the internet, then you must open port 22 to allow ssh.
On the duplicate server, enter this command at a terminal prompt:
#rsync -avz -e ssh firstname.lastname@example.org:/directory_name_of_files/ /duplicate_directory_name/
You should get this (or something like this) for feedback:
The authenticity of host ‘server1.example.com (192.168.0.100)’ can’t be established.RSA key fingerprint is 32:e5:79:8e:5f:5a:25:a9:f1:0d:ef:be:5b:a6:a6:23.Are you sure you want to continue connecting (yes/no)?
3. enter ‘yes’
4. you will then be asked for anewuser’s password. Enter the password you made on the primary server and then you will see files being synced. (provided the connection is working correctly) If you have problems it is because the 2 machines are not talking to each other. Make sure to check your firewall. I have not tried this across different subnets but you should be able to do it provided you setup the correct routes on your router.
If you do not have rsync installed, (ubuntu or debian) you can enter the following command at a terminal prompt to install it:
#apt-get install rsync
Thats about it. Once you have connectivity and rsync works you can move on with more complex settings to automate rsync and duplicate your files. Have fun.