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 blocked by dodgy characters

Backups blocked by dodgy characters

Scheduled Pinned Locked Moved Support
backups
13 Posts 4 Posters 1.7k 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.
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #4

      I guess you are using rsync? With rsync, you are at the mercy of the supported characters by the backend. S3 has a set of safe characters - https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html . Most printable characters are accepted but the '?' indicates that it is some fancy non-printable character. Best bet is to either rename it or switch to tgz format...

      marcusquinnM 1 Reply Last reply
      0
      • girishG girish

        I guess you are using rsync? With rsync, you are at the mercy of the supported characters by the backend. S3 has a set of safe characters - https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html . Most printable characters are accepted but the '?' indicates that it is some fancy non-printable character. Best bet is to either rename it or switch to tgz format...

        marcusquinnM Offline
        marcusquinnM Offline
        marcusquinn
        wrote on last edited by
        #5

        @girish Yes, rsync - unfortunately, tarballs aren't an entirely free choice.

        I understand that one file might not be uploaded - but why does the whole process have to crap out?

        A 99.9999999999% backup is still significantly better than a 0% backup 😞

        Web Design https://www.evergreen.je
        Development https://brandlight.org
        Life https://marcusquinn.com

        nebulonN 1 Reply Last reply
        0
        • marcusquinnM marcusquinn

          @girish Yes, rsync - unfortunately, tarballs aren't an entirely free choice.

          I understand that one file might not be uploaded - but why does the whole process have to crap out?

          A 99.9999999999% backup is still significantly better than a 0% backup 😞

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

          @marcusquinn well we can't really decide which file is crucial for an app to work and which one can be lost after a restore. So we can't mark a backup as valid, if anything goes wrong during backup as that might just mean issues get unnoticed and one has a false sense of safety, which will then only hit if the backup is really required.

          It would be good to understand which character caused this though.

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

            I guess a way to fix is to encode local filenames accordingly and also decode to restart. Some filename mapping scheme. This will require some effort and have to see if it's worth the effort. Same thing can be used for large file names with encryption backend.

            marcusquinnM 1 Reply Last reply
            0
            • nebulonN nebulon

              @marcusquinn well we can't really decide which file is crucial for an app to work and which one can be lost after a restore. So we can't mark a backup as valid, if anything goes wrong during backup as that might just mean issues get unnoticed and one has a false sense of safety, which will then only hit if the backup is really required.

              It would be good to understand which character caused this though.

              marcusquinnM Offline
              marcusquinnM Offline
              marcusquinn
              wrote on last edited by
              #8

              @nebulon If you have access to Windows & Office, then create a .docx file and show hidden files in the Windows Explorer to see the temp file it creates while editing. It is whatever character is after the ~ and before the first letter. I can't tell from Cloudron and don't have MS Office. Anyone else here know? Sorry, I give all I have.

              Web Design https://www.evergreen.je
              Development https://brandlight.org
              Life https://marcusquinn.com

              1 Reply Last reply
              0
              • girishG girish

                I guess a way to fix is to encode local filenames accordingly and also decode to restart. Some filename mapping scheme. This will require some effort and have to see if it's worth the effort. Same thing can be used for large file names with encryption backend.

                marcusquinnM Offline
                marcusquinnM Offline
                marcusquinn
                wrote on last edited by
                #9

                @girish Maybe - or just skip the app and backup all other apps. I just think all or nothing fails risk more than log & continue errors.

                Web Design https://www.evergreen.je
                Development https://brandlight.org
                Life https://marcusquinn.com

                girishG 1 Reply Last reply
                1
                • marcusquinnM marcusquinn

                  @girish Maybe - or just skip the app and backup all other apps. I just think all or nothing fails risk more than log & continue errors.

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

                  @marcusquinn Right, I think this was suggested elsewhere as well to have the concept of "partial backups". Currently, cloudron only has full backups.

                  marcusquinnM 1 Reply Last reply
                  0
                  • girishG girish

                    @marcusquinn Right, I think this was suggested elsewhere as well to have the concept of "partial backups". Currently, cloudron only has full backups.

                    marcusquinnM Offline
                    marcusquinnM Offline
                    marcusquinn
                    wrote on last edited by
                    #11

                    @girish *If * there's not a single dodgy character in any Apps.

                    So, are you saying it is not possible top backup the main server and all other apps if just one App has a dodgy character in it?

                    It seems to me that if the system can write the error, then it is still functioning, but chooses to fail on that error than log and continue.

                    Not sure what to say, doesn't seem like a technical impossibility to me, more one of strategy and persuasion.

                    If there's a way to vote on it, I vote for 99.999999999% backups being preferred to 0% backups. What you can do with that I really don't know.

                    I can contribute in many ways but this might be a gatekeeper issue, so I'll leave that with you all to debate, and have to set myself a calendar reminder to check that page every time for errors to then hunt and delete the offending MS Office files.

                    Web Design https://www.evergreen.je
                    Development https://brandlight.org
                    Life https://marcusquinn.com

                    nebulonN 1 Reply Last reply
                    0
                    • marcusquinnM marcusquinn

                      @girish *If * there's not a single dodgy character in any Apps.

                      So, are you saying it is not possible top backup the main server and all other apps if just one App has a dodgy character in it?

                      It seems to me that if the system can write the error, then it is still functioning, but chooses to fail on that error than log and continue.

                      Not sure what to say, doesn't seem like a technical impossibility to me, more one of strategy and persuasion.

                      If there's a way to vote on it, I vote for 99.999999999% backups being preferred to 0% backups. What you can do with that I really don't know.

                      I can contribute in many ways but this might be a gatekeeper issue, so I'll leave that with you all to debate, and have to set myself a calendar reminder to check that page every time for errors to then hunt and delete the offending MS Office files.

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

                      @marcusquinn looks like those are two issues then. One is a full backup containing all apps and the platform and the other is the failing app backup alone.

                      I guess the second one is clear, that we can't keep that 99% backup since we don't know what failed and if that is relevant to the app.

                      The first one could have an option to exclude such an app then from the wholesome backup. Just not sure if that has unnoticed side-effects then if the whole server has to be restored, but I guess we could include the last working backup of the app in such a case?

                      robiR 1 Reply Last reply
                      0
                      • nebulonN nebulon

                        @marcusquinn looks like those are two issues then. One is a full backup containing all apps and the platform and the other is the failing app backup alone.

                        I guess the second one is clear, that we can't keep that 99% backup since we don't know what failed and if that is relevant to the app.

                        The first one could have an option to exclude such an app then from the wholesome backup. Just not sure if that has unnoticed side-effects then if the whole server has to be restored, but I guess we could include the last working backup of the app in such a case?

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

                        @nebulon you would need a list of app backups that are allowed to fail (app store apps) and ones that aren't (system services).

                        Partial backups are only ok if an app store app gets an error.

                        Conscious tech

                        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