Create backup file with date of today

How to create a backup file with the date of today.
Here is an example with STSADM from Sharepoint Services.

stsadm -o backup -filename “\\gl-nas-01\backup$\Sharepoint\GL-SP-01\%date:~-10,3%%date:~-7,3%%date:~-4%.dat” -url http://intranet/sites/home

Posted in Batch files and tagged , , .

Leave a Reply