![]() ![]() The script should look something like this:ĩ) The above script compresses all files/folders in the working directory, excludes the hidden _gsdata_ folder (used by the GoodSync application), creates a compressed 7z file called Backup.7z, and encrypts the contents using the password create a job to back up the Backup.7z file to a remote location of your choosing. If the folder location was added correctly to the PATH environment variable, you should see output for usage from the 7z utility.Ħ) When you create your job, it is going to execute a batch script that uses 7zip to compress the directories of your choice and encrypt the data set with a password.Ĭreate a file called backup-script.bat, and add the following:ħ) Replace with the full path of the folder you would like to compress (this should be the path to the source set in your GoodSync job).Ĩ) Replace with the desired password you would like to use for encryption. The “New” button is selected and the path to the 7zip application folder is provided.ĥ) Next, open a command prompt and enter the command “7z”. ![]() To do so, perform a Windows Search for “environment variable” and click “Edit environment variables for your account”.ģ) Under the user variables group, select the Path variable > click Edit > append/add the path to where 7zip is installed to.Ĥ) Below is an example using a Windows 10 machine. 7zip is free and can be downloaded here.Ģ) Once you have 7zip installed, add the directory that contains the 7zip executable to your %PATH% variable. ![]() The following use case details the steps for automating a backup job with compression and encryption using 7zip.ġ) First, install the 7zip application. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |