straytoasters Posted June 4, 2006 Share Posted June 4, 2006 I am looking for a copy/back up program that can do the following:1) Back up a whole folder/drive2) Filter the back up by wildcard (*.jpg)3) Exclude by specific name (maybe I want all *.jpg except fampic.jpg)4) Exclude by directory (maybe I want all *.jpg in c:\ but no *.jpg from c:\windows)5) Drop all copied/backup files into one directoryThe closest thing I have found is Copy Muppy (funny name, good program). You can exclude by specific file with Copy Muppy but no way to exclude by folder (I tried a -c:\windows, but no go). I contacted the author but they have no plans to inpliment a directory exclude anytime soon (but at least I got a response). A program with a .ini file setup like below would be excellent:[source]source path[Target]Target path[recursive];yes/nono[Filter];blank would copy all files from target*.jpg[Exclude filter by file];blank would exclude nothingfampic.jpg[Exclude filter by directory];blank would search all directorysC:\windowsAny suggestions?Straytoasters Link to comment Share on other sites More sharing options...
Elektrik Posted June 4, 2006 Share Posted June 4, 2006 Try http://www.educ.umu.se/~cobian/cobianbackup.htm#Bfeatures Link to comment Share on other sites More sharing options...
straytoasters Posted June 4, 2006 Author Share Posted June 4, 2006 I am pretty sure I tried that Cobian but it was not listed in my list of nearly 30 programs I have been trying. I downloaded it and tried it (again). I cant find a way to have it dump all the files into a single directory (without their original hierachy). I have played with several settings, but if anyone knows the magic sequence speak up. Also this thing seem increadibally SLOW. Copy Muppy does the complete filtered backup in about 4 minutes. Cobian has been chugging along for nearly 25min and looks to be only about 30% done. Link to comment Share on other sites More sharing options...
Scubar Posted June 4, 2006 Share Posted June 4, 2006 You could do all that quite easily with just a batch script. Link to comment Share on other sites More sharing options...
Sonic Posted June 4, 2006 Share Posted June 4, 2006 I use Robocopy from admin pack of win2k3http://www.ss64.com/nt/robocopy.html Link to comment Share on other sites More sharing options...
LLXX Posted June 4, 2006 Share Posted June 4, 2006 Take a look at the XCOPY command that comes with Windows... Link to comment Share on other sites More sharing options...
Andromeda43 Posted June 4, 2006 Share Posted June 4, 2006 Take a look at the XCOPY command that comes with Windows...From the description of the problem, the above quote would be my first guess.It may take several lines to get the whole job done but I believe it's quite doable.XCOPY Rules:XCOPY: Copies files and directory trees.XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/s [/E]] [/W] [/C] [/Q] [/F] [/L] [/H] [/R] [/T] [/K] [/N] source Specifies the file(s) to copy. destination Specifies the location and/or name of new files. /A Copies files with the archive attribute set, doesn't change the attribute. /M Copies files with the archive attribute set, turns off the archive attribute. /D:date Copies files changed on or after the specified date. If no date is given, copies only those files whose source time is newer than the destination time. /P Prompts you before creating each destination file. /S Copies directories and subdirectories except empty ones. /E Copies directories and subdirectories, including empty ones. Same as /S /E. May be used to modify /T. /W Prompts you to press a key before copying. /C Continues copying even if errors occur. /I If destination does not exist and copying more than one file, assumes that destination must be a directory. /Q Does not display file names while copying. /F Displays full source and destination file names while copying. /L Displays files that would be copied. /H Copies hidden and system files also. /R Overwrites read‑only files. /T Creates directory structure, but does not copy files. Does not include empty directories or subdirectories. /T /E includes empty directories and subdirectories. /U Updates the files that already exist in destination. /K Copies attributes. Normal Xcopy will reset read‑only attributes. /Y Overwrites existing files without prompting. /‑Y Prompts you before overwriting existing files. /N Copy using the generated short names. Link to comment Share on other sites More sharing options...
straytoasters Posted June 7, 2006 Author Share Posted June 7, 2006 I think I am going to go with robocopy but with either robocopy or xcopy what would I put in for a variable path...as inrobocopy c:\ %user input destination path% *.jpg /blah-blah-blah optionsWhat do I put in for %user input destination path% to get the script to prompt the user for the destination path? Also although the ss64.com sites says the default for files to be copied (if not specified) is *.* would that only be *.* files in the C:\ drive (in the example above) or would it look in the C:\subfolders too or do I have to put in a source path like C:\*.* for it to check subfolders?PS...is this "vanilla" example from ss64ROBOCOPY %_source% %_dest% %_what% %_options%an example of the true variables (in which the script would prompt you for everything) or is this just ss64 being simplistic?Thank you,Straytoasters Link to comment Share on other sites More sharing options...
Sonic Posted June 7, 2006 Share Posted June 7, 2006 SimpleExample.cmd@echo offecho Source path (without quotes and spaces are okay) ? && set /p source=echo Destination path (without quotes and spaces are okay) ? && set /p destination=robocopy "%source%" "%destination%" /WhatYourOptionsYouWantpause Link to comment Share on other sites More sharing options...
Zxian Posted June 7, 2006 Share Posted June 7, 2006 This is more Software than XP. Moved to Software Hangout Link to comment Share on other sites More sharing options...
straytoasters Posted June 8, 2006 Author Share Posted June 8, 2006 Ok, I like robocopy and its working 99% great, but is there a switch to get to look in all sub-directorys but if it finds a file to copy to ONLY copy the file to the destination directory and not its whole path? If so I am missing it. Using /s looks in all sub-directorys but ALSO copies the sub-directory path to the destination. Thank you.Straytoasters Link to comment Share on other sites More sharing options...
Sonic Posted June 9, 2006 Share Posted June 9, 2006 Ok, I like robocopy and its working 99% great, but is there a switch to get to look in all sub-directorys but if it finds a file to copy to ONLY copy the file to the destination directory and not its whole path? If so I am missing it. Using /s looks in all sub-directorys but ALSO copies the sub-directory path to the destination. Thank you.StraytoastersCan you make an example ? Link to comment Share on other sites More sharing options...
straytoasters Posted June 9, 2006 Author Share Posted June 9, 2006 Well I went over to xxcopy which has a /sh switch. This looks in all /subdirectorys for the root you specify but drops all files in the /home (guessing on that one) of the destination you specify. It works quickly and perfectly. However this point is not moot (but thank you for your continued follow up) as "managment" has now said they are not interested is a quick solution "we will use the windows search and copy from there". Wonderful.Straytoasters Link to comment Share on other sites More sharing options...
pmshah Posted June 12, 2006 Share Posted June 12, 2006 I use a 4DOS batch file - now available for free - for all such backups & copying. It is an extremely powerful shell. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now