Restoring app from backup?
-
I cannot for the life of me figure out how to do this.
See Image:
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? -
@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.