Norton Ghost is a tool for creating backups of your entire hard-drive that can be recovered any time, for example in the case of moving to a new system or a hardware failure. 7-Zip 18.06 (32-bit) for PC Windows. TUGZip 3.5.0.0. PowerArchiver 18.01.04. PeaZip 6.6.1. Smartphone Recovery Pro for iOS 8.4.0.0. Any Data Recovery Pro 5.6.0.0.
Hi guys, I was given a task of writing a script that will compress sub-folders in a target folder into separate.7z files protected with password and date-stamped. I have borrowed some code from and trying to modify it, but I am rubbish at Powershell and at the moment I am getting one big compressed file that has everything inside. Can Any one tell how can I create those separate archives inside C: Test Share?
I know that I need to pipe Get-ChildItem into ForEach-Object but still I am getting same results. Thank you for that!!! Looks like what I needed, I just need to fix the password bit now and develop rest of the script. However, I am afraid that by the time I finish with it it won't be a script anymore, but a little program. I want to use it to compress whole shared drive on a weekly basis and upload everything to Amazon Glacier. I want eventually to do some of folders on different days so both shared drive and network won't be too heavily used at once.
Also everything needs to be encrypted before transmission and I want to automate this process by using KeePass. I also think that I need to change source path format as there are some very long file-paths and 7z is complaining about them when I do the job manually.
However, I am afraid that by the time I finish with it it won't be a script anymoreThe rest of your requirements mean that this is a given. You'll also want error handling and logging so you can troubleshoot issues when things go wrong Cause they will:) I also think that I need to change source path format as there are some very long file-paths and 7z is complaining about them when I do the job manually,That will be a problem. There are several possible solutions but none of them are simple especialyl as 7-zip is a dos application and you are in powerhsell, so that's a boundary you get to cross. You could try mapping a drive to the base folder, or to each subfolder, and see if 7-zip recognises it and can use it. Hi All again, I have manged to do most of my plan however I am stack now on a step where I want to capture output from 7z to a file to have a list of files that were compressed and of those that program had with. I am using power shell template from website which has errors capturing and logging implemented.
So basically I want to capture output from the z7 command that lists file that are being currently compressed and saves them by using Write-LogInfo command from PSLoggingmodule. Below is the code I am currently using. So I think that I need to capture whole output to a variable which can be printed in the message field of the Write-LogInfo command and this is the point I am stuck. I did tried that already but it's not capturing anything from the 7z at all. I am only able to display folders that are being processed and that's from the top folder level and I would like to see all files as they are processed. Normally 7z prints that out in GUI version.
Also when I am starting the script it spawns separate terminal windows for each folder it is compressing, so in my case I have 4 windows showing up for a fraction of second but I think that this is the output I am looking for. So now question is how do I capture it in power shell? Edited Apr 24, 2017 at 14:09 UTC.