.SYNOPSIS
Function to sync content of a folder (one direction)
.DESCRIPTION
Very basic script leveraging System.IO .NET Class to synchronize two folders (one direction).
The script maintains a full, identical copy of source folder at destination path.
Needs improvements:
-Compare the folder and file content based on a hash leveraging get-filehash and compare-object cmdlets. This is to handle renames on source location.
-Compare and replicate the NTFS permissions and file ownership. In case the permissions have been changed at the source location.
.PARAMETER Source
Describes the source folder to be replicated from
.PARAMETER Dest
Describes the target folder to be replicated to
.PARAMETER Logfolder
Describes the log folder path
.EXAMPLE
Sync-Folder -source "C:\test\source" -dest "C:\test\replica" -logfolder "C:\test\log"
-
Notifications
You must be signed in to change notification settings - Fork 0
KornKolio/folder_sync
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
PowerShell script to replicate and sync content of a folder
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published