[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 518
  • Last Modified:

Migrate files from Linux

Hi,

I'm planning on moving a bunch of files and folders from a Linux server to a Windows 2012 and I'm not sure what would be the best approach to that. Should it be just a matter of copy-paste thing or I should get a more complex approach? Should I use a tool like Robocopy? Ideally the access rights would carry over but it's not a big deal if not. There is around 300Gb worth of folder/files.

Thank you!
0
Alan Dala
Asked:
Alan Dala
  • 4
  • 3
  • 2
  • +3
4 Solutions
 
Cliff GaliherCommented:
I'd use robocopy. Permissions from non-NTFS storage may not carry over though. But for many files, robocopy is far more efficient.
0
 
Neil PreeperCommented:
Your best bet is from backup and do a restore to your new location. If you do a simple copy and paste, you might run into the "file name is too long for windows". NTFS file system supports up to  255 characters in the file path.
0
 
Seth SimmonsSr. Systems AdministratorCommented:
Should I use a tool like Robocopy?

depends...are you using samba?  if not, that won't work for you if you can't connect the windows machine to a linux share

filezilla could be an option; i've used it before to transfer large amounts of files from linux
https://filezilla-project.org/download.php?show_all=1

or if through samba you mount a folder to a windows share, rsync might work though maybe not with the access permissions
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
serialbandCommented:
What permissions are you trying to preserve?  If you have windows permissions, then robocopy would work.  If you aren't using a Samba share, you can't use robocopy.

You could use cwRsync to connect to your linux system from Windows.  It will preserve the linux permisions.

Both Robocopy and cwRsync will copy only changed files, so if you want to restart after you stop, it will be much quicker, especially for 300 GB of files.
0
 
Alan DalaAuthor Commented:
Thank you for your responses!

I tested Robocopy and it looks like it's working fine. What switches would you recommend. So far I tried with /e /xj ? At this point I don't care about permissions that much. They will be different from what we had in Linux anyway.

Thank you!
0
 
Cliff GaliherCommented:
I'd use /copyall unless you have a specific reason not to.
0
 
Alan DalaAuthor Commented:
/copyall gives me an error related to some auditing rights...
0
 
Cliff GaliherCommented:
Posting the error would be helpful. J won't randomly guess.
0
 
Alan DalaAuthor Commented:
ERROR : You do not have the Manage Auditing user right.
*****  You need this to copy auditing information (/COPY:U or /COPYALL).


Thanks
0
 
Cliff GaliherCommented:
Make sure you are logged into the machine as a domain (or preferably enterprise) admin if joined to a domain, or as a local admin if you are in a workgroup. And make sure you are using the "run as administrator" option when launching the command prompt.
0
 
Sandeep KhanagwalCommented:
Use Winscp , Simplest and easiest
http://winscp.net/eng/index.php

Install in your window server machine and open your linux server using WinScp.
Just drag and drop the data folders which you want to copy in your window server.
0
 
serialbandCommented:
For the SOU (NTFS ACLs, Owner, Auditing) permissions, you should be domain admin to copy those.  If you can't get admin permissions, rather than /COPYALL (equivalent to /COPY:DATSOU), try /COPY:DATSO.

I usuually use robocopy with /MIR /COPYALL /Z /R:1 /W:1 /LOG:LogFile.txt to get everything as a Domain admin.  This gets all the Windows permissions and let's you also restart a copy, which is great if your copy was interrupted for any reason.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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