2017 © Pedro Peláez
 

yii2-extension dropbox-backup

Yii2 console command for making site backups and upload it to your dropbox account

image

demi/dropbox-backup

Yii2 console command for making site backups and upload it to your dropbox account

  • Monday, January 29, 2018
  • by demi
  • Repository
  • 1 Watchers
  • 6 Stars
  • 258 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 10 Versions
  • 7 % Grown

The README.md

Yii2-dropbox-backup

Yii2 console command for making site backups and upload it to your dropbox account (Dropbox API v2)., (*1)

Installation

Run, (*2)

composer require "demi/dropbox-backup" "~2.0"

Configurations

To get started, configure backup component (you do not need to install it)., (*3)

Then create new dropbox application and get dropbox AppKey and AppSecret., (*4)

Configure /console/config/main.php:, (*5)

return [
    'controllerMap' => [
        'backup' => [
            'class' => 'demi\backup\dropbox\BackupController',
            // Name of \demi\backup\Component in Yii components.
            // Default Yii::$app->backup
            'backupComponent' => 'backup',
            // Dropbox app identifier
            'dropboxAppKey' => '65pwea8lqgbq5dm',
            // Dropbox app secret
            'dropboxAppSecret' => 'k2x0sl8a7wfj7h9',
            // Access token for user which will be get up backups.
            // To get this navigate to
            // https://www.dropbox.com/developers/apps/info/<AppKey>
            // and press OAuth 2: Generated access token button.
            'dropboxAccessToken' => 'kFflkUk7K3AAAAAAAAAAEh2tNeQbPbOX8Z11wk0rSdFfYMb5B5VX6kTvkcWz5N8R',
            // Path in the dropbox folder where would be saved backups
            'dropboxUploadPath' => '/',
            // If true: will be deleted files in the
            // dropbox when $expiryTime has come
            'autoDelete' => true,
            // Number of seconds after which the file is
            // considered deprecated and will be deleted.
            'expiryTime' => 30 * 86400, // 30 days
            // @see more options here [\console\controllers\BackupController]  
        ],
    ],
];

Usage

Run console command:, (*6)

php yii backup 

It will generated current site backup(based on backup component) and upload it to your dropbox account., (*7)

The Versions

29/01 2018

dev-master

9999999-dev https://github.com/demisang/yii2-dropbox-backup#readme

Yii2 console command for making site backups and upload it to your dropbox account

  Sources   Download

GNU GPL-3.0-or-later

The Requires

 

yii2 upload backup dump dropbox sync

14/08 2015

1.0.7

1.0.7.0 https://github.com/demisang/yii2-dropbox-backup#readme

Yii2 console command for making site backups and upload it to your dropbox account

  Sources   Download

GNU

The Requires

 

yii2 upload backup dump dropbox sync

12/08 2015

1.0.6

1.0.6.0 https://github.com/demisang/yii2-dropbox-backup#readme

Yii2 console command for making site backups and upload it to your dropbox account

  Sources   Download

GNU

The Requires

 

yii2 upload backup dump dropbox sync

11/08 2015

1.0.5

1.0.5.0 https://github.com/demisang/yii2-dropbox-backup#readme

Yii2 console command for making site backups and upload it to your dropbox account

  Sources   Download

GNU

The Requires

 

yii2 upload backup dump dropbox sync

11/08 2015

1.0.4

1.0.4.0 https://github.com/demisang/yii2-dropbox-backup#readme

Yii2 console command for making site backups and upload it to your dropbox account

  Sources   Download

GNU

The Requires

 

yii2 upload backup dump dropbox sync

11/08 2015

1.0.3

1.0.3.0 https://github.com/demisang/yii2-dropbox-backup#readme

Yii2 console command for making site backups and upload it to your dropbox account

  Sources   Download

GNU

The Requires

 

yii2 upload backup dump dropbox sync

11/08 2015

1.0.2

1.0.2.0 https://github.com/demisang/yii2-dropbox-backup#readme

Yii2 console command for making site backups and upload it to your dropbox account

  Sources   Download

GNU

The Requires

 

yii2 upload backup dump dropbox sync

11/08 2015

1.0.1

1.0.1.0 https://github.com/demisang/yii2-dropbox-backup#readme

Yii2 console command for making site backups and upload it to your dropbox account

  Sources   Download

GNU

The Requires

 

yii2 upload backup dump dropbox sync

11/08 2015

1.0.0

1.0.0.0 https://github.com/demisang/yii2-dropbox-backup#readme

Yii2 console command for making site backups and upload it to your dropbox account

  Sources   Download

GNU

The Requires

 

yii2 upload backup dump dropbox sync

10/08 2015

0.1.0

0.1.0.0 https://github.com/demisang/yii2-dropbox-backup#readme

Yii2 console command for making site backups and upload it to your dropbox account

  Sources   Download

GNU

The Requires

 

yii2 upload backup dump dropbox sync