Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Disk almost full since external backup (Ubuntu / Swap)

Disk almost full since external backup (Ubuntu / Swap)

Scheduled Pinned Locked Moved Solved Support
backupsbackblazecleanup-backups
10 Posts 3 Posters 1.8k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    meaculpa
    wrote on last edited by girish
    #1

    Hey,

    I made my first external backup (6+ apps) to Backblaze using encrypted tarballs for my apps, and my local server backup space was freed, but now my "Everything else (Ubuntu, Swap...)" disk usage grew +200 gb... I guess these are the local compressed files?

    Will this space be freed on the next backup cycle? or will it freeze my disk? im a bit concerned and switched to rsync for now but it might result in higher backup costs.

    Do I have to free this space manually? If yes, where can I find the potential disk fillers?

    I dont want to recover from full disk 🙂

    Thanks for the help!!

    1 Reply Last reply
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      The backup tarballs are streamed so they are not stashed on the disk as such. Once you have made a full backup to Backblaze, you have to cleanup the old backups on the filesystem manually. This is not done automatically since deleting backups is always a bit dangerous without the user being aware of. If you have not specially configured the backup location in the past, then those would be in /var/backups. Again only after a full backup to Backblaze was made, it is safe to delete all files in that folder.

      1 Reply Last reply
      1
      • M Offline
        M Offline
        meaculpa
        wrote on last edited by
        #3

        Thank you very much for clarifying!

        1 Reply Last reply
        0
        • M Offline
          M Offline
          meaculpa
          wrote on last edited by
          #4

          Hey @nebulon ,
          the local storage problem was solved, but now the backups fill up on Backblaze: old backups are not getting deleted from my bucket automatically. I have my retention policy set to 2 days, but older backups remain on the cloud storage. Did I miss something again, or is this automatic behaviour not intended?
          Thanks for your help again!

          1 Reply Last reply
          0
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            @meaculpa If you go to Backups -> Clean Backups and then check the logs (the button in the section below it), do you see any errors?

            M 1 Reply Last reply
            0
            • girishG girish

              @meaculpa If you go to Backups -> Clean Backups and then check the logs (the button in the section below it), do you see any errors?

              M Offline
              M Offline
              meaculpa
              wrote on last edited by
              #6

              @girish I just waited another backup cycle to doubl check, but the backups really pile up on Backblaze.

              The Cloudron Backup Listing shows only the recent two Backups (I have 1 backup per day and 2 days retention policy configured).

              When i clean manually, like you suggested it does not throw any errors, I just get

              box:tasks setCompleted - 277: {"result":{"removedBoxBackupIds":[],"removedAppBackupIds":[]},"error":null}
              

              To throw in some numbers, I have ~110gb occupied on my server, and the bucket on Backblaze is at ~600gb.

              I use encrypted tarballs.

              If I can do anything ot help debug, pleas let me know!

              1 Reply Last reply
              0
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #7

                @meaculpa said in Disk almost full since external backup (Ubuntu / Swap):

                The Cloudron Backup Listing shows only the recent two Backups (I have 1 backup per day and 2 days retention policy configured).

                Oh, that sounds like maybe the backblaze backend is not deleting stuff. Let me quickly test if there is some obvious bug before we can dig into some of your logs further.

                1 Reply Last reply
                0
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #8

                  @meaculpa The delete seems to work fine from Cloudron side but it seems that backblaze has quite a few quirks!

                  • First, if you delete, it doesn't delete immediately. The file tree which you see in the backblaze UI may not be the latest files even. They might be gone. I can confirm this because if you try to delete something from their dashboard, it shows this warning:

                  2787d63c-5536-40c0-9a95-513eecb8c8c5-image.png

                  • Second, each bucket also has a life cycle rule which defaults to keep all versions. Reading the lifecycle docs, it says "This is very helpful, because it means the old versions are there if the original file is accidentally deleted.". So, in the lifecycle UI below, you have to select the third one and select 1 day. That way I think the deleted files will be truly removed after a day.

                  6fc74c4d-2579-434b-8816-1f858a557107-image.png

                  In my b2 ui, i see this:

                  8afd0048-2d45-43fa-9412-078e96ff3a3e-image.png

                  I haven't seen an explanation anywhere but I think '*' means deleted but it will be kept around based on lifecycle settings.

                  M 1 Reply Last reply
                  0
                  • girishG girish

                    @meaculpa The delete seems to work fine from Cloudron side but it seems that backblaze has quite a few quirks!

                    • First, if you delete, it doesn't delete immediately. The file tree which you see in the backblaze UI may not be the latest files even. They might be gone. I can confirm this because if you try to delete something from their dashboard, it shows this warning:

                    2787d63c-5536-40c0-9a95-513eecb8c8c5-image.png

                    • Second, each bucket also has a life cycle rule which defaults to keep all versions. Reading the lifecycle docs, it says "This is very helpful, because it means the old versions are there if the original file is accidentally deleted.". So, in the lifecycle UI below, you have to select the third one and select 1 day. That way I think the deleted files will be truly removed after a day.

                    6fc74c4d-2579-434b-8816-1f858a557107-image.png

                    In my b2 ui, i see this:

                    8afd0048-2d45-43fa-9412-078e96ff3a3e-image.png

                    I haven't seen an explanation anywhere but I think '*' means deleted but it will be kept around based on lifecycle settings.

                    M Offline
                    M Offline
                    meaculpa
                    wrote on last edited by
                    #9

                    @girish Holy moly, this is why they charge less than other providers, cause they keep all the data around forever as the default.

                    Thank you very much for helping me solve this third-party issue! Maybe this hint could be added to the backup docs.

                    I made the settings according to your suggestion and will observe if it works.

                    Thanks again!!

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      meaculpa
                      wrote on last edited by meaculpa
                      #10

                      I can confirm that, now that the lifecycle settings are correct, backups get physically deleted from B2.

                      1 Reply Last reply
                      1
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search