The command is broken down as follows: "c:\Program Files (x86)\7-Zip\7z.exe" "c:\Program Files (x86)\7-Zip\7z.exe" a C:\7zip-archive-location\output-archive.7z "C:\location-03\file-03.txt" -pYour_Super_Secret_Password "c:\Program Files (x86)\7-Zip\7z.exe" a C:\7zip-archive-location\output-archive.7z "C:\location-02\file-02.txt" -pYour_Super_Secret_Password The commands to add files to an archive are: "c:\Program Files (x86)\7-Zip\7z.exe" a C:\7zip-archive-location\output-archive.7z "C:\location-01\file-01.txt" -pYour_Super_Secret_Password You can either add this location to your Windows path variable or directly reference the executable as I have done below. On Windows 10, under the c:\Program Files (x86)\7-Zip directory you will find the executable 7z.exe. I, however, wanted to do this via a shell script. protect the encrypted archive with a passwordĪfter you install 7-Zip, you can use it via its GUI. create a windows shell script that I could run with a mouse clickĬ. I decide to use 7-Zip as it allowed me to:Ī. I also needed the ability to pick and choose certain files from different directories for the cloud backup. However, I continued to feel uneasy about this and wanted another layer of security. In my first attempt, I turned on passwords in all the software packages that I use so that the underlying data files will be password protected. I must confess I am very wary of such a solution as I am placing my data (files) into the hands of a third party. However, with the continued drought and increased risk of fire in the Western States, I was evaluating a cloud-based backup solution. My past practice to back up my personal files was to copy the files to a couple of USB drives and store them in a fireproof safe.
0 Comments
Leave a Reply. |