level51/silverstripe-backuper

There is no license information available for the latest version (0.1.1) of this package.

A slick backup/export tool for SilverStripe projects.

Installs: 957

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 3

Forks: 1

Open Issues: 0

Type:silverstripe-module

0.1.1 2016-07-27 16:21 UTC

This package is auto-updated.

Last update: 2024-11-25 06:56:02 UTC


README

Backuper is a slick backup module for SilverStripe. It gets a database dump and packs it with all files in the assets/ directory as compressed archive. Great for migration of pages through easy-to-use export and import functionality.

Maintainer

Installation

composer require level51/silverstripe-backuper

Features

  • Generating and loading a database dump
  • Archiving and loading assets
  • Downloading backup file to local disk
  • Uploading backup to Google Drive
  • Restoring backup from manual upload or Google Drive

Dependencies

Setup

  • Just install it and do the classical dev/build?flush=all.
  • In order to upload large backup files, you have to increase the maximum upload filesize of your webserver configuration. For nginx have a look at: https://easyengine.io/tutorials/php/increase-file-upload-size-limit/
  • For Google Drive Backup functionality: Make sure that the plugin can store and delete an accesstoken in a textfile located in the _config folder. Hence, user www-data requires full file permissions for the plugin's _config folder. Run: chown www-data _config && chmod 700 _config

Setup Google Drive Backups

Setup Google Drive Backups by following these steps:

  • Goto https://console.developers.google.com/start/api?id=drive
  • Click Continue, then Go to credentials.
  • On the Add credentials to your project page, click the Cancel button.
  • At the top of the page, select the OAuth consent screen tab. Select an Email address, enter a Product name if not already set, and click the Save button.
  • Select the Credentials tab, click the Create credentials button and select OAuth client ID.
  • Select the application type Web-Application, enter a name e.g. "Drive API Silverstripe" and set Authorized JavaScript-Source to your project root URL e.g. https://example.com. Further, enter the Authorized Re-direct URL e.g. https://example.com/backuper/authenticate-gdrive and finally click the Create button.
  • A dialog will show the client credentials.
  • Copy and paste the client_id and client_secret from the dialog to the API Keys tab of the Backup plugin's CMS settings page.
  • Save and click authenticate.
  • Allow access to your Google Drive at the shown authentication screen.
  • Create backups by ticking the 'Upload to Google Drive' option.

Backup

Create a backup by ticking the desired options in the Backup tab. Click Save and then Create backup. Make sure the you save first after you change backup options.

Restore by upload

Upload a backup file by the upload form in the plugin's Restore tab. Click Save and then Restore backup. Make sure the you save first after you uploaded a file.

Restore by Google Drive

Make sure that your are authorized to your Google Drive and backup files are stored on it. Goto the plugin's Restore tab and click on the backup file you want to restore.