As suggested before.. I got it to write and make a backup that isn’t 0 bytes by changing the line:
$backup[‘path’] = ‘..\\wp-backup-db’;
to this
$backup[‘path’] = ABSPATH . ‘wp-backup-db/’;
The previous post gave a path thats hardset .. by using ABSPATH it doesn’t make it server specific, and will just pull your absolute path from the global variable. Or at least that worked for me.
Not exactly sure whats causing people have have 0 byte files, mine makes a backup db thats 10 megs …