Automating SharePoint backup using Windows PowerShell
I have just started using the following PowerShell script to backup an entire farm to disk every night, the script is called by the Windows Task Scheduler (running the task as the Farm Administrator account).
Backup-SPFarm -Directory \\WW-Backup\SharePointBackup -BackupMethod Full
The backup will then create a new folder for each full backup, as shown in the screenshots below.
Note: Depending on your environment backing up an entire farm every night can consume large amounts of disk space!