bnomei / kirby-dropbox-backup
Copy an existing backup to Dropbox
Fund package maintenance!
bnomei
Patreon
buymeacoff.ee/bnomei
paypal.me/bnomei
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:kirby-plugin
Requires
- php: >=8.1
- getkirby/composer-installer: ^1.2
Requires (Dev)
- getkirby/cms: ^4.0.0-beta.2
- laravel/pint: ^1.11
- spatie/ray: ^1.37
README
Copy an existing backup to Dropbox.
Install
Using composer:
composer require bnomei/kirby-dropbox-backup
Commercial Usage
Support open source!
This plugin is free but if you use it in a commercial project please consider to sponsor me or make a donation.
If my work helped you to make some cash it seems fair to me that I might get a little reward as well, right?
Be kind. Share a little. Thanks.
‐ Bruno
Dropbox
- Create a new Dropbox Access Token
- 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
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.