Move files contained in source dir to destination dir, but not source dir itself
Hello folks,
I am runninng a debian server at a remote location, that I use as a media streaming server with subsonic.
What I want to do, is that I would like to "drag-and-drop" files to my Subsonic server remotely, and in order to do so I am planning to use bittorrent sync + some scheduled cron command that will move the incoming files from the source directory (bittorrent sync folder synced to my local pc) to the media directory on the server (subsonic)
Basically what I need this scheduled script to do, is to move all the contents of a given directory (but not the directory itself) to another directory, at a scheduled time (cron)
I was thinking of using mv but I am not sure wether or not an option is present to only move the contents of the folder, but not the folder itself
Any ideas on how I could do this?
Thanks in advance!
|