Migrate data to new folder structure

I need to migrate a lot of data to a new folder structure, one of the things I will have to deal with is file paths which are too long.
To copy the data I have made a powershell script which uses robocopy to copy all data.
Of course I do not want to have disruption in this process (or the least disruption possible), what can I do to prevent issues with long file paths ?
Is there an easy way to modify my script and detect issues with long file paths ?
What would be the way to go preventing many copy errors during the robocopy action and fix possible issues before starting ?

There are utilities out that (free / not free) that you can run and it will give you a report on which folders are too long.  What I did was, I would take the results in the report and email it to an admin assistant or some type of key person in each
department, and they would fix the problem.  Once I had them all done, then I would do the migration.

Similar Messages

  • Script to copy data to new folder structure

    I am working on a project where I need to migrate many TB's of data into a new folder structure.
    I have exported the one of the folders including all sub-folder with treesize and exported it to excel.
    So the source folder structure is in column A, which has several thousands lines and I have put the destination folders in column B.
    Now I would like to script the data copy for every line the source folder is listed in column A and the destination folder is listed in column B.
    This has to be done for all containing sub folders and files of course.
    Has anyone got an idea how the script should look like ?
    I can export the excel sheet to CSV, but then my knowledge stops unfortunately.

    Win32 Device Namespaces
    The "\\.\" prefix will access the Win32 device namespace instead of the Win32 file        namespace. This is how access to physical disks and volumes is accomplished directly, without going through the       
    file system, if the API supports this type of access.  You can access many devices other than disks this way        (using the
    CreateFile and        
    DefineDosDevice functions, for        example).
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx
    ¯\_(ツ)_/¯

  • Urgent, Archiving in the completely new folder structure

    Hello!
    I'd like to create some kind of archiving facility for the users, so that when a file or document is deleted it is tranferred to another structure inside IFS where it resides until finaly deleted - purged. Now, the problem that i have is how to re-create the top-down folder structure in the "archive"? Which classes should I use?
    Any suggestions?
    nenad

    users would like to use the versioning for the other purposes.
    The idea behind archiving is to have old, outdated ans similar documents available for the additional short period of time when users might decide to re-date them, un-delete them or do some similar action....
    nenad
    null

  • Windows 2008 R2 Cluster - migrating data to new SAN storage - Detailed Steps?

    We have a project where some network storage is falling out of warranty and we need to move the data to new storage.  I have found separate guides for moving the quorum and replacing individual drives, but I can't find an all inclusive detailed step
    by step for this process, and I know this has to happen all the time.
    What I am looking for is detailed instructions on moving all the data from their current san storage to new san storage, start to finish.  All server side, there is a separate storage team that will present the new storage.  I'll then have to install
    the multi-pathing driver; then I am looking for a guide that picks up at this point.
    The real concern here is that this machine controls a critical production process and we don't have a proper set up with storage and everything to test with, so it's going to be a little nerve racking.
    Thanks in advance for any info.

    I would ask Hitachi.  As I said, the SAN vendors often have tools to assist in this sort of thing.  After all, in order to make the sale they often have to show how to move the data with the least amount of impact to the environment.  In fact,
    I would have thought that inclusion of this type of information would have been a requirement for the purchase of the SAN in the first place.
    Within the Microsoft environment, you are going to deal with generic tools.  And using generic tools the steps will be similar to what I said. 
    1. Attach storage array to cluster and configure storage.
    2. Use robocopy or Windows Server Backup for file transfer.  Use database backup/recovery for databases.
    3. Start with applications that can take multiple interruptions as you learn what works for your environment.
    Every environment is going to be different.  To get into much more detail would require an analysis of what you are using the cluster for (which you never state in either of your posts), what sort of outages you can operate with, what sort of recovery
    plan you will put in place, etc.  You have stated that your production environment is going to be your lab because you do not have a non-production environment in which to test it.  That makes it even trickier to try to offer any sort of detailed
    steps for unknown applications/sizing/timeframes/etc.
    Lastly, the absolute best practice would be to build a new Windows Server 2012 R2 cluster and migrate to a new cluster.  Windows Server 2008 R2 is already out of mainstream support. That means that you have only five more years of support on your
    current platform, at which point in time you will have to perform another massive upgrade.  Better to perform a single upgrade that gives you a lot more length of support.
    . : | : . : | : . tim

  • Migrate data into new DB?

    Hi there,
    Is there a way to start with a completely new/clean ZEN 6.5 Inventory database,
    and then import/migrate data into it using copies of an older ZEN 6.5 Inventory
    database?
    Thanks,
    Eric

    I thought maybe starting with a clean db and then importing/migrating the data
    would help with some strange Sybase ASA db server errors. I cannot find these
    errors documented anywhere on Novell.
    Duplicate index "i$CustomValue#" for table "t$CustomValue"
    Duplicate index "i$logdevice$deviceid" for table "t$LogicalDevice"
    No unique index or primary key for table "diskusage"
    I've already tried running sybindex to no avail.
    -Eric
    "Marcus Breiden" <[email protected]> wrote in message
    news:1nanhbp6jocyt$.[email protected]. .
    > On Mon, 29 Aug 2005 14:46:48 GMT, Eric Young wrote:
    >
    >> Is there a way to start with a completely new/clean ZEN 6.5 Inventory
    >> database,
    >> and then import/migrate data into it using copies of an older ZEN 6.5
    >> Inventory
    >> database?
    >
    > there is no documented way..
    >
    > you would need to run 2 servers, one with the old, one with the new
    > database.. than you would need to create your own sql statements to
    > transfer the data..
    >
    > why?
    > --
    >
    > Marcus Breiden
    >
    > Please change -- to - to mail me.
    > The content of this mail is my private and personal opinion.
    > http://www.edu-magic.net

  • Migrating Data to New iMac

    I am unable to migrate data andsettings from my old iBook G4 to m new iMac.
    I am using Migration Assistant. The iBook restarts in target disk mode without problem.
    The iMac, however, doesn't seem to recognize the iBook as a mounted disk. Migration Assistant on the iMac has the "Continue" button on the "Restart Your Old Mac" window grayed out.
    Both computers are running 10.4.10.
    All cables except the firewire and the iMac keyboard are disconnected from the computers.
    I've tried restarting the iMac after the iBook goes into target disk mode but still encounter the same problem.
    Since the iBook goes into target disk mode without problem, this doesn't seem like an "Open Firmware Password" proble.
    I've read articles 58583 and 2333 but didn't find anything there to explain or solve the problem.
    Thanks in advance.

    I signed up for the 60 day free trial of .mac and synched my address book/mail/calendar settings and my Safari bookmark through that. Mail still has to go through the process of "learning" what is junk mail, but other than that everything came across fine. After you sign up for .mac, go to System Preferences on your OLD computer and pick .mac in the Internet/Network pane. When that comes up the second choice in the bar across the top is SYNC. Go there and pick addresses, bookmarks... whatever. Click sync and your info goes out onto their servers in the sky. Next log into .mac on you NEW computer and go to System Preferences and sync the same selections in .mac there. The info should pass on to your new computer.
    It's been long enough since I did this that I may be leaving out a minor detail but it was really easy and pretty fool-proof. I think it asked me which direction I wanted to save information so that I didn't accidentally wipe out my OLD computer with the blank data from the NEW computer.
    I hope this works for you!
    Susan
    Message was edited by: Susan from Dallas

  • Ideas for migrating data to new iMac from faulty eMac?

    My wife's old eMac died, but she was able to copy her user folder (all 58+ GBs) to an external drive prior to it finally giving up the ghost. It was copied via finder (not cloned or done via Time Machine), so it doesn't appear to have permissions set (i.e., I can mount the disk on another computer and access all her files).
    She needed her new iMac set up right away to finish some work, so only a few files have been transfered.
    I don't know if Migration Assistant can deal with the files, but I'd rather not migrate her stuff at this point. Migration Assistant isn't particularly granular (i.e., you can't choose which apps or which email to transfer - it's all or nothing). I'd rather access her home folder (as the user) to clean out her files (i.e., email, downloads, iTunes, iPhoto, etc.) prior to migrating them to her new computer. At a minimum, I want to log into her old account to backup her contacts to transfer over (or access them some other way).
    Can I set up a user account for her on another computer (same name and pw), go into the advanced accounts settings and point to her folder on the external drive, and then log into her account? Or do I need to do some terminal work?
    I believe the HDD was corrupted by the HW failure, but if Target Disk Mode is preferable for what I want to do, then it might be worth some troubleshooting on the eMac to get Target Disk working.

    "Copy the following items from your old Mac to the new Mac:
    In your /Home/ folder: Documents, Movies, Music, Pictures, and Sites folders.
    In your /Home/Library/ folder:
    /Home/Library/Application Support/AddressBook (copy the whole folder)
    /Home/Library/Application Support/iCal (copy the whole folder)
    Also in /Home/Library/Application Support (copy whatever else you need including folders for any third-party applications)
    /Home/Library/Keychains (copy the whole folder)
    /Home/Library/Mail (copy the whole folder)
    /Home/Library/Preferences/ (copy the whole folder)
    /Home /Library/Calendars (copy the whole folder)
    /Home /Library/iTunes (copy the whole folder)
    /Home /Library/Safari (copy the whole folder)
    If you want cookies:
    /Home/Library/Cookies/Cookies.plist
    /Home/Library/Application Support/WebFoundation/HTTPCookies.plist"
    excepted from, "kimaccdual: A Basic Guide for Migrating to Intel-Macs" by Kappy and others.

  • Can I recover data in hierarchical folder structure, deleted by rm -rf command

    Bymistake I used the command  "sudo  rm -rf " to wrong folder in other volume and loose about 35GB important data. Can I recoved it in folder like structure way, I tried maky application but they sort data in video , audio , pdf categories which are impossible to re-arrange.
    Please solve my problem.
    Thanks.

    Mac Data Recovery best solution to recover all your lost& deleted files from Mac. This tool supports recovery of a broad range of file
    types from Mac hard drives and volumes. This tool is equipped to scan and recover data from any NTFS-formatted Windows Boot Camp
    partition. You can also search your lost or deleted volumes on FAT, NTFS, and ExFAT formatted drives. For more information and free
    download click http://macdatarecovery-tools.weebly.com

  • Migrate data to new storage

    i have some solaris system connect to a old storage, now i plan to migrate all data to a new storage. is there any solaris command to do this? if there's no LVM installed on my solaris, how to do this migration?

    Are able to create some mirror, it's simple with zfs or svm ?
    What is the solaris version do you use ?

  • How can I migrate data to new Mac Pro with only 1 monitor

    I am ready to set up my new Mac Pro.  I know how to migrate my files from my G5 using Firewire and making the new computer a target disk.  My problem is, I have only 1 monitor.  Is there an easy way around this, OR of not, can I use my Macbook Pro just a monitor and if so how? 

    If you make the new computer a FireWire Hard drive, the only thing on its monitor will be the firewire symbol. You don't need a monitor to see that.
    But if you did, you could start the new computer up first, look at the firewire symbol, get a warm fuzzy feeling, disconnect the  monitor and plug it into the old computer to make the transfers.

  • Migrate data to new dual drive setup

    I am adding a second hard drive to my Mac (Mavericks) but am not sure of the best way to go about moving the data across. The new drive is a SSD and the old one is a HDD so I want to move the OS and most other things (excluding music, photos, movies) to the new drive. Is the best way to do this to just restore from a Time Machine backup? Can I somehow restore a TM backup to an empty drive or do I first have to install Mavericks on the new SSD? I was thinking of booting into the Recovery partition of my HDD and using the "Restore from a TM backup" feature on there but can that restore it to the SSD or does that only apply to the HDD (of which the recovery partition is a member of)?
    On that recovery partition there is also an "Install a copy of Mavericks" option. If I use that to install Mavericks on the SSD, is that in any way different to downloading the installer from the app store and using that? I think I remember something about the old versions of OSX installing slightly differently depending on how it was done, ie pre-installed vs retail DVD vs included install DVD...
    Any suggestions?

    You can buy an enclosure and put the old hard drive in it. Then, you can start up the computer from this hard drive and use Disk Utility's Restore feature to restore the hard drive content onto your new one > http://pondini.org/OSX/DU7.html
    You may have to format the new hard drive first. You can do it in Disk Utility > http://pondini.org/OSX/DU1.html Remember to format your new hard drive in "Mac OS Extended (Journaled)" and with the GUID partition table

  • Trouble migrating data to new macbook

    I'm on a G5 dual-processor running 10.4.6. I've gone through the migration assistant and after restarting the G5 holding down the "T" key, I get the correct symbol, but no data is trasferred. Assuming that my firmware might need updating, I went to the page for firmware updates, but the links to those updates seem to take me to a page no longer in existence. Do I need an update and, if so, where do I get one???
    thanks

    This page lists appropriate firmware updates: http://docs.info.apple.com/article.html?artnum=86117. There's no indication of what you're trying to mount in target disk mode; another computer? More details on what you're actually doing, etc. would be helpful.

  • Library creating a new duplicate folder structure

    I am using 2.0 on a Mac. Recently I moved all my data files including photos and lightroom catalogs from an external to an internal drive on my MacPro and renamed the new drive with the same name as the external and changed the external name and it became a backup. Lightroom continued to work just fine, seeing all the images with no problem. If I do a "Show in Finder" it shows me them on the internal HD. However, when I import a new image or even import an image or folder that has previously been imported, LR brings it in within a new folder structure that uses the same hard drive name.
    My actual hard drive folder structure for my data drive is something like HardDriveName/Graphics/Airshows/image.jpg with all my images in a Graphics folder and within that a series of folders and subfolders.
    Previously if I imported a new folder, LR would show HardDriveName/NewFolder and I have several folders of imported images with that structure. It did not include the /Graphics folder because I never imported the entire Graphics folder. Now however, after importing a folder, LR created a new folder structure in the Library with a duplicate of the HardDriveName and it included /Graphics.
    I went to the first folder structure and picked a small folder and made a change to an image to darken it a great deal. Then I imported the folder all over again and it imported it to the new folder structure but the dark version was not visible. I DO have automatically write xmp data checked.
    If I right click on any image from either folder structure LR shows me the image within the same hard drive where my original are found.
    I don't want to have two folder structures and apparently if I re-import all my images LR doesn't see the xmp data. I tried to tell RM to read the xmp data from the image I had changed after it came into the new folder but it did not show up. If I manually tell LR to Save Metadata to File for a folder in my original structure and then go to the same folder in the new structure that LR is showing and tell it to read metadata it will show up in the new folder. I have a folder with 32,000+ images and thousands of other images.
    I would like LR to continue to bring images into my "old" folder structure but that may not be possible. Any help?
    Interestingly I have more than one data drive. This problem does not seem to be happening with my other data drive that I also swapped to an internal configuration.
    I put a pic of my folder structure at http://www.pbase.com/santa/image/101246417 to illustrate the issue. My harddrive name shows as Brandon.
    I spoke too soon. LR seems to be creating a new folder structure for two of my three hard drives and adding images properly to one of my three hard drives. All three were new drives with the names changed to match the old drives.

    yes I did update camera raw. I think LR 2.0 asked for that. I did a search on "duplicate" and found no answer to my problem. Anyone with a link to any useful information?

  • Please help  ! Can I cut-off New G/L migration date during fiscal year ?

    Dear Experts
    I know that the principles of migration date of New G/L migration should be on first day of fiscal year and Year-end closing of the old fiscal year must be complete before New General Ledger Accounting is activated.
    However, if I need, can I cut-off new G/L migration date during fiscal year before year-end closing ? And Which points should be concern.
    Best regards,
    Suphawat

    Hi,
    First you should have installed the cockpit., you should have completed the testing and migrated the transports before the end of the Fiscal year which is 31st March in your case.  Depending on the scenario, this will take 20 - 40 days.
    You can begin the migration once your year end activity is performed.
    If you have not installed the cockpit and completed the configuration and tested it.. forget it for this year, do it next year.
    Hope this is clear now.
    Edited by: Jayaraman N on Apr 7, 2011 10:41 AM

  • Can I cut-off New G/L migration date during fiscal year ?

    Dear Experts
        I know that the principles of migration date of New G/L migration should be on first day of fiscal year and Year-end closing of the old fiscal year must be complete before New General Ledger Accounting is activated.
        However, if I need, can I cut-off new G/L migration date during fiscal year before year-end closing ? And Which points should be concern.  
    Best regards,
    Suphawat
    Moderator: Please, search SDN

    Hi,
    First you should have installed the cockpit., you should have completed the testing and migrated the transports before the end of the Fiscal year which is 31st March in your case.  Depending on the scenario, this will take 20 - 40 days.
    You can begin the migration once your year end activity is performed.
    If you have not installed the cockpit and completed the configuration and tested it.. forget it for this year, do it next year.
    Hope this is clear now.
    Edited by: Jayaraman N on Apr 7, 2011 10:41 AM

Maybe you are looking for