To specify a custom “Backup Name” when using the appcmd add backup command on other drives, you can utilize the –name parameter to set the desired backup name. Additionally, the –physicalPath parameter allows you to direct the backup to a specified location.
Here’s an example of how to use these parameters:
1 2 |
appcmd add backup /name:“CustomBackupName” /physicalPath:E:\Backups\MyBackup |
In this command:
–
/name:“CustomBackupName” sets the backup name to “CustomBackupName”.
–
/physicalPath:E:\Backups\MyBackup directs the backup to the specified directory on drive E.
Ensure that you run this command with administrative privileges and verify that the target path exists and has appropriate permissions.