Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

File replaication in Windows - SFTP

Posted on 2012-09-18
5
Medium Priority
?
522 Views
Last Modified: 2012-10-03
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
Comment
Question by:Tiras25
  • 3
  • 2
5 Comments
 
LVL 24

Accepted Solution

by:
yo_bee earned 2000 total points
ID: 38411961
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
 
LVL 17

Author Comment

by:Tiras25
ID: 38412017
Got it.  So would it be okay to schedule to run this robocopy hourly?
0
 
LVL 24

Assisted Solution

by:yo_bee
yo_bee earned 2000 total points
ID: 38412031
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
 
LVL 17

Author Comment

by:Tiras25
ID: 38412061
Thank you!  We are talking anywhere from 50 to 300GB.
0
 
LVL 24

Assisted Solution

by:yo_bee
yo_bee earned 2000 total points
ID: 38412064
should be fine in an hours time, but you can see how it goes and adjust accordingly
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Understanding the various editions available is vital when you decide to purchase Windows Server 2012. You need to have a basic understanding of the features and limitations in each edition in order to make a well-informed decision that best suits …
How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Suggested Courses

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question