tags:

views:

52

answers:

0

I want to do incremental and full backup using stsadm command i have used this so far but Its overwriting the file not creating new backup with datetimestamp and also how I can achieve incremental backup with it:

cd \Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN       stsadm -o getsitelock -url <URL of Site Collection>
stsadm -o setsitelock -url <URL of Site Collection> -lock readonly

@For /F "tokens=1,2,3 delims=/ " %%A in ('Date /t') do @(
Set Day=%%A
Set Month=%%B
Set Year=%%C
Set All=%%C%%B%%A
)


stsadm -o backup -url <URL of Site Collection> -filename "C:\Backup\Backup_ All%.bak"

stsadm -o setsitelock -url <URL of Site Collection> -lock none

I have referrered this article for it: http://www.codeproject.com/KB/sharepoint/STSADM_Backup.aspx

But I am not able to get the incremental and timestamp with filename..any idea how to achieve this?