Backup script
From: David Cali <davidcali_at_charter.net>
Date: 2005-05-12 03:16:24 CEST
Hi Guys (and Girls),
I recently started using subversion in our company due to the many problems
Regards,
David Cali
svnbackup.vbs:
----------------------------------------------------------------------------
Set WshShell = WScript.CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
sourceDir = "e:\svnroot"
targetDir = "z:\svnbackup"
if fso.FolderExists(targetDir & "\") Then
newTargetDir = targetDir & _
Right("0" & Month(now),2) & _
Right("0" & Day(now),2) & _
Year(now) & _
Right("0" & Hour(now),2) & _
Right("0" & Minute(now),2)
Set folderObject = fso.GetFolder(targetDir & "\")
folderObject.Move (newTargetDir)
End If
WshShell.Run("svnadmin hotcopy " & sourceDir & " " & targetDir & "
Set folderObject = Nothing
Set fso = Nothing
Set WshShell = Nothing
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.