Solved

Using Robocopy to move SQL Server folders and subdirectory

Posted on 2012-03-28
5
1,149 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
Comment Utility
0
 
LVL 27

Expert Comment

by:serialband
Comment Utility
Do the /mir and /copyall options not work for you?

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

Author Comment

by:algotube
Comment Utility
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 27

Accepted Solution

by:
serialband earned 400 total points
Comment Utility
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
Comment Utility
Thank you so much for your help......very much appreciated.......
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 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

17 Experts available now in Live!

Get 1:1 Help Now