-
Notifications
You must be signed in to change notification settings - Fork 0
/
FileExclusionScanner.bat
30 lines (23 loc) · 2.63 KB
/
FileExclusionScanner.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
echo Excluded file types from backup:
echo --
echo The following are the ONLY directories included in backups. Data listed in this report, or Data in other locations will NOT be backed up.
echo ----------------------------------------
echo C:\Users\*\Documents
echo C:\Users\*\Desktop
echo C:\Users\*\Favorites
echo C:\Users\*\Links
echo C:\Users\*\Pictures
echo C:\Users\*\Searches
echo C:\Users\*\AppData\Roaming\Mozilla\Firefox\Profiles
echo C:\Users\*\AppData\Local\Google\Chrome\User Data\Default\Bookmarks
echo ----------------------------------------
echo PRESS ENTER to view the files excluded from backup - You should make separate provisions to back these up!
pause
dir /a /b /s "%userprofile%\Documents" | findstr /i /e "\.tmp \.cab \.exe \.msi \.vdi \.vmdk \.vmdx \.fcz \.rdata \.sqd \.clust \.fasta \.qual \.rda \.rdb \.sas7bdat \.mdb \.sff \.mov \.png \.tif \.tiff \.dll \.img \.iso \.bin \.bak \.vmem \.asn \.bam \.fastq \.frame000 \.ibd \.pdata \.xml \.wma" > C:\Temp\FilesNOTbackedup.txt
dir /a /b /s "%userprofile%\Desktop" | findstr /i /e "\.tmp \.cab \.exe \.msi \.vdi \.vmdk \.vmdx \.fcz \.rdata \.sqd \.clust \.fasta \.qual \.rda \.rdb \.sas7bdat \.mdb \.sff \.mov \.png \.tif \.tiff \.dll \.img \.iso \.bin \.bak \.vmem \.asn \.bam \.fastq \.frame000 \.ibd \.pdata \.xml \.wma" >> C:\Temp\FilesNOTbackedup.txt
dir /a /b /s "%userprofile%\Favorites" | findstr /i /e "\.tmp \.cab \.exe \.msi \.vdi \.vmdk \.vmdx \.fcz \.rdata \.sqd \.clust \.fasta \.qual \.rda \.rdb \.sas7bdat \.mdb \.sff \.mov \.png \.tif \.tiff \.dll \.img \.iso \.bin \.bak \.vmem \.asn \.bam \.fastq \.frame000 \.ibd \.pdata \.xml \.wma" >> C:\Temp\FilesNOTbackedup.txt
dir /a /b /s "%userprofile%\Links" | findstr /i /e "\.tmp \.cab \.exe \.msi \.vdi \.vmdk \.vmdx \.fcz \.rdata \.sqd \.clust \.fasta \.qual \.rda \.rdb \.sas7bdat \.mdb \.sff \.mov \.png \.tif \.tiff \.dll \.img \.iso \.bin \.bak \.vmem \.asn \.bam \.fastq \.frame000 \.ibd \.pdata \.xml \.wma" >> C:\Temp\FilesNOTbackedup.txt
dir /a /b /s "%userprofile%\Pictures" | findstr /i /e "\.tmp \.cab \.exe \.msi \.vdi \.vmdk \.vmdx \.fcz \.rdata \.sqd \.clust \.fasta \.qual \.rda \.rdb \.sas7bdat \.mdb \.sff \.mov \.png \.tif \.tiff \.dll \.img \.iso \.bin \.bak \.vmem \.asn \.bam \.fastq \.frame000 \.ibd \.pdata \.xml \.wma" >> C:\Temp\FilesNOTbackedup.txt
dir /a /b /s "%userprofile%\Searches" | findstr /i /e "\.tmp \.cab \.exe \.msi \.vdi \.vmdk \.vmdx \.fcz \.rdata \.sqd \.clust \.fasta \.qual \.rda \.rdb \.sas7bdat \.mdb \.sff \.mov \.png \.tif \.tiff \.dll \.img \.iso \.bin \.bak \.vmem \.asn \.bam \.fastq \.frame000 \.ibd \.pdata \.xml \.wma" >> C:\Temp\FilesNOTbackedup.txt
notepad C:\Temp\FilesNOTbackedup.txt
exit