I’ve used the Sync-Folder script quite a bit and I thought it might be time to revisit it, clean it up and add some more functionality.
Here’s what I’m adding in this first part;
- Load all the configuration from an XML file. Useful to allow more complex configurations and a lot easier to edit that parameters or local variables.
- Proper documentation (so that Get-Help returns useful information).
- Allow multiple Source / Target pairs instead of just the one source folder. Multiple copies of the same source is good for extra safe backups.
The script and explanation follows after the line.
Update : I’ve revisited this script a few times with new additions and modifications.The latest full version of the script is here. That post also includes links covering the other revisions to the script.
Continue reading “PowerShell: Synchronizing a Folder (and Sub-Folders) Part 3”