Quantcast
Channel: Macrium Support Forum
Viewing all articles
Browse latest Browse all 2383

Help w/ a simple backup routine

$
0
0
There are 5 replies, with the last one on November 24 2013 at 21:14:38 by Gork
Quote:
I'm at Mom's so I figured I'd share the "code" in case it might be useful to someone else. I've pasted the info between the "Do the backup" and "done" remarks which exist in the script by default when Reflect creates the VBScript. I'm quite proud of the second line which is what works the magic to decide if the current month is the first in a quarter. (I'm obviously not a programmer extraordinare! heh) I don't see a way to paste into this forum in a "code format," so the following is the best I can do.

' Do the backup
If (Month(Date) - 1) Mod 3 = 0 Then
' Run the full image
ExitCode = Backup ("""C:\Programs\System\Reflect\reflect.exe"" -e -w -full ""C:\Users\Ginger\Documents\Reflect\Ginger-PC.xml""")
Else
' Run the incremental image
ExitCode = Backup ("""C:\Programs\System\Reflect\reflect.exe"" -e -w -inc ""C:\Users\Ginger\Documents\Reflect\Ginger-PC.xml""")
End If

' done

Viewing all articles
Browse latest Browse all 2383

Trending Articles