File replication between 2 different domains


Recommended Posts

I was wondering is there a way to achieve file replication between 2 different domains (that have external trust to each other)?

The scenario is this.

2 windows 2000 domain networks with AD

2 file servers resides respectively on domain 1 and domain 2.

domain 1 file server houses some files (800megs worth) that needs to be replicated across to domain 2 file server, off hours of course. Reason is their connection is slow so when the users over there (domain 2) pull files across the network through our share its very slow. the suggestion was to replicate a copy over during off hours so users can run the files internall on their lan.

Is there something on windows 2000 that i can use or do i have to purchase extra software to achieve this?

I was thinking maybe DFS, but i've never used it before so maybe someone can let me know if i am going inthe right direction.

I'm thinking of doing the same thing. I also wanted to use DFS "cross domain". That is the ideal. I also looked into Robocopy because it has the opion of running when x amount of changes and/or x minutes have passed. The third option was an off site data centre and MS Share Point.

From this the robocopy seemed the easiest to set up. The advantages are Free, ability to set when replication takes place, can be run manually, can replicate on time stamp, file atributes can be set or kept on replication (ntfs too), can work cross platform (as long as the destination accepts unc names)

DFS is a more robust way. It too is free, you can assign costs to your connection, easy to manage. But I don't know how to run it cross domain.

The last one would cost money, but replication could be done anytime, no direct link between the domains is needed, the most robust of the three.

Still to make my desission. Hope I comes from this thread.

Thanks for the tips.

I am going to try robocopy as a trial run and a small scale solution until I can implement something more managable and flexible.

As for DFS i'm having a problem with visualizing the idea.

Say I have domain A and domain B

I create a DFS root , then a DFS link to the folder A on domain A. I create a replica set on domain B folder B.

So basically folder B on domain B (assuming cross domain works with external trust) should get a replica set whenever the schedule to replicate hits.

I can set the folder B to be a local share and users from domain B can access that share locally so they won't have to pull across the link between domain A and domain B.

am I visualizing this right?

Sounds right.

Say you have a large company and they have offices all over.

There is a folder that has a set of template files that need to get used by all offices.

Each office server has a shared folder called Templates.

With DFS those folders are "mirrored". If a new template is added then, when replication starts, that file is updated on all members of the DFS.

You will have an exact copy of the folder in every office (depending on how often replication takes place)

I have tested out robocopy and it works. However, this is probably not a good way to replicate large amounts of data with this.

I basically wrote a batch script and had windows task scheduler run it.

I do have one problem with my batch script that i wrote. If I have a folder name that has spaces. Like _source1 and _source2 path.

Does anyone know how to represent a space properly in a dos script? When I run it as is, it returns an error because right when the first space on the file path, the program thinks the path is finished and therefore cannot find that path.

  Quote
@ECHO OFF

SETLOCAL

SET _source1=\\files2\pub$\pub & Manuals\test1\

SET _source2=\\files2\pub$\pub & Manuals\test2\

SET _dest1=\\files1\manual$\test1\

SET _dest2=\\files1\manual$\test2\

SET _what=/COPYALL /B /SEC /MIR

:: /COPYALL :: COPY ALL file info

:: /B :: copy files in Backup mode.

:: /SEC :: copy files with SECurity

:: /MIR :: MIRror a directory tree

SET _options1=/R:0 /W:0 /LOG:ASPFILE.txt /NFL /NDL

:: /R:n :: number of Retries

:: /W:n :: Wait time between retries

:: /LOG :: Output log file

:: /NFL :: No file logging

:: /NDL :: No dir logging

SET _options2=/R:0 /W:0 /LOG:MPMLOG.txt /NFL /NDL

:: /R:n :: number of Retries

:: /W:n :: Wait time between retries

:: /LOG :: Output log file

:: /NFL :: No file logging

:: /NDL :: No dir logging

ROBOCOPY %_source1% %_dest1% %_what% %_options1%

ROBOCOPY %_source2% %_dest2% %_what% %_options2%

Use it like this - "\\server\path a\ "

  Quote
@ECHO OFF

title ROBOCOPY SCRIPT

SETLOCAL

SET _source1="\\files2\pub$\pub & Manuals\test1\"

SET _source2="\\files2\pub$\pub & Manuals\test2\"

SET _dest1=\\files1\manual$\test1\

SET _dest2=\\files1\manual$\test2\

SET _what=/COPYALL /B /SEC /MIR

:: /COPYALL :: COPY ALL file info

:: /B :: copy files in Backup mode.

:: /SEC :: copy files with SECurity

:: /MIR :: MIRror a directory tree

SET _options1=/R:0 /W:0 /LOG:ASPFILE.txt /NFL /NDL

:: /R:n :: number of Retries

:: /W:n :: Wait time between retries

:: /LOG :: Output log file

:: /NFL :: No file logging

:: /NDL :: No dir logging

SET _options2=/R:0 /W:0 /LOG:MPMLOG.txt /NFL /NDL

:: /R:n :: number of Retries

:: /W:n :: Wait time between retries

:: /LOG :: Output log file

:: /NFL :: No file logging

:: /NDL :: No dir logging

ROBOCOPY %_source1% %_dest1% %_what% %_options1%

ROBOCOPY %_source2% %_dest2% %_what% %_options2%

Save it as a .cmd file (or .bat)

BTW Robocopy also uses job files. A job line is just a list of the options. Look in the documentation.

ie: robocopy /job:option1

The documentation tells you how to to either write a job file or use the save option to created one.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I almost picked one up...Best Buy has a heck of a time getting them, much less keep them in stock.
    • Microsoft bans LibreOffice developer's account without warning, rejects appeal by David Uzondu Recently, we reported on LibreOffice, accusing Microsoft of intentionally using complex file formats as a tactic to lock in users to Microsoft Office, hindering open source alternatives like LibreOffice. Now, Microsoft has banned LibreOffice developer, Mike Kaganski, from using its services, citing an "activity that violates [its] Services Agreement". According to Mike, this happened last Monday when he tried to send a technical email to the LibreOffice dev mailing list, which is a normal part of his routine, but Thunderbird returned an error saying the message couldn't be sent. His account was blocked upon retry, and he found himself completely logged out of his Microsoft account. Kaganski guessed that his mail and account were getting flagged by a bot or something, since he was quite sure that nothing in the mail violated Microsoft's terms of service. So he decided to file an appeal, a process which later made him call Redmond "miserably incompetent in IT." The automated system asked for his phone number, which he provided, only to be greeted by a "Try another method" error message. The problem was that there was no other method offered. He then decided to reach out to Microsoft support directly. After some digging, he found a link to contact the team, and there it was, a button asking him to "Sign in to Contact support". Now, you might go, "Hold up, how is he supposed to sign in to contact support when his problem is that he can't sign in in the first place?" As Kaganski himself put it: He eventually got to use his wife's account to file an appeal and finally received a message from support. The instructions inside asked him to go to the sign-in page and, when told the account is blocked, provide a phone number (something he had already tried). Microsoft ignored his detailed report of the failing process, marked his ticket as resolved without any real action, and simply closed it. He is yet to recover his account. As for the email he was trying to send, he was later able to use Gmail, and it went through with no problem. If you are interested, you can read the full email for yourself and see if it violates Microsoft's services agreement. Mike's not the only person who's had their account locked recently, with seemingly no way to recover it. On the 17th of last month, Reddit user u/deus03690 shared how Microsoft locked their account, which, among other things, contained 30 years of "irreplaceable photos and work" on OneDrive. Their appeal, like Mike's, has been fruitless so far. The user said Microsoft reached out 10 days later, asking them to fill out a recovery form and promising to help them "every step of the way," but they haven't heard from the company since.
    • It's like Microsoft hasn't learned anything from Internet Explorer fiascos. Or they weren't slapped hard enough financially for it...
    • Yes they're payroll taxes with some of it linked to share-based compensation for employees. So when the stock price was rising in q2 these charges also increased.
  • Recent Achievements

    • Apprentice
      MikeK13 went up a rank
      Apprentice
    • Week One Done
      andeyhawk65 earned a badge
      Week One Done
    • First Post
      Jake2530 earned a badge
      First Post
    • Explorer
      Deranox went up a rank
      Explorer
    • Week One Done
      John Volks earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      687
    2. 2
      ATLien_0
      259
    3. 3
      Xenon
      178
    4. 4
      neufuse
      135
    5. 5
      +FloatingFatMan
      100
  • Tell a friend

    Love Neowin? Tell a friend!