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 Restoring app from backup?

    Support
    backups restore
    2
    2
    142
    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.
    • joesitsolutions
      joesitsolutions last edited by girish

      I cannot for the life of me figure out how to do this.
      See Image:
      bruh.PNG
      I had a grav site and am attempting to move it from a backup.
      I have the .zip file. Cannot figure out why I keep getting "backupFolder path is protected"
      Anyone have any tips?

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

        @joesitsolutions said in Restoring app from backup?:

        I have the .zip file. Cannot figure out why I keep getting "backupFolder path is protected"

        You can only create backups to specific paths on the server. Many of the paths are "protected" to make sure that the folders won't get overwritten by updates or are used by the system. This is just a hardcoded list of paths:

        const PROTECTED_PREFIXES = [ '/boot/', '/usr/', '/bin/', '/lib/', '/root/', '/var/lib/', paths.baseDir() ];
        

        (the baseDir above is /home/yellowtent/). You cannot create backups in subdirectories of the above paths.

        I understand you are using restore here though and not backup 🙂 The restore logic uses the same validation logic for paths and you have copied the backup to under /home/yellowtent/. Instead, copy the backup in some path like /mnt/backups/ or /srv/backups/ and try to restore, that should work.

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