Link to home
Start Free TrialLog in
Avatar of KarlSolid
KarlSolid

asked on

Need a solution to sync a folder between two domains with out building a trust

I am looking for a Client/host solution to sync files between two domain file servers on different domains. Due to security I can not create a one-way trust, which would be the simplest for me. But I CAN use a client/host solution for the sync. Any suggestions?
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

You have to have logon information of both domains with a user that has access to both the source and destination folders

net use z: \\domainb.local\share  password /user:domainb.local\username

then you can use whatever tools you want i.e. robocopy / richcopy / xcopy to sync the folders.
Avatar of KarlSolid
KarlSolid

ASKER

No , That will not work. These are seperate domains not on the same lan, they are physically seperate. So net use is nota n option
VPN between the two systems a viable option? will use net use.

What options do you have? you could sync data to an external resource.

Depending on the quantity of documents, how often changes occur.
Then you're left with ftp, email, shared location i.e. azure/amazon s3/dropbox/sharefile, or sneakernet
You could use a Robo-FTP script installed to run as a Windows Service on one side and an FTP server on the other side.  The script would just call the SYNC command in a loop.  The script might look something like this:
:begin 
FTPLOGON "ftp.othersite.net" /user="UserID" /pw="secret" 
SYNC "d:\data\shared\folder\root" "/shared" /subdirs /allowerrors 
FTPLOGOFF 
PAUSE /for=60   ;; sleep for 60 seconds
GOTO begin

Open in new window

In that example I assumed that the server side has a folder or virtual folder named "shared" that is synchronized with the client folder d:\data\shared\folder\root so obviously you would need to change those to match reality.... also the server address and login credentials.  You could use the /type option with the FTPLOGON command if server supports a secure protocol like SFTP or FTPS instead of plain FTP.
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes a full sync will automatically replace deletions.  If one side is definitely the master copy then the sync could delete orphans on the other side.