+ Post New Thread
Results 1 to 4 of 4
How do you do....it? Thread, Robocopy question in Technical; I am in the process of configuring a robocopy script, but I'm having some trouble finding a method to achieve ...
  1. #1

    Join Date
    Oct 2007
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Robocopy question

    I am in the process of configuring a robocopy script, but I'm having some trouble finding a method to achieve exactly what I need.

    My eventual goal is that I need it to parse through a directory tree and pull all folders named EXPORT and their contents, which should always JPG or BMP files. I need to move these EXPORT folders and their contents to a new directory tree while maintaining the parent folder structure and skipping other files in the parent directories.

    This is roughly the structure: E:\Y2007\M10\D10\FILE**\EXPORT\*.JPG Folder tree needs to be identical, but the only data files will be those contained in these EXPORT folders. My difficulty with my current script is that I can't get robocopy to skip JPG files outside of these EXPORT folders. Maybe there is some syntax that allows me to say "skip all files not contained in a folder named EXPORT"?

    If there is another utility/method that does this better, let me know.

  2. #2

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,348
    Thank Post
    625
    Thanked 1,584 Times in 1,421 Posts
    Rep Power
    414

    Re: Robocopy question


  3. #3

    Join Date
    Oct 2007
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Robocopy question

    I looked at using SyncToy. The problem with SyncToy is that there is no way to systematically filter out files except by including a single file type. I can manually uncheck folders to pull from, but I'm dealing with 10,000+ folders and about 100 GB of data to move.

    I think my silver bullet on this problem lies in the ability to pull only from folders named EXPORT, or to pull from folders only at a certain sublevel (leaving upper levels alone).

  4. #4

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,068 Times in 625 Posts
    Rep Power
    740

    Re: Robocopy question

    Xcopy ?
    Filter files by date possibly ?

    You can use the touch command [ Part of a resource pack I think ] - I did something similar [ with a Xcopy command ] to backup a media database which is now running Rsync from two freenas boxes ]

    http://www.codeproject.com/tools/touch_win.asp

    I do have a GUI prog which does a touch type command - let me know if you want it - [ it was free I think if memory serves me right ]

SHARE:
+ Post New Thread

Similar Threads

  1. Robocopy
    By acrobson in forum How do you do....it?
    Replies: 16
    Last Post: 22nd December 2007, 01:41 PM
  2. Robocopy Gone Wrong
    By fawkers in forum Windows
    Replies: 2
    Last Post: 17th September 2007, 06:50 AM
  3. RoboCopy users.
    By tosca925 in forum Windows
    Replies: 3
    Last Post: 20th May 2007, 11:58 AM
  4. Robocopy questions...............!
    By Kyle in forum Windows
    Replies: 3
    Last Post: 28th January 2006, 07:20 PM
  5. Backup Script for NT backup and Robocopy
    By ChrisH in forum Scripts
    Replies: 12
    Last Post: 20th October 2005, 01:01 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •