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. Feature Requests
  3. Is it possible to remove / reset the listed backups in an app?

Is it possible to remove / reset the listed backups in an app?

Scheduled Pinned Locked Moved Solved Feature Requests
backupsfeature-request
19 Posts 4 Posters 3.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.
  • d19dotcaD Offline
    d19dotcaD Offline
    d19dotca
    wrote on last edited by girish
    #1

    I ask this question because I was running into a lot of issues with backups the other day and this has caused a lot of unnecessary backup links in the backup pages of some apps (the ones that didn't cause issues, lol). And since some of the ones past 3 days or so are no longer accessible either, is it possible I can simply reset this somehow?

    I think since all of the backup issues, I may once I get a final solution in place just wipe the backups from the backup disk and start fresh with that part, and as such I'd love to have the backup links removed from the apps too. Is this possible at all?

    Screen Shot 2020-04-01 at 9.25.53 AM.png

    --
    Dustin Dauncey
    www.d19.ca

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

      Currently, they are tied to the periodic backup cleaner cron job. There is no way to manually delete backups or trigger manual deletion of those entries. I will mark this as a feature request.

      d19dotcaD 1 Reply Last reply
      4
      • girishG girish

        Currently, they are tied to the periodic backup cleaner cron job. There is no way to manually delete backups or trigger manual deletion of those entries. I will mark this as a feature request.

        d19dotcaD Offline
        d19dotcaD Offline
        d19dotca
        wrote on last edited by
        #3

        @girish Hi Girish. Just wanted to check on this as quite a long time has passed now (crazy how quick time moves). I still don't see a way to remove old backups, unless I'm missing it?

        Right now I am in a situation where I migrated servers and as such the backup method changed just prior, meaning the old backups in my display of backups performed are no longer valid as they do not exist, and I'm unsure how to clear them.

        f08e9272-239e-4a06-9524-e94721ced7bd-image.png

        I don't think the retention policy is an cleaning those up either but I suspect because I remember you saying at one point that it keeps previous versions and such as backups for a longer period. Hoping that'll go away on it's own then even if it can't actually delete the files from anywhere since the files no longer exist from 3 weeks back for example.

        --
        Dustin Dauncey
        www.d19.ca

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

          I think it's a good idea for the "cleanup backups" button to check if the backup exists remotely and "cleanup" these entries.

          The bigger feature request of deleting backups from Cloudron itself, I am a bit hesitant. If there is a security issue and some admin's credentials got compromised, I don't want an attacker to be able to delete backups. That will clean out everything, too dangerous.

          d19dotcaD 1 Reply Last reply
          2
          • girishG girish

            I think it's a good idea for the "cleanup backups" button to check if the backup exists remotely and "cleanup" these entries.

            The bigger feature request of deleting backups from Cloudron itself, I am a bit hesitant. If there is a security issue and some admin's credentials got compromised, I don't want an attacker to be able to delete backups. That will clean out everything, too dangerous.

            d19dotcaD Offline
            d19dotcaD Offline
            d19dotca
            wrote on last edited by
            #5

            @girish That's fair, if the Cloudron backup process can check for existing backups and remove from its system what no longer exists on the backup device would be perfect.

            --
            Dustin Dauncey
            www.d19.ca

            girishG 1 Reply Last reply
            0
            • d19dotcaD d19dotca

              @girish That's fair, if the Cloudron backup process can check for existing backups and remove from its system what no longer exists on the backup device would be perfect.

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

              @d19dotca Yes indeed, not sure why we didn't think about that before! Will try to get this in the next release.

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

                This is implemented in the next release (6.2). If you click on Clean Backups, it will check if the files exist in remote and they will get removed from the listing.

                d19dotcaD 2 Replies Last reply
                4
                • girishG girish

                  This is implemented in the next release (6.2). If you click on Clean Backups, it will check if the files exist in remote and they will get removed from the listing.

                  d19dotcaD Offline
                  d19dotcaD Offline
                  d19dotca
                  wrote on last edited by
                  #8

                  @girish Thanks Girish! 🙂 That seriously helps my OCD, haha.

                  --
                  Dustin Dauncey
                  www.d19.ca

                  1 Reply Last reply
                  1
                  • girishG girish

                    This is implemented in the next release (6.2). If you click on Clean Backups, it will check if the files exist in remote and they will get removed from the listing.

                    d19dotcaD Offline
                    d19dotcaD Offline
                    d19dotca
                    wrote on last edited by
                    #9

                    @girish A couple ideas / things to check:

                    • Will the task also remove backups from the app-specific backup listings too, or just the overall Cloudron backups? Hopefully app backups too.
                    • Will it recognize backups if switching between two backup sources at all? For example, let's say I had a backup source #1, then switched to backup source #2 which in-turn removes backups from the list since they are no longer present in backup source #2, but then I switch it back later to backup source #1... will it recognize the backups stored in backup source #1 again? I wonder if this should be extended in a way to not only remove on cleanup task, but recognize on any backup location changes. It's probably a very fringe scenario, but I'm thinking maybe a scenario where one has a backup source used regularly but then maybe once a month or something does a full system backup to another location and flips it back again afterwards.

                    --
                    Dustin Dauncey
                    www.d19.ca

                    girishG 1 Reply Last reply
                    2
                    • d19dotcaD d19dotca

                      @girish A couple ideas / things to check:

                      • Will the task also remove backups from the app-specific backup listings too, or just the overall Cloudron backups? Hopefully app backups too.
                      • Will it recognize backups if switching between two backup sources at all? For example, let's say I had a backup source #1, then switched to backup source #2 which in-turn removes backups from the list since they are no longer present in backup source #2, but then I switch it back later to backup source #1... will it recognize the backups stored in backup source #1 again? I wonder if this should be extended in a way to not only remove on cleanup task, but recognize on any backup location changes. It's probably a very fringe scenario, but I'm thinking maybe a scenario where one has a backup source used regularly but then maybe once a month or something does a full system backup to another location and flips it back again afterwards.
                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #10

                      @d19dotca said in Is it possible to remove / reset the listed backups in an app?:

                      Will the task also remove backups from the app-specific backup listings too, or just the overall Cloudron backups? Hopefully app backups too.

                      Yes, app backups also.

                      Will it recognize backups if switching between two backup sources at all?

                      Unfortunately, no. Note that the cleanup itself only happens when you click "cleanup backups" or the nightly cron job. If you somehow avoid the "race" with the cron job, you should be OK...

                      I think one general issue with Cloudron backup system is that it doesn't have multiple destinations. We don't keep track of previous backup settings (intentionally, for security purposes) but this means that we cannot cleanup old backups properly and cannot restore/clone etc as we ll. I think we will add this soonish. After all the 3-2-1 methodology wants to have 2 backups in different locations which is currently not easily possible.

                      d19dotcaD ? 2 Replies Last reply
                      3
                      • girishG girish

                        @d19dotca said in Is it possible to remove / reset the listed backups in an app?:

                        Will the task also remove backups from the app-specific backup listings too, or just the overall Cloudron backups? Hopefully app backups too.

                        Yes, app backups also.

                        Will it recognize backups if switching between two backup sources at all?

                        Unfortunately, no. Note that the cleanup itself only happens when you click "cleanup backups" or the nightly cron job. If you somehow avoid the "race" with the cron job, you should be OK...

                        I think one general issue with Cloudron backup system is that it doesn't have multiple destinations. We don't keep track of previous backup settings (intentionally, for security purposes) but this means that we cannot cleanup old backups properly and cannot restore/clone etc as we ll. I think we will add this soonish. After all the 3-2-1 methodology wants to have 2 backups in different locations which is currently not easily possible.

                        d19dotcaD Offline
                        d19dotcaD Offline
                        d19dotca
                        wrote on last edited by
                        #11

                        @girish Oh yeah that's a good expansion actually, I was in the mindset of Cloudron only backing up to one place, but I think a good feature improvement for the future would be what you just wrote about... multi-location backups. I like that idea.

                        --
                        Dustin Dauncey
                        www.d19.ca

                        1 Reply Last reply
                        1
                        • girishG girish

                          @d19dotca said in Is it possible to remove / reset the listed backups in an app?:

                          Will the task also remove backups from the app-specific backup listings too, or just the overall Cloudron backups? Hopefully app backups too.

                          Yes, app backups also.

                          Will it recognize backups if switching between two backup sources at all?

                          Unfortunately, no. Note that the cleanup itself only happens when you click "cleanup backups" or the nightly cron job. If you somehow avoid the "race" with the cron job, you should be OK...

                          I think one general issue with Cloudron backup system is that it doesn't have multiple destinations. We don't keep track of previous backup settings (intentionally, for security purposes) but this means that we cannot cleanup old backups properly and cannot restore/clone etc as we ll. I think we will add this soonish. After all the 3-2-1 methodology wants to have 2 backups in different locations which is currently not easily possible.

                          ? Offline
                          ? Offline
                          A Former User
                          wrote on last edited by
                          #12

                          @girish This is perfect. I love the idea of a local backup and an S3 backup

                          girishG 1 Reply Last reply
                          1
                          • ? A Former User

                            @girish This is perfect. I love the idea of a local backup and an S3 backup

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

                            @atrilahiji https://forum.cloudron.io/topic/3818/backups-ability-to-add-multiple-storage-provider-location

                            robiR 1 Reply Last reply
                            2
                            • girishG girish

                              @atrilahiji https://forum.cloudron.io/topic/3818/backups-ability-to-add-multiple-storage-provider-location

                              robiR Offline
                              robiR Offline
                              robi
                              wrote on last edited by
                              #14

                              @girish can we add more detail on the behavior of the clean up backups button, and how it is supposed to work to the docs site?

                              The button isn't mentioned:
                              https://docs.cloudron.io/backups/#retention-clean-up

                              Conscious tech

                              girishG 1 Reply Last reply
                              1
                              • robiR robi

                                @girish can we add more detail on the behavior of the clean up backups button, and how it is supposed to work to the docs site?

                                The button isn't mentioned:
                                https://docs.cloudron.io/backups/#retention-clean-up

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

                                @robi I have added a note at https://docs.cloudron.io/backups/#cleanup-backups now

                                robiR 1 Reply Last reply
                                0
                                • girishG girish

                                  @robi I have added a note at https://docs.cloudron.io/backups/#cleanup-backups now

                                  robiR Offline
                                  robiR Offline
                                  robi
                                  wrote on last edited by
                                  #16

                                  @girish thanks, can you add what pressing the button does exactly?

                                  the previous expectation was to remove all on disk which are not in DB, which didn't work. Does it now?

                                  Conscious tech

                                  girishG 1 Reply Last reply
                                  0
                                  • robiR robi

                                    @girish thanks, can you add what pressing the button does exactly?

                                    the previous expectation was to remove all on disk which are not in DB, which didn't work. Does it now?

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

                                    @robi it's the other way around. it removes all in database which are not in disk. There is no way to remove a backup db entry.

                                    "Cloudron also keeps track of the backups in it's database. The Backup Cleaner checks if entries in the database exist in the storage backend and removes stale entries from the database automatically."

                                    robiR 1 Reply Last reply
                                    1
                                    • girishG girish

                                      @robi it's the other way around. it removes all in database which are not in disk. There is no way to remove a backup db entry.

                                      "Cloudron also keeps track of the backups in it's database. The Backup Cleaner checks if entries in the database exist in the storage backend and removes stale entries from the database automatically."

                                      robiR Offline
                                      robiR Offline
                                      robi
                                      wrote on last edited by
                                      #18

                                      @girish so what cleans from disk? 😉

                                      Conscious tech

                                      girishG 1 Reply Last reply
                                      0
                                      • robiR robi

                                        @girish so what cleans from disk? 😉

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

                                        @robi only the retention policy - https://docs.cloudron.io/backups/#retention-policy

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