Automatic file mover


Aran

Recommended Posts

Hello and allow me to explain my question.

 

I use dropbox as a 'bridge' between my mobile phone and my windows VM to move my pics taken with my phone.

A small windows program called 'DropIt' moves any *jpeg file detected in my dropbox folder to my unraid server.

 

I works but the windows VM needs alot of recources just for moving around a few files. There are many SYNC tools in the CA but i can't find any simple automatic file MOVER. I need to MOVE (not SYNC) them because the free dropbox folder is too small in terms of GB's.

This can probablly be done by a simple script but i'm not familiar with the cli. Is there a docker or plugin that i overlooked? Or maybe another way to do this? Rsync perhaps?

 

Thanks in advance.

Aran.

 

Link to comment
  • 1 month later...
On 23-2-2017 at 7:06 PM, trurl said:

Take a look at the User Scripts plugin and its forum threads.

 

Okay, it took me a while to figure out how this works but i got it up and running!

 

Behold, my first script:

#!/bin/bash
echo "Moving all jpg files to local array..."
mv /mnt/user/Documents/Dropbox/Camera-uploads/*.jpg /mnt/user/Fotos/Mobile_uploads/

Yes, i'm a newby... but a happy one :)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.