How to implement the automatic dropbox upload script to post the back-up file to the sites dropbox
https://www.zyxware.com/sites/default/files/styles/user_image/public/default_images/index.png?itok=2YmREnrP
BY prince.kr
5 years ago
Technical-Solution
0 comments comment

Dropbox Uploader is a shell script that can be used to upload, download, delete, list files from Dropbox. It's written in BASH scripting language and only needs cURL.

Follow the below steps to create a automatic dropbox uploading script to keep you files secured and portable.

  • First, clone the repository using git (recommended):
    git clone https://github.com/andreafabrizi/Dropbox-Uploader/
  • Provide execution permission to the script
    $chmod +x dropbox_uploader.sh
  • Run the below command after providing the execution permissions
    ./dropbox_uploader.sh
  • Follow the below steps to create the App for the dropbox account.

    This is the first time you run this script.

  1. Open the following URL in your Browser, and log in using your account: https://www.dropbox.com/developers/apps
  2. Click on "Create App", then select "Dropbox API app"
  3. Select "Files and datastores"
  4. Now go on with the configuration, choosing the app permissions and access restrictions to your DropBox folder
  5. Enter the "App Name" that you prefer (e.g. MyUploader226172246319943) and click create app.
  • Enter the App key, App secret and App folder Permission type.
  • Now from the above you are given drop box upload permission for the your files and folders.
  • To test your linking with drop box..Please check with the following commands:

    ./dropbox_uploader.sh upload /backup.tgz

    ./dropbox_uploader.sh delete /backup.zip

    ./dropbox_uploader.sh mkdir /myDir/

Next to add the automatic script to crontab. Crontab is actually a time table consisting of list of cron jobs.

  • Command to list all cron jobs:

    crontab -l

  • Next to add new a new cron job or edit previous cronjobs

    crontab -e

  • Installed new cron job

    0 2 * * * /dropbox_uploader.sh delete back-up-file.tgz; /dropbox_uploader.sh upload /latestbackup.tgz tbg-backup

  • The above cron time specifies the cron job should happens every day at 2 am.


RELATED ARTICLE

/themes/custom/zyxpro_light/images/placeholder.png
close

on 04th April 2007 / by webmaster
Linux is the epitome of the FLOSS model. Technical Solution Linux installation Leave a reply Your email address will not be published. Required fields are marked * Dewey J. Corl (not verified) access_time 15 Aug 2020 - 04:15 Linux is not ready for the general public! (I am a Ubuntu user). For proof, 1. try to simply print labels on a Dymo label printer. It takes a LOT of work to get to the ease of label printing already available in Windows and Mac. 2. try syncing a modern Palm based PDA. Yes, jpilot and others will sync the main data, but pictures and midi files do not get transferred without a lot of extra setup. These are examples of applications that are not ready for the general public. Since an operating system only supports applications, Linux is not ready to be a common desktop for the general public. While we are waiting for the applications to catch up, keep up the good work!! Anoop John (not verified) access_time 15 Aug 2020 - 04:15 Dewey Yes you may be right. But these are not applications that a common man would use. A common man would use one of these applications - Internet browser, Chat Client, Email Client, Document Writer, Presentation Creator, Spreadsheet Editor, Movie Viewer, Music Player, CD/DVD Writer. Both examples you cited are more specific applications that only a small percentage of the whole population uses. It will take time before those hardware vendors identify the need from their perspective to address the Linux community. Krishnadas (not verified) access_time 15 Aug 2020 - 04:15 Dear Mr Anoop, Thank you very much for the free installation of LINUX done in my PC. I am getting immersed in the LINUX and seeing the versatility. To my surprise, I am able to read one of my old backup CD(wherein lot of my valuable file exist) done in DIRECT CD wizard (a custom cd writing software of Easy Cd creator in WIN98) which could not be read in XP. Installation of old version of easycd creator/direct cd program was not possible in XP. I thought that possible i lost all data. Very pleasant start! Srikanth N. S. (not verified) access_time 15 Aug 2020 - 04:15 Hi Anoop, My friend is thrilled with Ubuntu. One of his grouses with windows was that after OS installation, everything else is to be installed separately which is a real headache. WHereas if u install Linux, everything is installed as a package and he is thrilled to bits! Let linux installation spread in Trivandrum and your service in this direction is highly appreciated. Kepp up the good work Regards. PDA Freak (not verified) access_time 15 Aug 2020 - 04:15 Is it possible to install linux on a packardbell notebook ? Pagination Current page 1 Page 2 Next page Next › Last page Last » Add new comment
Leave a reply
Your email address will not be published. Required fields are marked *

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
The content of this field is kept private and will not be shown publicly.
CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.