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. Backups not getting cleaned up from ext4 block storage

Backups not getting cleaned up from ext4 block storage

Scheduled Pinned Locked Moved Solved Support
cleanup-backupsbackupsbackup-storage
7 Posts 3 Posters 1.4k Views 4 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.
    • B Offline
      B Offline
      bigdot
      wrote on last edited by
      #1

      Can anyone help me understand what is going on in here ?
      wft_backups.png

      I just increased the storage size from 100GB to 200GB yesterday and it's all filled withing one backup cycle (last night).

      It seems that the "cleanup backups" decides to keep absolutely all backups (in the logs).

      Backup policy is every day at 11PM (tarball) and i have 2 apps that contain lots of pictures and are as large as 9GB. But still, i think the size of the backup is way too big.

      Is there a possibility to manually delete all backups and do an immediate backup to see the size of it ?

      nebulonN 1 Reply Last reply
      0
      • B bigdot

        Can anyone help me understand what is going on in here ?
        wft_backups.png

        I just increased the storage size from 100GB to 200GB yesterday and it's all filled withing one backup cycle (last night).

        It seems that the "cleanup backups" decides to keep absolutely all backups (in the logs).

        Backup policy is every day at 11PM (tarball) and i have 2 apps that contain lots of pictures and are as large as 9GB. But still, i think the size of the backup is way too big.

        Is there a possibility to manually delete all backups and do an immediate backup to see the size of it ?

        nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #2

        @bigdot indeed there is something apparently wrong if you have 2 apps with around 9Gb of data, this should not fillup so quickly or at all. Can you maybe look into the mounted disk via SSH what is actually stored there and how much is used? Just to verify that this is not just a display bug in the UI.

        B 1 Reply Last reply
        0
        • nebulonN nebulon

          @bigdot indeed there is something apparently wrong if you have 2 apps with around 9Gb of data, this should not fillup so quickly or at all. Can you maybe look into the mounted disk via SSH what is actually stored there and how much is used? Just to verify that this is not just a display bug in the UI.

          B Offline
          B Offline
          bigdot
          wrote on last edited by bigdot
          #3

          @nebulon already did that mate

          /mnt/sync $ du -sh .
          186G	.
          

          The report in cloudron is accurate.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            bigdot
            wrote on last edited by
            #4

            waaaait ... @nebulon

            Is cloudron trying to backup apps that have external storage ? Cause i thought it shouldn't. I have a stopped syncthing instance that synced about 15GB on that external mount. There's also a nextcloud with the same config. This might be the culprit, rignt ?

            Screenshot 2021-06-04 at 20.09.15.png

            But still. Even if i disable backups for this app, i still need to delete the existing backups. How do i do that ? Is manually deleting backup forlders an option ? Or will this mess up cloudron's twinkles ?

            1 Reply Last reply
            0
            • B Offline
              B Offline
              bigdot
              wrote on last edited by
              #5

              So. I deleted some apps and feed some space (including the syncthing). But still, i need a way to delete existing backups.

              So @nebulon @girish please help with that.

              It looks to me like when a backup fails due to insufficient disk space, it does not rollback and backups that were created are never removed/cleaned.

              Cloudron_backups.png

              girishG 1 Reply Last reply
              0
              • B bigdot

                So. I deleted some apps and feed some space (including the syncthing). But still, i need a way to delete existing backups.

                So @nebulon @girish please help with that.

                It looks to me like when a backup fails due to insufficient disk space, it does not rollback and backups that were created are never removed/cleaned.

                Cloudron_backups.png

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #6

                @bigdot It is safe to manually delete the backups. You can delete the "timestamped" directories without any issues. There is a folder called "snapshot", do not delete this since it has the state of the backup as well and changing this would corrupt future backups. Once you delete the entries manually, you can go to Backups -> Cleanup backups and those entries will get removed from the UI as well.

                B 1 Reply Last reply
                2
                • girishG girish

                  @bigdot It is safe to manually delete the backups. You can delete the "timestamped" directories without any issues. There is a folder called "snapshot", do not delete this since it has the state of the backup as well and changing this would corrupt future backups. Once you delete the entries manually, you can go to Backups -> Cleanup backups and those entries will get removed from the UI as well.

                  B Offline
                  B Offline
                  bigdot
                  wrote on last edited by
                  #7

                  @girish that worked. Thanks

                  1 Reply Last reply
                  0
                  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