This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Rsync setup question

Synchronize files & directories to/from XigmaNAS with minimal data transfer.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
juddyjacob
Starter
Starter
Posts: 48
Joined: 07 Sep 2012 03:01
Location: Leonardo New Jersey
Contact:
Status: Offline

Rsync setup question

Post by juddyjacob »

I have two Nas4free servers, they are at seperate locations and connected via vpn tunels. I want one server to basicly sync everything to the other. Is this something i should be using rsync for?
x64-full on Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz : Supermicro X10SRL-F : 130926MiB ECC Ram: 8x4TB RZ2 : 19TB Usable

nicolap8
Starter
Starter
Posts: 74
Joined: 26 Jun 2012 01:02
Status: Offline

Re: Rsync setup question

Post by nicolap8 »

You have 2 machine:
- RSync SERVER: who receive and store the data
- RSync CLIENT: who send the data
In the RSync page there is a "Client" tab that permit you to configure the "Client" function.
Here consider also the "Direction" option.

User avatar
juddyjacob
Starter
Starter
Posts: 48
Joined: 07 Sep 2012 03:01
Location: Leonardo New Jersey
Contact:
Status: Offline

Re: Rsync setup question SSH?

Post by juddyjacob »

I have two servers that replicate with RSync Now, anyone have any experience setting rsync up through SSH?
x64-full on Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz : Supermicro X10SRL-F : 130926MiB ECC Ram: 8x4TB RZ2 : 19TB Usable

nicolap8
Starter
Starter
Posts: 74
Joined: 26 Jun 2012 01:02
Status: Offline

Re: Rsync setup question

Post by nicolap8 »

juddyjacob wrote:I have two servers that replicate with RSync Now, anyone have any experience setting rsync up through SSH?
There are the same two connected via vpn tunnel? In this case you dont need SSH.
Never tried to use SSH "from" the NAS, only from a pc client. I think that you need to configure by hand a script at cron.

User avatar
juddyjacob
Starter
Starter
Posts: 48
Joined: 07 Sep 2012 03:01
Location: Leonardo New Jersey
Contact:
Status: Offline

Re: Rsync setup question

Post by juddyjacob »

Yes, I am aware that anything sent through the tunel will be encrypted, I'm just curious as id like to be able to have the option to sync over sh if i ever need it. Just wondering if anyone has ever set this up before?
x64-full on Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz : Supermicro X10SRL-F : 130926MiB ECC Ram: 8x4TB RZ2 : 19TB Usable

User avatar
lindsay
Forum Moderator
Forum Moderator
Posts: 282
Joined: 23 Jun 2012 09:59
Location: Steinkjer,Norway
Status: Offline

Re: Rsync setup question

Post by lindsay »

Code: Select all

rsync -avz -e ssh remoteuser@remotehost:/remote/dir /this/dir/
You also need to make the keys on each servers though to allow them to communicate without punching the password
Protected by smoothiebox Red,Green,
Purple,Orange Zones/VLAN`s
Powered by AMD A10-6700T


XigmaNAS Box-1 11.2.0.4 - Omnius (revision 6625)
Platform : x64-embedded on 2X Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
Motherboard: ASUS Z10PA-D8, 2xSocket-2011-3
SATA Controllers : 1X Avago Technologies (LSI) SAS2008 and 1x Avago Technologies (LSI) SAS2308
Pool 1 (Media-Pool) 8X4TB in raidz2
Pool 2 (Media-Pool-2) 4X2TB in raidz2 and 2X2TB in mirror mirror and 2X3TB in mirror
Pool 3 (Media-Pool-3) 2X2TB in mirror and 2X4TB in mirror and 2X1TB in mirror

supercazzola
Starter
Starter
Posts: 29
Joined: 30 Dec 2012 05:54
Status: Offline

Re: Rsync setup question

Post by supercazzola »

do both machines need to have the ssh to connect to the other using keys, or just one (for example, from the destination to the source)?

al562
Advanced User
Advanced User
Posts: 210
Joined: 12 Dec 2012 08:02
Location: New Jersey, U.S.A.
Contact:
Status: Offline

Re: Rsync setup question

Post by al562 »

juddyjacob wrote:Just wondering if anyone has ever set this up before?
Yes indeed, lots of people.
supercazzola wrote:do both machines need to have the ssh to connect to the other using keys, or just one
Since they are both servers they already have ssh. One creates key, the other uses key for passwordless authentication. There are good HOWTO's in the forum and in the SUG on wiki with step by step instructions how to do this. There is a learning curve, but once you understand the processes involved it's really easy.

Regards,
Al

piwwo
Starter
Starter
Posts: 27
Joined: 21 Mar 2013 15:30
Status: Offline

Re: Rsync setup question

Post by piwwo »

Hello I would like that too
The wiki article is useless on that
http://wiki.nas4free.org/doku.php?id=do ... rver_rsync
It tells me how to set up passwordless ssh (I already know that) and what commandline I have to use
But i dont want to use commandline as I want to stay with the GUI and not touch the core system (because of updates and config backups).

How do I do that via GUI, why does the rsync client not have a ssh option like freenas has?
http://doc.freenas.org/index.php/Rsync_Tasks

I am using openvpn too, what secures the connection over the internet, however from openvpn-router to nas everything is unencrypted, that enables anyone on a lan thats not trustworthy to read the rsynced data. Therefore I need ssh for this last step.

Thanks for help.

Post Reply

Return to “RSYNC”