Jump to content

[Question/Info] Looking for a copy/backup program


Recommended Posts

I am looking for a copy/back up program that can do the following:

1) Back up a whole folder/drive

2) 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 directory

The 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/no

no

[Filter]

;blank would copy all files from target

*.jpg

[Exclude filter by file]

;blank would exclude nothing

fampic.jpg

[Exclude filter by directory]

;blank would search all directorys

C:\windows

Any suggestions?

Straytoasters

Link to comment
Share on other sites


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

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

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 in

robocopy c:\ %user input destination path% *.jpg /blah-blah-blah options

What 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 ss64

ROBOCOPY %_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

SimpleExample.cmd

@echo off
echo 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%" /WhatYourOptionsYouWant
pause

Link to comment
Share on other sites

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

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

Can you make an example ? :thumbup

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...