New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync DropBox failed #130
Comments
Which phpbu version are you unsing? |
5.0.9 |
Looks like the Dropbox API is throwing an exception :/ |
Exception 'phpbu\App\Backup\Sync\Exception' with message 'Error in call to API function "files/upload": HTTP header "Dropbox-API-Arg": path: 'backups/mysql-20180205-0020.sql.bz2' did not match pattern '(/(.|[\r\n]))|(ns:[0-9]+(/.)?)|(id:.*)'' and in dropbox has folder backups to store files |
Can you share your config file? |
same of example with only backups source and syncs dropbox |
|
Sorry it took a while, but I finally could reproduce your error. The Problem is, there is a slash missing in the dropbox configuration. { "type": "dropbox", "options": { "token": "***", "path": "/backups" } That did the trick for me. |
In fact I decided to not throw an Exception. Instead I make sure that the Dropbox path always contains a leading /. |
Thx. this Work |
Exception 'phpbu\App\Backup\Sync\Exception' with message 'Error in call to API function "files/upload": HTTP header "Dropbox-API-Arg": path: 'development/mysql-20180204-2253.sql.bz2' did not match pattern '(/(.|[\r\n]))|(ns:[0-9]+(/.)?)|(id:.*)''
in phar://......./phpbu.phar/Backup/Sync/Dropbox.php:87
The text was updated successfully, but these errors were encountered: