That case is more difficult.
1) if 7-zip sees the problem when it opens file, it can skip that file.
2) But if it already have started compression of some file, it can't break it. Some data could be already written to .7z file.
Maybe it's possible to skip locked region of data and write ZEROS instead.
But is it OK for you that only some data of file will be correct and some data will be just ZEROS instead?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Если нет простых способов выяснить нет ли проблем с файлом, может можно сделать так:
сделать опцию (ключик) - для проверки файлов, у ключик есть параметр размер буфера, суть:
1. предбуфер куда копируются файлы, если файл больше буфера, то он копируется на диск.
после уже эти скопированные данные идут на упаковку.
например:
-ssw1 XXm
-ssw1 1000m
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Возник вопрос на соседнем форуме, есть ли решение этой проблемке?
D:\backup>"C:\Program Files (x86)\7-Zip\7z.exe" a -tzip -ssw -mx2 -r0 d:\backup\
_day.zip @d:\backup\files.txt -scsWIN
7-Zip 9.20 Copyright (C) 1999-2010 Igor Pavlov 2010-11-18
Scanning
Creating archive d:\backup\_day.zip
Compressing 1CBases\AccountingCorp.rar
Compressing 1CBases\AccountingCorp\1Cv8.1CD
Compressing 1CBases\AccountingCorp\1Cv8FTxt\changes20110123000000.log
Compressing 1CBases\AccountingCorp\1Cv8FTxt\changes20110129000000.log
………..
Compressing 1CBases\SmallBusiness\1Cv8FTxt\checkoutReasonProtect.dat
Compressing 1CBases\SmallBusiness\1Cv8Log\1Cv8.lgf
Compressing 1CBases\SmallBusiness\1Cv8Log\20101217000000.lgp
Compressing 1CBases\SmallBusiness\1Cv8tmp.1CD
Compressing 1CBases\SmallBusiness\1Cv8tmp.1CL
System error:
Процесс не может получить доступ к файлу, так как часть этого файла заблокирован
а другим процессом.
try without -ssw switch.
I need to back up open files…
What do you expect if there is 10 MB file, and some other app locks 1 MB of data inside that file?
Чтобы процесс упаковки не прерывался, ведь без ключа -ssw не прерывается, а в конце пишется какие файлы не смог упаковать.
Логика работы должна быть одинаковой
Т.е. без этого ключа будет пропускать все открытые файлы?
That case is more difficult.
1) if 7-zip sees the problem when it opens file, it can skip that file.
2) But if it already have started compression of some file, it can't break it. Some data could be already written to .7z file.
Maybe it's possible to skip locked region of data and write ZEROS instead.
But is it OK for you that only some data of file will be correct and some data will be just ZEROS instead?
Если нет простых способов выяснить нет ли проблем с файлом, может можно сделать так:
сделать опцию (ключик) - для проверки файлов, у ключик есть параметр размер буфера, суть:
1. предбуфер куда копируются файлы, если файл больше буфера, то он копируется на диск.
после уже эти скопированные данные идут на упаковку.
например:
-ssw1 XXm
-ssw1 1000m
Ключи:
-ssw1 XXm
-ssw1 1000m
НЕ РАБОТАЮТ!
mayroman
это была мысля, для ipavlov
кстати Вы посмотрели, как идёт упаковка без ключа -ssw, не прерывается упаковка?
ipavlov
В справке в описании ключа -ssw, нет предупреждения, что упакованные данные могут быть "битыми".
Ну ладно, а каким образом тогда успешно работает ntbackup и не вылетает с ошибкой?
http://support.microsoft.com/kb/104169
can you compare ntbackup and 7-zip without -ssw for your files?