Forum Discussion
VictorLanso
Sep 01, 2022Copper Contributor
PowerShell Compress-Archive
I have a monthly backup folder which contains daily backup from 1st day of the month to the last day of the month. How can i use PowerShell to zip each backup into the same folder or another folder a...
- Sep 02, 2022Here you go: https://github.com/Raindrops-dev/RAIN-TechCommunityContributions/blob/main/Start-SubfolderCompression.ps1
Read the .Example code at the top for the parameters to use when calling the script.
raindropsdev
Sep 02, 2022Iron Contributor
Your backups are in subfolders? Or all the backup in one folder?
Is your goal to compress each subfolder to a different .zip file?
Is your goal to compress each subfolder to a different .zip file?
- VictorLansoSep 02, 2022Copper ContributorAll backups are in subfolders. And my goal is to compress each subfolder to a different .zip file. with just a command or script. With that I should be able to manage many backups at once.
Thanks.- raindropsdevSep 02, 2022Iron ContributorHere you go: https://github.com/Raindrops-dev/RAIN-TechCommunityContributions/blob/main/Start-SubfolderCompression.ps1
Read the .Example code at the top for the parameters to use when calling the script.- VictorLansoSep 21, 2023Copper ContributorThis script not only work locally, but works across domain networks to compress files and move it to the desired location on the network.