cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
If you know more about files sizes, you can make more informed decisions about which files you upload and then you can maximize the space in your Dropbox Basic account?

Create, upload, and share

Find help to solve issues with creating, uploading, and sharing files and folders in Dropbox. Get support and advice from the Dropbox Community.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

“something similar” to SCP for Dropbox

“something similar” to SCP for Dropbox

JohnCrawford
New member | Level 2

I'm trying to backup some file on my Linux server to Dropbox. I do *NOT* want to install Dropbox on my server as I do *NOT* want any of the files on my Dropbox account to be on this server.

I'm looking for something similar to SCP, so it will look like this: 

scp backupDocument.txt mydropbox:/folder/save

Basically I should be able to copy a file from my server and paste that file into my Dropbox account without needing to install Dropbox on the actual server.

 

1 Accepted Solution

Accepted Solutions

Re: “something similar” to SCP for Dropbox

Jay
Dropboxer
Well, if your server doesn’t have a GUI whatsoever, then you’ll need to find another solution to somehow access a browser, since there isn’t a Dropbox command line to directly login to your account.
 
You could use a CLI browser like Lynx and open the link there to see if that helps.
 
Otherwise, you could even type the link generated on a normal computer which does have a browser, and after a short time the server will be connected.

Jay
Community Moderator @ Dropbox
dropbox.com/support


Heart Did this post help you? If so, give it a Like below to let us know.
:arrows_counterclockwise: Need help with something else? Ask me a question!
:pushpin: Find Tips & Tricks Discover more ways to use Dropbox here!

View solution in original post

11 Replies 11

Re: “something similar” to SCP for Dropbox

Jay
Dropboxer
Hi John, if you don’t want to install the Dropbox desktop application, that means you won’t have a Dropbox folder on the machine, so it won’t sync automatically.
 
Are you not able to upload the file to the Dropbox site directly? Are you planning to create an app using the Dropbox API instead?

Jay
Community Moderator @ Dropbox
dropbox.com/support


Heart Did this post help you? If so, give it a Like below to let us know.
:arrows_counterclockwise: Need help with something else? Ask me a question!
:pushpin: Find Tips & Tricks Discover more ways to use Dropbox here!

Re: “something similar” to SCP for Dropbox

JohnCrawford
New member | Level 2

This is being installed on a server and as such there is no GUI.  

 

The install instructions found here: https://www.dropbox.com/install-linux are not that helpful as it doesn't have any details on how to connect to your actual Dropbox account.  

Re: “something similar” to SCP for Dropbox

Jay
Dropboxer
The Python script at the bottom of the page tells you how to control the Dropbox desktop application daemon, and there’s also this article with commands used in the script.
 
However, simply installing from that page means you want files to sync to your machine, which is the opposite of what you want. 
 
Of course, you could use the exclude button to selectively unsync every single folder on your account. Provided there’s nothing in the root Dropbox folder, no files should download to the server.
 
Regardless, you won’t be able to upload to the Dropbox site without any folders actively syncing, so in the end this won’t help with your query.

Jay
Community Moderator @ Dropbox
dropbox.com/support


Heart Did this post help you? If so, give it a Like below to let us know.
:arrows_counterclockwise: Need help with something else? Ask me a question!
:pushpin: Find Tips & Tricks Discover more ways to use Dropbox here!

Re: “something similar” to SCP for Dropbox

JohnCrawford
New member | Level 2

Hi Jay,

 

Many thanks for the feedback.  I've decided to try and install Dropbox on my server as it doesn't look like it actually can do an "SCP like" command.

 

However I can't seem to actually link my account on the server.  The help options also don't seem to actually show an "add your dropbox account by email and password" type thing as seen here:

cGFls5x

Re: “something similar” to SCP for Dropbox

Jay
Dropboxer
The instructions to sign in were on the original installation page at the bottom.
 
I’ve copied and pasted them here in case you cant see that on the site:
 
Run the Dropbox daemon from the newly created .dropbox-dist folder.
 
~/.dropbox-dist/dropboxd
 
If you're running Dropbox on your server for the first time, you'll be asked to copy and paste a link in a working browser to create a new account or add your server to an existing account.
 
Once you do, your Dropbox folder will be created in your home directory. 

Jay
Community Moderator @ Dropbox
dropbox.com/support


Heart Did this post help you? If so, give it a Like below to let us know.
:arrows_counterclockwise: Need help with something else? Ask me a question!
:pushpin: Find Tips & Tricks Discover more ways to use Dropbox here!

Re: “something similar” to SCP for Dropbox

JohnCrawford
New member | Level 2

Hi Jay.  Those instructions do not help.  As mentioned already this is a server and as such does *not* have a GUI.  So you can not do as you mentioned "copy and paste a link in a working browser".

 

This is a 100% text based terminal.

 

Re: “something similar” to SCP for Dropbox

Jay
Dropboxer
Well, if your server doesn’t have a GUI whatsoever, then you’ll need to find another solution to somehow access a browser, since there isn’t a Dropbox command line to directly login to your account.
 
You could use a CLI browser like Lynx and open the link there to see if that helps.
 
Otherwise, you could even type the link generated on a normal computer which does have a browser, and after a short time the server will be connected.

Jay
Community Moderator @ Dropbox
dropbox.com/support


Heart Did this post help you? If so, give it a Like below to let us know.
:arrows_counterclockwise: Need help with something else? Ask me a question!
:pushpin: Find Tips & Tricks Discover more ways to use Dropbox here!

Re: “something similar” to SCP for Dropbox

Kostia K.
New member | Level 2

These are terrible solutions posted by Dropbox...

There has got to be a better way.

I mean how do apps like Wordpress and such backup your content to Dropbox without needing to sync anything locally. Sure it will be API requests instead of an SCP like command line, but I assume that is something worth it for OP.

Re: “something similar” to SCP for Dropbox

Shelton K.
Helpful | Level 5

Better answer: 

 

I recommend using rclone. It's like rsync but for third-party services. 

 

Once you have it set up, your usage syntax will look fairly similar to your `scp` example. Here is how you would copy an entire "source" directory to dropbox:

 

rclone copy /home/source remote:path/to/dest

 

And configuration is pretty easy too. Just run "rclone config" and it will step you through the entire process of asking for your tokens and keys. It supports syncing and comparisons based on modification date, size, or checksum. Plus, it fully supports Dropbox for Business accounts and Team Folders. 


:pushpin: Dropbox-specific documentation

 

Be sure not to use the app ID that comes with rclone since it is used by anyone who didn't change the default. Create your own Dropbox App ID here: https://www.dropbox.com/developers/apps/create

 

Rclone has been around for a long time, has frequent updates and lots of support. Highly recommended.

 

Who's talking

Top contributors to this post

  • User avatar
    relbud New member | Level 2
  • User avatar
    Kostia K. New member | Level 2
  • User avatar
    Shelton K. Helpful | Level 5
  • User avatar
    Jay Dropboxer
What do Dropbox user levels mean?
Need more support?