Solved

Using Robocopy to move SQL Server folders and subdirectory

Posted on 2012-03-28
5
1,165 Views
Last Modified: 2012-08-13
Hello Experts

      I am trying to use Robocopy to copy my sql server folders and subdirectory from one drive to another but not having very much luck :-(

Tree structure:

Microsoft SQL Server
       - MSSQL.1
            - MSSQL
                  - Backup
                     - Data
                        - Analysis Services
                           - Engine
                              - Integrated Samples
                                 - Integrated Services
                                    - Notification Services
                                       - Replication
                                          - Reporting Services

How would I go about doing this?

Thanks for your time today
0
Comment
Question by:algotube
  • 2
  • 2
5 Comments
 
LVL 59

Assisted Solution

by:Darius Ghassem
Darius Ghassem earned 100 total points
ID: 37777319
0
 
LVL 28

Expert Comment

by:serialband
ID: 37777356
Do the /mir and /copyall options not work for you?

robocopy /mir /copyall D:\MSSQL.1 E:\MSSQL.1
0
 

Author Comment

by:algotube
ID: 37778330
Good day sorry for the late reply crazy around here.  No I am not using Robocopy GUI edition, command line.  Yes I have to look into RichCopy looks good...
Serialband, if I use robocopy /mir /copyall D:\MSSQL.1 E:\MSSQL.1
will this copy even permissions...... ????

Thanks for getting back to me guys...........
0
 
LVL 28

Accepted Solution

by:
serialband earned 400 total points
ID: 37779645
The /copyall option copies all permissions.  The /mir option tells it to mirror the diroctory structure.

The syntax should actually have the options after the source and destination.

robocopy D:\MSSQL.1 E:\MSSQL.1/mir /copyall
0
 

Author Closing Comment

by:algotube
ID: 37783763
Thank you so much for your help......very much appreciated.......
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

If you having speed problem in loading SQL Server Management Studio, try to uncheck these options in your internet browser (IE -> Internet Options / Advanced / Security):    . Check for publisher's certificate revocation    . Check for server ce…
Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

948 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now