• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 539
  • Last Modified:

File replaication in Windows - SFTP

I am having problem SFTP directly to the NAS share NetApp appliance.  Its too slow.  Its much faster to the server.
What's the good way to replicate SFTP from the server to NAS?  DFS comes to mind. Could that be used to replicate from SFTP Server C: drive over to NAS share //nas/sftp? If so, could it be set up so that deleting from the source did not delete it from the destination?
Please advice.
0
Tiras25
Asked:
Tiras25
  • 3
  • 2
3 Solutions
 
yo_beeDirector of Information TechnologyCommented:
DFS needs Windows compliants to be able to replicate.
Since you are dealing with a NAS (assuming it is not a Windows Server) and Server (assuming it s a Windows Server) I would use Robocopy with the /E and /XO switch

/E       ::  copy subdirectories, including Empty ones.
/XO    ::  eXclude Older files.

The full command would be:
robocpy "source" "dest" /E /XO /B /W:1 /R:1 /Log:C:\copy.txt /TEE /NP 

Open in new window


This will give you a copy from the source to the destination. If you rerun this again against the  same folder structure it will skip the files that have not changed since the last robocopy.

If schedule this for a routine it might meet your needs.

If this sounds like a solution that might work I will be more than happy to go into further detail.
-Mike B-
0
 
Tiras25Author Commented:
Got it.  So would it be okay to schedule to run this robocopy hourly?
0
 
yo_beeDirector of Information TechnologyCommented:
If you are looking to do that then you schedule the robocopy to start at certain time with the /MON or /MOT switch.

i.e
Schedule Robocopy to start when the server starts or at a certain time (4:00 am - 10:00 PM)
then let robocopy monitor the folder changes.
robocpy "source" "dest" /E /XO /B /W:1 /R:1 /MOT:60 /Log:C:\copy.txt /TEE /NP /NFL /NDL

Open in new window


or

robocpy "source" "dest" /E /XO /B /W:1 /R:1 /MON:10  /Log+:C:\copy.txt /TEE /NP /NFL /NDL 

Open in new window


/MON:n  :: MONitor source; run again when more than n changes seen.
/MOT:m  :: MOnitor source; run again in m minutes Time, if changed.

So if you use /MON:60 (which I recommend for your situation) means that the Robocopy job will start and rerun every hour if there are any changes to the folders.

Question I have is how much data are you talking about?
0
 
Tiras25Author Commented:
Thank you!  We are talking anywhere from 50 to 300GB.
0
 
yo_beeDirector of Information TechnologyCommented:
should be fine in an hours time, but you can see how it goes and adjust accordingly
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now