Quantcast
Viewing all articles
Browse latest Browse all 1962

Cobian Reflector • We need variables {STRING}, {TIMESTAMP}, {TYPE} and {FILENAME} among others, and we can pass parameters executing script

We need variables {STRING}, {TIMESTAMP}, {TYPE} and {FILENAME} among others, and we can pass them as parameters when executing a script or program, in an event before or after the backup.

For example, these variables are necessary, because they make the work much easier, to be able to work later on the compressed files of the backup or folders created in the backup:

* {STRING} = Exactly the same integer string prefix or suffix, used by cobian

yyyy-mm-dd_hh;mm;ss_full

yyyy-mm-dd_hh;mm;ss_incremental

yyyy-mm-dd_hh;mm;ss_differential

* {FILENAME} = filename compress without timestamp, and without extension

* {FULLFILENAME} = filename compress with timestamp, and withOUT extension

{TIMESTAMP} = yyyy-mm-dd_hh;mm;ss without spaces, because the parameters can be worked without quotes if they are a whole word.

{TYPE} = full, incremental, differential

Examples of how cobian variables could be added, when executing a script through a command:

/C /MIN "script1.bat "{FILENAME}" {TYPE} {other_parameter} {other_parameter}"

/C /MIN "script2.bat "{DATEHOUR}" {other_parameter} {other_parameter}"

/C /MIN "script3.bat "{TYPE}" {other_parameter} {other_parameter}"

...
...

Statistics: Posted by streik — 13 Dec 2022, 14:19 — Replies 3 — Views 30



Viewing all articles
Browse latest Browse all 1962

Trending Articles