Skip to content

PowerShell script to recursively zip files at each directory level and put the zipped files in the same folder structure elsewhere (for backup or archival use).

Notifications You must be signed in to change notification settings

CaelanBorowiec/PowerShell-Recursive-Compression-Backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PowerShell Recursive Compression Backup

This is a PowerShell script to recursively zip files at each directory level and put the zipped files in the same folder structure elsewhere (for backup or archival use).

Features

  • Recursively back up source directory to target directory, compressing files and preserving directory structure.
  • Don't back up directories inside zips.
  • Don't back up empty directories.

Examples

  • backup-root/a folder with files/ becomes: backup-destination/a folder with files.zip.
  • backup-root/a folder with files/subdirectory with files/ would become: backup-root/a folder with files/subdirectory with files.zip.

Credits

About

PowerShell script to recursively zip files at each directory level and put the zipped files in the same folder structure elsewhere (for backup or archival use).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published