I have a WebApp called Brett - WebApp that I'm trying to backup using PowerShell and for some reason, it keeps complaining that it can't find that item. I've created a folder under my C:/ drive called Backup and I've specified that location in my script, along with the name of my WebApp (using double quotations) but it keeps saying that "Backup-SPFarm : Item Brett - WebApp not found". I've gone into my SharePoint Central Admin page and have confirmed that I do indeed have a WebApp called Brett - WebApp so I'm not entirely sure why it can't find it. I have the SharePoint 2013 Management Shell open as well and have closed the Central Admin internet explorer page while trying to perform the backup just in case it decides to lock any required files during the backup process. This is the full PowerShell script that I'm using:
Backup-SPFarm -Directory C:\Backup -BackupMethod Full -Item “Brett – WebApp” -Verbose
Has anyone run into this issue as well or have any tips on how to fix it? I've done some research on the web and can't find anything specific that relates to this issue. Another person wasn't using the double quotations so that was why it wasn't working for them but I'm using double quotations so I'm a bit confused here. Any help would be greatly appreciated. Thanks!
EDIT: I forgot to mention that I completed a successful backup of that same WebApp using the Central Admin page yesterday and everything worked perfectly. It's just refusing to backup in PowerShell for some reason.