Skip to main content

Substitutions

Substitutions are placeholders which can be used in the backup definition configuration.

SubstituteCapturesPopulated variablePart of interpolated_timestampEquivalent RegEx
%Y4-digit Year$yearYear[0-9]{4}
%y2-digit Year$year_shortYear[0-9]{2}
%M2-digit Month$monthMonth0[1-9]|1[0-2]
%D2-digit Day$dayDay0[1-9]|[1,2][0-9]|3[0,1]
%h2-digit Hour$hourHour[0,1][0-9]|2[0-3]
%m2-digit Minute$minuteMinute[0-5][0-9]
%s2-digit Second$secondSecond[0-5][0-9]
%iDecimal number without leading zerosnonenone0|[1-9][0-9]*
%ISequence of decimal digitsnonenone[0-9]+
%xHexadecimal number without leading zerosnonenone0|[1-9A-Fa-f][0-9A-Fa-f]*
%wAlphanumeric characters and underscorenonenone[_0-9A-Za-z]+
%XSequence of hexadecimal digitsnonenone[0-9A-F]+
%vAnything a pattern variable would capturenonenone[^\\./]+
%AAny sequence of charactersnonenone.+
%%Percent symbolnonenone%
%#Hash/Pound symbolnonenone#