Question

I have a 3-server SharePoint 2013 farm (db, app, web) set up and working enough to put in some demo content, and am trying to configure backups. I've successfully backed up using Central Admin but I'm trying to get it to work from the commandline so as to schedule it. I found what look like very simple instructions here.

On the app server, I tried

  1. Make a directory c:\backuptest and give Everyone full permissions.
  2. Run SharePoint 2013 Management Shell as Administrator
  3. When I use this command, it gives the following output then hangs silently:

    PS C:\backuptest> Backup-SPFarm -verbose -BackupMethod Full -Directory c:\backuptest

    VERBOSE: Leaving BeginProcessing Method of Backup-SPFarm.

    VERBOSE: Performing operation "Backup-SPFarm" on Target "MOSS2013APP".

Nothing is created in c:\backuptest. Ctrl-C and Ctrl-D don't do anything. I have to kill powershell.exe or reboot.

What am I missing or doing wrong?

Was it helpful?

Solution 2

Wow.

It's just incredibly slow.

In my case it hangs after those lines for about an hour before producing any additional output in the PowerShell host or writing any files to the backup location.

As documented elsewhere, both the user running the Backup-SPFarm cmdlet and the user (service account) running the database service need permissions to write to the backup destination. And I have broken Search and Admin apps because I haven't finished configuring them yet. Once it can write to the backup destination, the spbackup.log file in the spbr000* folder has lots of details.

But it won't even display errors until after the long silent hang period.

OTHER TIPS

First, make your backup directory on your SQL Server, if possible. This gives the fastest backup performance.

You need to share out your path (e.g. make a share named BackupTest from C:\backuptest), giving Everyone Full Control on the Share permissions (this is usually fine as we'll override the permissions at the NTFS permission level).

Next, remove MACHINENAME\Users. Add the SQL Server service account with NTFS Modify rights as well as adding the Timer service account with NTFS Modify rights.

Finally, run Backup-SPFarm -verbose -BackupMethod Full -Directory \\machinename\backuptest.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top