In the 'H7 family, the VBAT-powered backup-SRAM 1 is by default in an area of memory - together with other SRAMs - which is in MPU tagged as Type Normal, Write-back, write allocate cache attribute. This means, that writes to backup-SRAM are not stored into that SRAM immediately, only after the cache controller decides to flush it.
In other words, if the user resets (or powers down/up) the mcu after such write, that write gets lost. This is a rather surprising behaviour for a backup RAM.
Users may choose to either perform a manual cache flush after such write (e.g. as user PMath.4 demonstrated), or program the MPU so that the given area is set to Type Device (which is also automatically non-cacheable). Note, that even in tha latter case those writes are not trivial, especially if they are not-word-and-aligned, due to the backup-SRAM being protected by ECC.