copy script to search for source file
Posted on 2014-03-06
I'm trying to copy a Windows backup file (VHD) to a Samba share that is backed up off site weekly. However- I need to only backup the VHD (not the XML files, directories, etc.) and place the VHD in the root of the share. I can of course do this manually, but would like to instead schedule a script to run weekly.
The hard part is getting my script to search the WindowsImageBackup\...\ directories for the VHD files before copying. Is there a copy tool, such as xcopy, that will search subdirectories for the source file, or does anyone have a handy dandy script?