Possible backup bugs

Short story
Backup files takes space on HDD but doesn’t shown in Backup section of Admin UI.

Long story
I do have DO plan that gives me 40GB total.
Now I have only 2.2 GB free spaces.

/var/discource takes

21.2GiB [##########] /shared
3.8MiB [          ] /.git
172.0KiB [          ] /image
108.0KiB [          ] /templates
24.0KiB [          ] /samples
20.0KiB [          ]  launcher
16.0KiB [          ]  discourse-setup
12.0KiB [          ] /containers
12.0KiB [          ]  README.md
12.0KiB [          ] /scripts
4.0KiB [          ] /cids
4.0KiB [          ] /bin
4.0KiB [          ]  Vagrantfile
4.0KiB [          ]  .gitignore

Then /var/discourse/shared/standalone

11.4GiB [##########] /backups
    5.7GiB [####      ] /uploads
    2.5GiB [##        ] /postgres_data
  867.4MiB [          ] /postgres_data_old
  736.4MiB [          ] /log
   70.6MiB [          ] /redis_data
  164.0KiB [          ] /postgres_run
   28.0KiB [          ] /state
   4.0KiB [          ] /postgres_backup

Then
/var/discourse/shared/standalone/backups/default (one without GZ)

5.8GiB [##########]  da-stereo-2017-02-23-033658-v20170215151505.tar
5.7GiB [######### ]  da-stereo-2017-02-20-033130-v20170215151505.tar.gz

I have following configuration:
Backup: enabled
Maximum backups: 1

##PROBLEM
Only one backup visible in Admin UI

I may have several “invisible” backup files that eats all the free space.

I use magic that removes all backup (visible and invisible)

rm -f /var/discourse/shared/standalone/backups/default/*

You don’t because as you see you have 11GiB of backups, and since each is a little more than 5GB that only hold 2 backups.

As to having that one backup with the gz end, that’s strange are you running the latest version of Discourse?

It’s possible that during the backup process you ran out of space and it got in this bad state, I recommend getting a bigger disk since your forum is very big.

2 Likes

Yes, NOW it’s only one invisible.

But I was in bad situation with 502 problem for a day due invisible backup files.

v1.8.0.beta5 +53 version

My forum has
127,9 k messages
and 770 users

It’s not too much I think :slight_smile:

You host 5.7GiB of static files, and that’s a lot.

2 Likes