Backups

Do not use this extension, if your provider allows backup-creation. This extension uses PHP to backup files, create a database dump, zip and upload all the data.
And: PHP is not really made for this.
But if your provider does not allow to create backups, you are invited to use this extension.
Warning: I can not guarantee that all created backups are okay. Please test the files and database dump. You are using this extension at your own risk.
How to use
Installation
Using this extension is very easy. Just install it from Pagekit's marketplace.
Configuration
After enabling the extension, you are free to open the settings by clicking on the extension name in Pagekit's extensions-tab.
General
- Overwrite memory limit and execution time: Some web hosters do not allow this. But it can help to prevent errors if you are saving really big files.
- Set up the saved files per loop: The script calls itself during the file backup to prevent timeouts and memory limit issues. So the more files you are going to process per loop, the faster. But if you set up a large number it may be possible that the backup fails.
Backup Servers
- Backup method: At the moment the dropbox storage is inactive, I am working on this. If you select FTP, you are asked to enter the credentials for your FTP-server. If you are storing local, please choose the full path where to store the files (this path needs to be existing before you start your backup). It's not a good idea to store your backups in your document root, as it could be possible for attackers to download a full dump of your site, including the database.
- Prune Backups: If you always want to keep just X backups, just enable this. You can set up the number of backups to keep. This is a good idea if you don't want to waste your ftp space with a few thousand backups someday.
Database
If you are using SQLite - you can not enter anything. But if you are using MySQL, you can choose, whether you would like to use mysqldump
(enter the path to the binary) or a PHP-based solution (if your hoster does not allow running mysqldump
or blocks the usage of exec
for good reasons) . The PHP-solution is a bit slower.
Exceptions
Set up some paths, you don't want to be included to the backup.
So switch over to the "backup"-tab and click "perform backup". Once running, please do not reload the page until the "Backup completed"-message is shown.
Perform a backup
Once you are done, you can simply click on the name of a created backup to see the details. Important: The "prune"-job always tries to delete old files. If you deleted the file manually the pruning-job will fail and you can not remove the backup.
So always delete backups by selecting them - now you can delete the backup just like you are deleting blog-posts or sites.
If you accidentally removed a backup from file-system, please remove the "link" between the saved backup and the file.
Just click on the backup to see the details. On the right side you may find the option LINK FILE
- please uncheck it and save the backup. Now you can delete the backup from the database.
- CMS
- Pagekit
How to fork a theme
Written by Abdulhalim on
spqr/toc updated
Written by Roman on
spqr/toc updated
Written by Nick Sbarounis on