i did it:
1. cd /D D:\Source\section\
7z a -tzip -mx9 -xr@%exception% -scsWIN %destpath3%%DATE%section.zip %Sourcepath3% >%destpath3%log%DATE%.txt
cd /D D:\Source\section\
7z a -tzip -mx9 -x@%exception% -scsWIN %destpath3%%DATE%section.zip %Sourcepath3% >%destpath3%log%DATE%.txt
can i make something log? i dont uderstand where i make erorr... or why it don't exclude sub directorys! But if directorys was wrote English - all work OK, and subdirectorys are exclude
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Problems with file exceptions
set Sourcepath3="D:\Source\section\"
set destpath3="E:\Backup\section\"
set exception="E:\Backup\scripts\exception_section.txt"
7z a -tzip -mx9 -xr@%exception% -scsWIN %destpath3%%DATE%section.zip %Sourcepath3% >%destpath3%log%DATE%.txt
exception_section.txt:
dir1\dir2\dir3
dir4
dir4 - this directory is excluded
dir1\dir2\dir3 - this subdirectory is not excluded
exception_section.txt have win1251.
dir1,dir2,dir3,dir4 - Cyrillic characters
if dir1\dir2\dir3 is replaced by dir1
dir1 will be excluded
How can i excluded subdirectories?
Last edit: Igor Pavlov 2014-09-11
No... It is not work...
Last edit: artemka 2014-09-11
i did it:
1. cd /D D:\Source\section\ 7z a -tzip -mx9 -xr@%exception% -scsWIN %destpath3%%DATE%section.zip %Sourcepath3% >%destpath3%log%DATE%.txt
can i make something log? i dont uderstand where i make erorr... or why it don't exclude sub directorys! But if directorys was wrote English - all work OK, and subdirectorys are exclude
for -x@: dir1\dir2\dir3 must be direct path from current dir (D:\Source\section)
for -xr@: 7-Zip splits path into two parts:
dir1\dir2\ must be direct path from current dir (D:\Source\section) and dir3 can be in any subdir.