Download the PHP package webula/smallbackup-plugin without Composer
On this page you can find all versions of the php package webula/smallbackup-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webula/smallbackup-plugin
More information about webula/smallbackup-plugin
Files in webula/smallbackup-plugin
Package smallbackup-plugin
Short Description Backup databases and theme
License
Homepage https://www.webula.cz
Informations about the package smallbackup-plugin
Small Backup
Simple backup for database (MySQL, SQLite), active theme and CMS storages
Installation
GitHub clone into /plugins
dir:
OctoberCMS backend (OC1)
Just look for 'Small Backup' in search field in:
Settings > Updates & Plugins > Install plugins
Permissions
Settings > Administrators
You can set permissions to restrict access in Settings > Small plugins > Small Backup.
Installation with composer
-
Edit composer.json by adding new repository
- run in command line
Settings
- Default backups folder
storage/app/backup
- Default cleanup interval
7 days
You can download created backups from plugin Settings tabs Database, Theme and Storage or you can get it directly from backup folder (eg. with FTP).
It's recommended to put your backup folder into .htaccess' Black listed folders, e.g. RewriteRule ^storage/app/backup/.* index.php [L,NC]
.
How to make backups
Automatic backup (with scheduler)
Must be allowed in plugin's Settings!
There are default scheduler jobs for database and active theme to be backed up once a day.
See October CMS docs about scheduling jobs.
Automatic backup (without scheduler)
If you cannot run Cron command directly on your server/hosting, you can create custom CMS page like this:
Manual backup
You can create manual backup in plugin's Settings by clicking button Backup now
on Database or Theme tab.
Console commands
There are console commands ready:
-
php artisan smallbackup:db [connectionName] [--no-cleanup] [--once]
(connectionName is optional and respect config/database.php settings) -
php artisan smallbackup:theme [themeName] [--no-cleanup] [--once]
(themeName is optional and can be any folder name in themes/) php artisan smallbackup:storage [cmsStorage] [--no-cleanup] [--once]
(cmsStorage is optional and can be any storage registered in cms.storage config)
Our thanks goes to: OctoberCMS team members and supporters for this great system. Brooke Cagle for his photo. Font Awesome for nice icons.
Created by Webula in Czech Republic.