0

I want my flashdrive to automatically sync and upload all its data to my cloud storage when plugged into my computer (with internet). Is this possible? If so, what existing software can I use?

krikara
  • 387
  • 3
  • 9
  • 21
  • You may consider using [DropboxPortableAHK](https://www.google.com.hk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB0QFjAAahUKEwjo4ODQ5ejGAhWHnpQKHTGdAJ4&url=http%3A%2F%2Fnionsoftware.com%2Fdbpahk%2F&ei=kG6sVejYLYe90gSxuoLwCQ&usg=AFQjCNHEgCNLHsElP3xSE7-9_Fo0ESNmMg&sig2=nknfVD1n_hcHcn5o6OI9UA) to carry the dropbox and configuration file in you flashdrive – Bilo Jul 20 '15 at 03:45

1 Answers1

0

(Assuming Windows) I satisfied similar requirements by using PowerShell in combination with a scheduled task.

  1. Identify the WMI event that best relates to a USB drive being connected.
  2. Create a scheduled task that will run a PowerShell script file when the event is fired.
  3. In your script verify the device is actually attached and recover the path.
  4. Identify the files to upload.
  5. Upload the file using the respective services API.

It would be possible to provide more information if your question stated your operating system, which cloud service you intend to use, any rules used to select files, and how to handle conflicts - but given the nature of the question I have assumed you are only after a general approach to solve the problem. The following resources may help with specifics.

Élie
  • 274
  • 1
  • 7
  • Hmm yeah I forgot to mention Windows. Are there any prewritten apps or scripts designed to do this task? – krikara Jul 20 '15 at 04:50
  • Questions of this nature aren't encouraged here. There is a couple of recommendations in this similar question. http://superuser.com/questions/707737/how-to-automatically-sync-external-drive-to-cloud-storage?rq=1 – Élie Jul 20 '15 at 05:07