Backups local files to your Dropbox account.
$ go install github.com/meinside/backupboxxx@latest
Get your Dropbox access token from:
Developers page > App console > [Your App] > Settings > OAuth2 > Generated access token > Generate
then create a file named config.json
in $XDG_CONFIG_HOME/backupboxxx/
or $HOME/.config/backupboxxx
directory:
{
"access_token": "PUT_YOUR_GENERATED_ACCESS_TOKEN_HERE"
}
You can also use Infisical for retrieving your Dropbox access token:
{
"infisical": {
"client_id": "012345-abcdefg-987654321",
"client_secret": "aAbBcCdDeEfFgG0123456789xyzwXYZW",
"project_id": "012345abcdefg",
"environment": "dev",
"secret_type": "shared",
"key_path": "/path/to/your/KEY_TO_DROPBOX_ACCESS_TOKEN"
}
}
You can get client_id
and client_secret
from the access control page of your Infisical project.
After configuration, create a backup list file:
{
"dirname": "backup_20190605",
"files": [
"~/.zshrc",
"~/files/photos",
"~someusername/somewhere/filename",
"/etc/hosts"
],
"ignore": [
".ssh",
".git",
".svn",
".DS_Store"
]
}
Now run with the backup list file:
$ backupboxxx [backup-list-filepath]
MIT