定制 bnomei/kirby-dropbox-backup 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

bnomei/kirby-dropbox-backup

最新稳定版本:1.0.0

Composer 安装命令:

composer require bnomei/kirby-dropbox-backup

包简介

Copy an existing backup to Dropbox

README 文档

README

Release Downloads Twitter

Copy an existing backup to Dropbox.

Install

Using composer:

composer require bnomei/kirby-dropbox-backup

Dropbox

  1. Create a new Dropbox Access Token
  2. Use plugin settings to set target folder and access token.

site/config/config.php

<?php

return [
    // other options...
    
    'bnomei.dropbox-backup.target-dir' => '/backup', // default
    'bnomei.dropbox-backup.token' => 'MY-TOKEN', // or with closure to .env file
    'bnomei.dropbox-backup.token' => fn() => env('DROPBOX_API_TOKEN'),
];

TIP: You can use my Kirby3 Dotenv Plugin to store the token in a .env file.

CRON job

Either you have a custom way to create an backup or you use my Janitor plugin to create one. The following example uses the latter.

php vendor/bin/kirby janitor:backupzip -o storage/backups/backup.zip --quiet; php vendor/bin/kirby dropbox-backup:push;

TODO: adjust the backup OUT-path to your needs with the -o option.

Disclaimer

This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.

License

MIT

It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-15