Usage of variables in BackupDrive

Variables are supported since the first version of BackupDrive. Variables are small placeholders that can be inserted into text fields. The software then replaces these placeholders with current values, such as: the time or the current username. These are mainly used in the backupjob settings. Variables such as the current timestamp or the computer name are often added to the destination path of the backup.
Variables are also used in notification emails. Variables are used to query the current information of a backup and include these dynamically into the text of the email.

General variables

The variables listed in the table below can be used as placeholders in most areas of the program.
To insert a variable you have to click on the pin symbol. A window will appear showing all available variables with a description and an example. Now the desired placeholder can be selected and inserted. Another option is to copy one of the variables listed here and paste it directly into the text box.
However, it should be noted that not all text boxes support variables.

VariableExample valueDescription
{year}2018Year
{month}02Month
{day}25Day
{hour}17Hour
{minute}32Minute
{second}08Second
{time_in_millis}1500890770597Time in milliseconds (UNIX-Timestamp)
{timestamp}2017-07-24_11-53Timestamp
{computer_name}Office-ComputerComputername
{java_vendor}Oracle CorporationJava-Vendor
{java_version}1.8.0_45Java-Version
{os_arch}amd64Architecture of the operating system
{os_name}Windows 8.1Name of the operating system
{os_version}6.3Version of the operating system
{user_name}PeterUsername
{user_language}deLanguage of the user
{version}1.0.0BackupDrive version

Variables for email notifications

The variables listed in the following table can only be used for the email notification feature.
These are added to the backupjob settings in the Email Notification tab by clicking the pin icon. This will allow the subject and content of the email to send accurate information about the backup you have performed.

VariableExample valueDescription
{status}failed (FAILED)Transmission status
{job_name}Backup_DocumentsBackupJob name
{transm_mode}FTPTransmission mode
{target_dir}/Backup/{timestamp}/Documents/Target directory of the backup
{size_transf}0 BTransferred data size
{size_source}100 KiBTotal space
{tansf_perc}47 %Transferred in per cent
{count_dirs}24Number of directories
{count_files}56Number of files
{count_transf_dirs}19Number of transmitted directories
{count_transf_files}37Number of transmitted files
{starttime}06.08.2018 15:17:12Start time
{endtime}06.08.2018 15:18:01End time
{duration}49 SecondsTransmission time
{duration_ms}49000Transmission time in milliseconds
This page was created on 08.07.2019 and was viewed 1205 times!