Preimagebackup script calling bug

It appears that the preimagebackup.bat script is always call with %1 = 1
Debugging the preimagebackup.bat :

@echo off

echo argcall : %1 %2 %3 >> C:\temp\urbackupcall.txt
...
exit /b 0

Incremental image backup :

type c:\temp\urbackupcall.txt
argcall : 1 “R9Z1xkiPdr1t4tqqad9h”

Then full image backup :

type c:\temp\urbackupcall.txt
argcall : 1 “R9Z1xkiPdr1t4tqqad9h”
argcall : 1 “R9Z1xkiPdr1t4tqqad9h”

Regards,

BTW, Server version 2.1.19 Client version 2.1.19-cbt …

Maybe related to ZFS backend = incremental forever = 1 ?

Yeah, on the client side it looks like a incremental backup. I’ll look into this…

Does 2.1.20 fix this issue ?

Thx

After upgrading and testing : it doesn’t …

Any news about this issue ?

Regards,

FYI, this bug is still present even with Server 2.2.7 / client 2.2.5-cbt.
Any news about the issue ?

Regards,

For what do you need this parameter to be different? As said, it is a incremental image backup except for the server “label”…

E.g, in order to exclude SQL Databases from incremental backups (Monday to Friday) and include them with complete backups (week-end) :

@echo off

:: Full image backup : Including SQL Databases
if %1==0 reg delete HKLM\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToSnapshot /v "SQL Databases" /f

:: Incremental image backup : Excluding SQL Databases
if %1==1 reg add HKLM\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToSnapshot /v "SQL Databases" /t REG_MULTI_SZ /d C:\SQLDatabases\* /f

reg delete HKLM\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToSnapshot /v "SQL Databases" /f

exit /B 0

Hmm I guess adding another parameter for synthetic full backups would be the solution.

For your specific problem it would be better to have image backups with virtual clients though. Your database data gets regularily added and removed from the backup images wasting space.
What would work currently is excluding it always and backing it up as files.

Yeah this should be very nice :yum:

This is what i do, i.e always excluding databases and running a SQL task on week days to backup db on a NAS share on the remote site (clients are internet clients).
But the must would be to have at least a “full” image including SQL databases per week on the main site (headquarter).