PBX Default Backup size

Hi,
My PBX Default Backup is composed of:

  • MySQL Config Server

  • MySQL CDR Server

  • directory /etc/dahdi

  • Asterisk DB

  • directory ASTETCDIR

  • directory AMPBIN

  • directory AMPWEBROOT
    (yeah I fiddled with this composition a bit it’s not the default)
    It currently packs to over 200MB.
    Doing tar -tvf my-backup-file.tgz |cut -c29- |sort -nr
    reveals a lot of 8-4MB files in /var/www/html/admin/modules/_cache/ like :

    8906017 2014-10-08 08:51 ./var/www/html/admin/modules/_cache/endpoint-12.0.0.11.tgz.gpg

for example.
Can I safely exclude /var/www/html/admin/modules/_cache/ directory from backing up ?
(and which directory is it, AMPWEBROOT ?)

Thanks in advance,
el_es

Following on to myself,
my backup file size grew to almost 700MB…
but getting a list of files included in the backup file, I get

-rw-r–r-- asterisk/asterisk 609401532 2015-05-12 12:06 ./mysql-4.sql

Is this related to the MySQL CDR Server template ?

It seems as if the module cache is not being cleaned even though http://issues.freepbx.org/browse/FREEPBX-4985 is marked fixed :

8906017 2014-10-08 08:51 ./var/www/html/admin/modules/_cache/endpoint-12.0.0.11.tgz.gpg
 8896334 2014-10-01 21:49 ./var/www/html/admin/modules/_cache/endpoint-12.0.0.10.tgz.gpg
 7782115 2015-04-15 10:26 ./var/www/html/admin/modules/_cache/ucp-12.0.17.tgz.gpg
 7781492 2015-04-27 09:32 ./var/www/html/admin/modules/_cache/ucp-12.0.22.tgz.gpg
 7781309 2015-04-23 09:20 ./var/www/html/admin/modules/_cache/ucp-12.0.21.tgz.gpg
 7780896 2015-04-21 09:36 ./var/www/html/admin/modules/_cache/ucp-12.0.20.tgz.gpg
 7773722 2015-04-13 09:03 ./var/www/html/admin/modules/_cache/ucp-12.0.15.tgz.gpg
 7773597 2015-03-26 09:25 ./var/www/html/admin/modules/_cache/ucp-12.0.12.tgz.gpg
 7771446 2015-03-20 08:35 ./var/www/html/admin/modules/_cache/ucp-12.0.11.tgz.gpg
 7768856 2015-02-16 11:10 ./var/www/html/admin/modules/_cache/ucp-12.0.4.tgz.gpg
 7766872 2015-02-20 15:26 ./var/www/html/admin/modules/_cache/ucp-12.0.7.tgz.gpg
 7766550 2015-02-18 15:38 ./var/www/html/admin/modules/_cache/ucp-12.0.6.tgz.gpg
 7765542 2015-03-02 09:52 ./var/www/html/admin/modules/_cache/ucp-12.0.9.tgz.gpg
 7749728 2015-02-10 13:07 ./var/www/html/admin/modules/_cache/ucp-12.0.2.tgz.gpg
 7749726 2015-02-05 08:47 ./var/www/html/admin/modules/_cache/ucp-12.0.1.tgz.gpg

(yes it still keeps gpg files from modules installed back in 2014…)

(the above is an excerpt of tar -tvf $my-backup-file.tgz |cut -c29- |sort -nr

(as a reply to whether it’s related to CDR Server)
I split the CDR Server backup to another backup, and the file now shown in Default Backup is not mysql-4.sql but mysql-3.sql, and seems to be much smaller ( 14147207 2015-05-22 12:00 ./mysql-3.sql)

It looks like this is on the radar http://issues.freepbx.org/browse/FREEPBX-8791

Thanks!
so I can safely purge how many of the .gpg cache I want, manually too ?

yeah…

maybe something like

find /var/www/html/admin/modules/_cache/*.tgz.pgp -mtime +90 -exec rm {} \;

Will delete files over 90 days old in the specified directory

s/php/gpg, :wink:

other than that, thank you very much indeed :slight_smile:

fixed above… :coffee: :coffee: :coffee:

Thanks!

Should be .tgz.gpg
find /var/www/html/admin/modules/_cache/*.tgz.gpg -mtime +90 -exec rm {} ;

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.