I use to run these commands to backup our sharepoint site collections and our farm without any problem:-
backup-spsite http://****01/sites/home/ -Path E:\Back\BFH.bak
Backup-SPFarm -Directory \\**01\Back -BackupMethod full -BackupThreads 10 -Force
but recently i am getting these errors when i run the above commands inside sharepoint powershell:-
backup-spsite http://****01/sites/home/ -Path E:\Back\BFH.bak
backup-spsite : You must specify a filename for the backup file. At line:1 char:1 + backup-spsite http://***01/sites/home/ -Path E:\Back\BFH.bak
Backup-SPFarm -Directory \\**01\Back -BackupMethod full -BackupThreads 10 -Force
Backup-SPFarm : Directory \***01\Back does not exist or the SQL Server service account and the ***\s****m.srv service account do not have permission to read or write to the backup folder. Specify a different directory or ensure that the SharePoint Timer service and Microsoft SQL Server service accounts have Full Control permission on both the file share and the underlying folder. At line:1 char:1 + Backup-SPFarm -Directory \****01\Back -BackupMethod full -BackupThreads 10 ...
although i am running these commands using the farm account. also when i run the farm backup commnad using windows powershell instead of sharepoint powershell, i got this error:-
PS C:\> Add-PSSnapin "Microsoft.SharePoint.PowerShell"
Backup-SPFarm -Directory \\***01\Back -BackupMethod full -BackupThreads 10 -Force
Backup-SPFarm : You need to have Machine administrator priviliges to run this cmdlet.
so can anyone advice on this please? Thanks