Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using Robocopy to move SQL Server folders and subdirectory

Posted on 2012-03-28
5
Medium Priority
?
1,442 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 400 total points
ID: 37777319
0
 
LVL 31

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 31

Accepted Solution

by:
serialband earned 1600 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

There are some very powerful Dynamic Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a di…
by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

972 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