Create backup destination dynamically

Top  Previous  Next

To implement addtional backup concepts you can insert variables in the backup destination path. The backup folder is then created dynamically while the backup is being performed. For example, you can insert the day's date in the path so that a folder containing the current date is created for each backup. Or else you can give the backup folder a consecutive number.

Frequently used examples of variables:

You can mix and match the variables or date elements at will. The variables in the following overview are to be construed as examples:

Variable:

Description:

[mm.dd.yyyy]

Today's date.

[mm.dd.yyyy freeup]

Today's date, using the freeup option (see below).

[mm]

The current month.

[mmmm]

The current month, written as a word.

[hh:mm:ss]

The time in the format hours, minutes and seconds.

[dd]

The current day.

[1-7]

Numbers the backup folder between 1 and 7.

[1-7;2]

Numbers the backup folder between 1 and 7, with an incrementor of 2.

[1-x]

Numbers the backup folder between 1 and x, using the freeup option.

[input a]

Asks the user for the value of a and inserts this value in the path (the value of the variable 'a' is stored as an environment variable and as such can be reused in a final batch)

Possible date elements in the variables:

Element:

Description:

w

Day of the week as a number (1 - 7)

ww

Calendar week (1 - 54)

dd

Day as a number (1 - 31)

ddd

Day of the week as a word (abbreviated Mo - Su)

dddd

Day of the week as a word (Monday - Sunday)

mm

Month as a number

mmm

Month as a number (abbreviated, Jan - Dec)

mmmm

Month as a word (January - December)

q

Quarter of the year (1 - 4)

yy

Year, two-digit (99)

yyyy

Year, four-digit (1999)

hh

Hour

mm

Minute

ss

Second

FreeUp option:

The FreeUp option enables the program to delete older backup folders automatically if there is insufficient disk space. If there is no longer adequate disk space available on the drive, the oldest backup folders are deleted until there is sufficient space on the backup. The FreeUp option can be specified in conjunction with each variable.

Examples of destination paths:

D:\Sicherung\Wochen-Sicherung Nr. [1-5] (D:\Backup\Weekly backup number [1-5])

L:\Sicherung vom [mm-dd-yyyy] (backup dated [mm-dd-yyyy])

L:\Sicherung vom [mm-dd-yyyy] (backup dated [mm-dd-yyyy freeup])

F:\Sicherung Nr. [1-x] (F:\Backup No. [1-x])