This is the list of commandlets for file automation.
Creates a backup of the specified folder if it exists.
The backup is created as a subfolder of the destination, using the current date as part of the folder name.
This cmdlet does not do anything if the source folder does not exist.
Name |
Type |
Required |
Description |
Example |
Source |
string |
 |
Path to the folder to backup |
C:\Target\MyApplication |
Destination |
string |
 |
Folder that will contain the backup |
C:\Backups |
New-Backup -Source "C:\Target\MyApplication" -Destination "C:\Backups"