Backup not working

Hi all

When trying run a backup, runs for a long time, sticking at Adding items…

It then fails. This is the full error:

Initializing Backup 3
Backup Lock acquired!
Running pre-backup hooks…
Adding items…
Building manifest…
Creating backup…

gzip: stdout: No space left on device
/bin/tar: /var/spool/asterisk/tmp/20170720-063811-1500529091-13.0.190.7-1589636180.tgz: Wrote only 8192 of 10240 bytes
/bin/tar: Error is not recoverable: exiting now
Storing backup…
Whoops\Exception\ErrorException: mkdir(): Permission denied in file /var/www/html/admin/modules/backup/functions.inc/class.backup.php on line 356
Stack trace:

  1. Whoops\Exception\ErrorException->() /var/www/html/admin/modules/backup/functions.inc/class.backup.php:356
  2. Whoops\Run->handleError() :0
  3. mkdir() /var/www/html/admin/modules/backup/functions.inc/class.backup.php:356
  4. FreePBX\modules\Backup\Backup->store_backup() /var/www/html/admin/modules/backup/bin/backup.php:145

My backup volume is mounted on /var/spool/asterisk/backup.

Whilst the backup is running, and its adding items, the remaining space on / drops to 0 when it fails. When the backup startes the volume has 50% free (200gb). Any help would be great.

Bump! It would be nice to have backups.

Figured it out partially.

Backup Tar gets put in /var/spool/asterisk/tmp while running then moved to /var/spool/asterisk/backup

In my case, /var/spool/asterisk/backup did not have permissions for the asterisk user to write to this location.

However, a larger issue exists. At some point the backup will fail as no free space will exist on the local volume. It would appear to need 80% or so of the occupied space again as free, depending on compression.

Can we change where the temporary storage location is inside freepbx (/var/spool/asterisk/tmp) rather than mounting a spare volume at that location?

If you can, it would be under Advanced Settings.

Does not appear to be anywhere in there.