Export site with spaces in the URL

Just a short one to remember that when you need to backup a sub site that has spaces (HTML code %20) in the URL like http://sitecollection/sub%20site

You find out that this won't work :(
stsadm -o export -url http://sitecollection/sub%20site

Put the whole URL between cotes and change the %20 to spaces:
stsadm -o export -url "http://sitecollection/sub site"

Comments