V16 to V17 with a wrinkle

Good day all!

I have a fairly simple “backup V16 and restore to V17” upgrade to do but with a wrinkle.

V16 on dedicated hardware - backup cannot complete as there isn’t enough disk space. I’m trying to backup everything including call recordings and this is creating a very large file.

V17 in a vm - up and running already but complete blank slate waiting for the backup to be restored.

How do I create a backup of my old system if there’s not enough disk space?

I’ve tried mounting a USB drive and setting the backup to save to it but it seems it needs to save to the disk first and then move to the USB drive. I also tried setting a SSH location via Filestore (on the new server) with similar results.

Any suggestions or maybe a step-by-step guide somewhere that I can work through?

Thanks!

You might consider running the backup from the command line using the PHP TMPDIR hack.

First, get your backup ID:

$ sudo -u asterisk fwconsole backup --list

Then, backup:

$ sudo -u asterisk TMPDIR=/path/to/tmp/dir/on/big/usb/with/asterisk/user/write/permissions/ fwconsole backup --backup your-backup-id

Good thought. In the past I’ve symlinked the directory to the external drive, never knew about the tmpdir option