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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Backup "Schedule and Retention" not applied? (CIFS Mount)

    Support
    backups cleanup-backups
    4
    12
    409
    Loading More Posts
    • 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.
    • P
      p44 translator last edited by girish

      Old backups are not deleted based on retention policy. It seems this affects after last 7.0 update.

      This is a backup on Hetzner storage box as CIFS Mount

      Schermata 2021-11-14 alle 11.04.04.png

      Above you can see folders in storage box.

      Schermata 2021-11-14 alle 11.04.40.png

      Above you can see "Schedule and Retention"

      I noticed this because last backup showed an error due to the disk full.

      Is anyone else having the same problem?

      Thank's

      jdaviescoates 1 Reply Last reply Reply Quote 0
      • jdaviescoates
        jdaviescoates @p44 last edited by jdaviescoates

        @p44 from the docs https://docs.cloudron.io/backups/#retention-policy :

        The following are some of the important rules used to determine if a backup should be retained:

        • For installed apps and box backups, the latest backup is always retained regardless of the policy. This ensures that even if all the backups are outside of the retention policy, there is still atleast one backup preserved. This change also ensure that the latest backup of stopped apps is preserved when not referenced by any box backup.

        • An App backup that was created right before an app updates is also marked as special and persisted for 3 weeks. The rationale is that sometimes while the app itself is working fine, some errors/bugs only get noticed after a couple of weeks.

        • For uninstalled apps, the latest backup is removed as per the policy.

        • If the latest backup is already part of the policy, it is not counted twice.

        • Errored and partial backups are removed immediately.

        I use Cloudron with Gandi & Hetzner

        P 1 Reply Last reply Reply Quote 4
        • P
          p44 translator @jdaviescoates last edited by

          @jdaviescoates Thank's for remembering Cloudron retention policy but I think something is not working.

          This is now, FTP folders VS Cloudron info's:

          Schermata 2021-11-16 alle 11.15.16.png

          Schermata 2021-11-16 alle 11.15.19.png

          M 1 Reply Last reply Reply Quote 0
          • M
            msbt App Dev @p44 last edited by msbt

            @p44 cwd into the folders and check if all of them are complete backups, there are probably app backups from updates in those folders, they aren't listed in the backups view, only when you open each apps settings.

            P 1 Reply Last reply Reply Quote 4
            • girish
              girish Staff last edited by

              To extend what @msbt said, if you see only a single app_xx named file inside, it's only an app backup and not a full backup. A full backup will contain all your apps and in addition two files named box_yy and mail_zz.

              1 Reply Last reply Reply Quote 1
              • P
                p44 translator @msbt last edited by

                @msbt @girish I checked inside each folders and they have only one "mail" backup, not the app backup.

                Does this mean that the backup was not successful, although it did not have any errors?

                Schermata 2021-11-16 alle 20.46.46.png Schermata 2021-11-16 alle 20.46.40.png Schermata 2021-11-16 alle 20.46.34.png

                girish 1 Reply Last reply Reply Quote 1
                • girish
                  girish Staff @p44 last edited by

                  @p44 This seems similar to the bug reported by @d19dotca in https://forum.cloudron.io/topic/5936/questions-on-ovh-object-storage-with-segments-openstack-bucket-container . Looks like maybe mail backups are not getting cleaned up properly for some reason. Let me investigate.

                  1 Reply Last reply Reply Quote 3
                  • girish
                    girish Staff last edited by

                    There was indeed a bug cleaning up mail backups. This is fixed in coming release. Should be out tomorrow.

                    P 1 Reply Last reply Reply Quote 4
                    • P
                      p44 translator @girish last edited by

                      @girish Thank's a lot Girish, but it seems that the folders contain only mail backups and not app backups, even if system considered "done" – but not showed – backup.

                      P 1 Reply Last reply Reply Quote 0
                      • P
                        p44 translator @p44 last edited by p44

                        @girish There is something not working with backup system. Old backups they are not deleted and disc fills up.

                        Schermata 2021-11-20 alle 12.58.14.png

                        Listed backups on FTP now:

                        Schermata 2021-11-20 alle 13.00.31.png

                        Listed backups on Cloudron:

                        Schermata 2021-11-20 alle 13.01.12.png

                        I hope this is sufficient enough to initiate a more detailed investigation.

                        Edit: Some folders contains only mail folders and not all app files, even if backup is considered as DONE

                        Edit2: I think problem is solved with latest version 7.0.4

                        girish 1 Reply Last reply Reply Quote 1
                        • girish
                          girish Staff @p44 last edited by

                          @p44 yes correct, this is what I fixed in 7.0.4

                          P 1 Reply Last reply Reply Quote 2
                          • P
                            p44 translator @girish last edited by

                            @girish Thank's a lot 👏👏

                            1 Reply Last reply Reply Quote 1
                            • First post
                              Last post
                            Powered by NodeBB