Auto-zip the last backup

The idea is simple: zip the last backup (for specific clients) as soon as it’s created, and upload it to a cloud.

Either is fine:

  • urbackup server runs a script on new backup completed event
  • a script runs periodically and checks if backup is ready (and not in progress) before zipping.

So how do I do this? Thanks!

On Linux /usr/local/etc/urbackup contains (or can contain) scripts as per manual chapter 6.4 Pre and post backup scripts on client and server.

On Windows, scripts are searched for in C:\Program Files\UrBackup\ with a .bat file extension.

Scripts receive arguments on backup type and a number indicating whether this is the main client (0) or subclient1 (1), 2,3 etc - if youhave any. Plus something else which I forget but it should be in the manual.

One thought - if your server is using the btrfs fileystem (possible under win with a bit of fiddling) - then the backup will be compressed/deduped and other stuff and (A) wont benefit from zipping () would require brfs send/receive to be transmitted.
Most backups are cleverly symbolically linked to save huge amounts of space (eg incrementals). Why not try zipping up a backup that’s been done and check the space saving (if any) and then see how long (I suspect incredibly long) it takes to send it to the cloud.
BTRFS supports (I think) 3 types of compression (lzma, zstd +Iforget). Sorry, I don’t know about doze. But, I woule expect that, if there is some sort of fileysttem compression - urbackup would know/support it.
Good luck

Just what I wanted, thanks