承接 bszalai/dropboxupload 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bszalai/dropboxupload

Composer 安装命令:

composer require bszalai/dropboxupload

包简介

Upload database dumps to Dropbox

README 文档

README

NOTE!

Please use this package for Laravel 5 and up: https://github.com/backup-manager/laravel

Database dump Dropbox upload

Dropbox upload is a Laravel 4 package, which uploads a previously dumped database file to a Dropbox account. The database backup is made by the package schickling/backup. Thanks Johannes!

The big advantage of this package is that it doesn't ask you to enter any input, because uses a permanent token key, your uploads will happen in the background..

Usage

Generate a permanent token for the package

  • Go to https://dropbox.com/developers/apps and generate api keys.

  • Install Dropboxupload

    composer require bszalai/dropboxupload:dev-master

  • Create a file keys.json and fill it with your keys

{  
   	"key" : "Dropbox app key",  
   	"secret": "Dropbox app secret"  
}    
  • Copy this file into the Dropbox package's examples folder (vendor/dropbox/dropbox-sdk/examples).

  • Open a terminal, go to the above folder and enter

    php authorize.php keys.json token.json

  • Click on the url in the terminal, it'll open a browser window, Allow the app to access your folder, and copy the provided key (you have to log in to Dropbox if you aren't logged in)

  • Go back to terminal, and paste the above key, and press Enter.

  • You'll have a token.json file created.

  • Copy this file into the app/storage folder. You are done.

Using the package

  • Edit your app.php in the app/config folder, and add the following lines to the service providers

    Schickling\Backup\BackupServiceProvider,
    Bszalai\Dropboxupload\DropboxuploadServiceProvider

  • Publish the package config file

    php artisan config:publish bszalai/dropboxupload

  • Edit the config file (app/config/packages/bszalai/dropboxupload/config.php), you have several options

    • prefix - name-prefix of the source file

    • uploadfolder - where to upload the file

    • compress - if set to true, it'll create a zip file

    • encrypt - encrypt the source file, set the encryption key so you can decrypt your file later

  • Create a CRON job for the Backup package

Example:

/usr/local/bin/php53 /path/to/your/app/artisan db:backup
  • Create another CRON job for the Dropbox upload, set the run time after the backup surely finished
Example:

/usr/local/bin/php53 /path/to/your/app/artisan dropbox:upload

License

Dropboxbackup is under MIT License

Copyright

© 2014 Barna Szalai

统计信息

  • 总下载量: 22
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-04-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固