Logic Machine Forum
Dropbox backup script not working - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Dropbox backup script not working (/showthread.php?tid=6117)



Dropbox backup script not working - icuzz - 14.09.2025

Hi, 

I tried to use this script from https://kb.logicmachine.net/scripting/backup-file-dropbox/ It works fine, but the token from dropbox expired after maybe 50 hours. So how to fix this script? Here is the log 

* arg: 1
  * string: dropbox backup failed
* arg: 2
  * string: {"error_summary": "expired_access_token/...", "error": {".tag": "expired_access_token"}}
* arg: 3
  * number: 401
* arg: 4
  * table:
  ["x-content-type-options"]
    * string: nosniff
  ["content-type"]
    * string: application/json
  ["content-security-policy"]
    * string: sandbox allow-forms allow-scripts
  ["content-length"]
    * string: 88
  ["cache-control"]
    * string: no-cache
  ["x-dropbox-response-origin"]
    * string: far_remote
  ["connection"]
    * string: close
  ["x-dropbox-request-id"]
    * string: "had some id stuff I deleted this"
  ["strict-transport-security"]
    * string: max-age=31536000; includeSubDomains; preload
  ["date"]
    * string: Sun, 14 Sep 2025 20:01:05 GMT
  ["www-authenticate"]
    * string: Bearer realm="Dropbox-API"
  ["x-robots-tag"]
    * string: noindex, nofollow, noimageindex
  ["server"]
    * string: envoy
* arg: 5
  * string: HTTP/1.1 401 Unauthorized



RE: Dropbox backup script not working - admin - 15.09.2025

Dropbox changed how token access works with a more secure but complicated solution Smile
We'll update the guide soon and will let you know when it's done.


RE: Dropbox backup script not working - icuzz - 15.09.2025

(15.09.2025, 11:36)admin Wrote: Dropbox changed how token access works with a more secure but complicated solution Smile
We'll update the guide soon and will let you know when it's done.

Any idea of how long it will take?
Yeah, oauth2 call and then it will send you new token. Once I tried to get it work with onedrive, but newer got it to work...

And does the dropbox backup script make a full backup? Because there have been backup scripts that hasn't backed everything?


RE: Dropbox backup script not working - admin - 16.09.2025

Dropbox guide has been updated. The resulting backup is the same file that you get by manually making a backup in LM Utilities tab.


RE: Dropbox backup script not working - icuzz - 16.09.2025

(Yesterday, 07:47)admin Wrote: Dropbox guide has been updated. The resulting backup is the same file that you get by manually making a backup in LM Utilities tab.

Thanks, so what doesn't it backup?


RE: Dropbox backup script not working - Daniel - 16.09.2025

Project backup, same as by doing it manually in the Utilities tab.


RE: Dropbox backup script not working - icuzz - 16.09.2025

(Yesterday, 09:38)Daniel Wrote: Project backup, same as by doing it manually in the Utilities tab.

Yeah, still don't know what it doesn't backup? Never noticed anything missing, but haven't yet needed to restory any of the bigger projects where more functionality is in use. I have like 35 logicmachine servers running...