Score:1

rsync between two windows server in different vlan via an ubuntu

bi flag

I was asked to sync two folders in two windows servers which are in two different vlans . and for the sake of security these servers should not ping each other but an ubuntu machine can be in both vlans . I want to know is there a way to sync a those two folders with rsync ? or any other possible solution ?

Raffa avatar
jp flag
If the Ubuntu box has two NICs then connect each one directly to a switch port configured as an access port to one VLAN and connect the other to another access port to the other VLAN and configure normally … But, if one NIC then connect it to a switch port configured as trunk and follow https://wiki.ubuntu.com/vlan
Raffa avatar
jp flag
Your issue is with networking and not rsync
Score:0
hu flag

Yes there is a way. But it's not clear to me exactly what are you asking for? For different ways to do this ?

Can you clarify in your question:

  • Can each windows server rsync to the linux machine?
  • Can the linux machine rsync from/to each windows server?

Simplest solution I think: in a cron job on linux server

  1. rsync from windows server 1 to local folder
  2. rsync from local folder to windows server 2
  3. rsync from windows server 2 to local folder
  4. rsync from local folder to windows server 1

Note on rsync args to use. Good default: rsync -avz # -a archive mode, -v verbosity, -z compression RTFM is good also ;) https://linux.die.net/man/1/rsync

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.