From 6f99c58c4c538d20a92e84fd3306c10d7c44f533 Mon Sep 17 00:00:00 2001 From: Benny Li Date: Tue, 26 May 2015 08:54:19 +0200 Subject: [PATCH] Fix update of deleted files --- README.md | 2 ++ start.bat | 3 +++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index c4a8f81..6b85e5d 100644 --- a/README.md +++ b/README.md @@ -16,3 +16,5 @@ Currently packaged is the ownCloud client version 1.8.0 (build 4893) from https: ### 7-Zip For encrypted packaging a 7za.exe is included. This is the official portable one in version 9.38 beta from http://www.7-zip.org/download.html. + +If you ask yourself if 7-Zip is secure enough, please reefer to http://security.stackexchange.com/questions/29375/is-7-zips-aes-encryption-just-as-secure-as-truecrypts-version. diff --git a/start.bat b/start.bat index 0f07a0a..2a14978 100644 --- a/start.bat +++ b/start.bat @@ -31,6 +31,9 @@ echo Starting ownCloud client. >> %LOG_FILE% START /WAIT ownCloudPortable\ownCloudPortable.exe >> %LOG_FILE% echo Encrypting ownCloud client and data... >> %LOG_FILE% +:: First we need to remove the old mutable data to guarantee deletion of files. +%SEVENEXE% d documents-sync.7z ownCloudPortable/Data/* -r -p%PASSWD% -y >> %LOG_FILE% +%SEVENEXE% d documents-sync.7z Documents/* -r -p%PASSWD% -y >> %LOG_FILE% :: Explanation: :: -mhe to encrypt headers so nobody can browse the archive :: -mx0 to not compress the archiv (only for performance)