You can backup your non-video files like metadata and artwork using a batch script.
Steps
- Create a new text file and name it “backup-metadata.txt”.
- Open the newly created file in notepad
- Paste the code snippet below in notepad
- Change directories and/or exclusions accordingly and remove any that aren’t needed.
- Save the file
- Now rename the file to “backup-metadata.bat”
- Run the script
Notes:
- Always use double quotes around your source and destination locations (if there is a space in the name and you don’t use quotes it won’t work, so use them just to be safe)
- The script below shows examples of folder paths. you need to edit these to match your own folder structure
- anything after the /XF switch will be excluded, so be sure to list all your video file types in there (eg. *.avi)
Script:
This script will export everything in your source folders in the exact same file structure to the destination folder, minus whatever file types you have in your exclusions.
@echo off
REM
REM usage:
REM Robocopy "<source path>" "<destination path>" /E /XF [list of excluded file types separated by a space]
Robocopy "Z:\HD Movies" "O:\backup\xml\HD Movies" /E /XF *.mkv *.avi *.m2ts *.mp4 *.wmv *.wtv
Robocopy "X:\HD Movies 2" "O:\backup\xml\HD Movies 2" /E /XF *.mkv *.avi *.m2ts *.mp4 *.wmv *.wtv
Robocopy "M:\DVDs A-F" "O:\backup\xml\DVDs A-F" /E /XF *.mkv *.avi *.vob *.ifo *.bup *.mpg *.m2ts *.mp4 *.wmv *.wtv
Robocopy "E:\DVDs G-Ma" "O:\backup\xml\DVDs G-Ma" /E /XF *.mkv *.avi *.vob *.ifo *.bup *.mpg *.m2ts *.mp4 *.wmv *.wtv
Robocopy "P:\DVDs Me-T" "O:\backup\xml\DVDs Me-T" /E /XF *.mkv *.avi *.vob *.ifo *.bup *.mpg *.m2ts *.mp4 *.wmv *.wtv
Robocopy "O:\DVDs new" "O:\backup\xml\DVDs new" /E /XF *.mkv *.avi *.vob *.ifo *.bup *.mpg *.m2ts *.mp4 *.wmv *.wtv
Robocopy "O:\DVDs So-Z" "O:\backup\xml\DVDs So-Z" /E /XF *.mkv *.avi *.vob *.ifo *.bup *.mpg *.m2ts *.mp4 *.wmv *.wtv
Robocopy "X:\DVDs Music" "O:\backup\xml\Music" /E /XF *.mkv *.avi *.vob *.ifo *.bup *.mpg *.m2ts *.mp4 *.wmv *.wtv
Robocopy "O:\DVDs Sports" "O:\backup\xml\Sports" /E /XF *.mkv *.avi *.vob *.ifo *.bup *.mpg *.m2ts *.mp4 *.wmv *.wtv
Robocopy Y:\TV "O:\backup\xml\TV" /E /XF *.mkv *.avi *.vob *.ifo *.bup *.rm *.mpg *.m2ts *.mp4 *.asf *.wmv *.wtv
Robocopy N:\TV2 "O:\backup\xml\TV2" /E /XF *.mkv *.avi *.vob *.ifo *.bup *.rm *.mpg *.m2ts *.mp4 *.asf *.wmv *.wtv
Robocopy V:\TV3 "O:\backup\xml\TV3" /E /XF *.mkv *.avi *.vob *.ifo *.bup *.rm *.mpg *.m2ts *.mp4 *.asf *.wmv *.wtv
Robocopy "X:\TV archive" "O:\backup\xml\TV archive" /E /XF *.mkv *.avi *.vob *.ifo *.bup *.rm *.mpg *.m2ts *.mp4 *.asf *.wmv *.wtv
Robocopy X:\audio "O:\backup\xml\audio" /E /XF *.mpg *.m2ts *.mp4 *.asf *.wmv *.mp3 *.flac *.wma *.m4a *.wav
Robocopy "O:\backup\xml" "V:\backup\xml" /E /XF
pause
Thanks to DemonSeed because I'm pretty sure he is the one who told me how to do this way back when.
- Will this work for subfolders in the folder structure, for ex box set folders , trilogys etc. lappen 3 days ago
- yes it will tp546 2 days ago