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}"
...
...
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 parameters executing script
Last edited by streik on 13 Dec 2022, 22:49, edited 1 time in total.
Re: We need variables {STRING}, {TIMESTAMP}, {TYPE} and {FILENAME} among others, and we can pass parameters executing sc
but many of those can be obtained using parameters.
--
Luis Cobian
Cobian Backup's creator
Luis Cobian
Cobian Backup's creator
Re: We need variables {STRING}, {TIMESTAMP}, {TYPE} and {FILENAME} among others, and we can pass parameters executing sc
Add parameter %TYPE = Type of backup = full, incremental, differential
Thanks
Thanks
Last edited by streik on 13 Dec 2022, 22:52, edited 1 time in total.
Re: We need variables {STRING}, {TIMESTAMP}, {TYPE} and {FILENAME} among others, and we can pass parameters executing sc
What would be the one that the program is currently doing. If you set it to "full", but it is currently performing an incremental, the %TYPE variable should return incremental.