소개 하려는 소프트웨어는 CLI 기반으로 드롭박스에 파일을 업, 다운로드 시켜주는 프로그램이다.

임베디드 설계에서도 필요한 프로그램이라도 판단하여 간단히 정리하여 포스팅 해보고자 한다.

해당 프로그램은 초간편 오픈소스로써 깃허브를 통하여 확보가 가능하며 


터미널에서 간단히 입력하여 프로그램을 받아낸다.

 user@user~$

git clone https://github.com/andreafabrizi/Dropbox-Uploader


Loading Captcha...
If it doesn't load, please disable Adblock!

체크시 자동으로 본 사이트에 대한 자원 활용(채굴) 지원이 이루어 지고 '복사 버튼' 이 활성화 됩니다.



만일, git이 없다면 다음 명령으로 간단히 받아낼수 있다.

 user@user~$

sudo apt-get install git


Loading Captcha...
If it doesn't load, please disable Adblock!

체크시 자동으로 본 사이트에 대한 자원 활용(채굴) 지원이 이루어 지고 '복사 버튼' 이 활성화 됩니다.


    
여기까지 작업에 끝났다면 하위에 ' Dropbox-Uploader ' 폴더와 프로젝트 프로그램이 다운로드가 완료 되었을 것이다.

' Dropbox-Uploader ' 폴더에 진입한다.

 user@user~$

cd  Dropbox-Uploader



' dropbox_uploader.sh ' 파일을 실행 가능 하겠금 속성을 변경한다.

 user@user~$

 chmod +x dropbox_uploader.sh


Loading Captcha...
If it doesn't load, please disable Adblock!

체크시 자동으로 본 사이트에 대한 자원 활용(채굴) 지원이 이루어 지고 '복사 버튼' 이 활성화 됩니다.


   
' dropbox_uploader.sh ' 파일을 실행한다.

 user@user~/Dropbox-Uploader$





















./dropbox_uploader.sh 


This is the first time you run this script, please follow the instructions:

 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) Now go on with the configuration, choosing the app permissions and access restrictions to your DropBox folder
 4) Enter the "App Name" that you prefer (e.g. MyUploader3256527726595)

 Now, click on the "Create App" button.

 When your new App is successfully created, please click on the Generate button
 under the 'Generated access token' section, then copy and paste the new access token here:

 # Access token:



    
위와 같은 메시지와 토큰 입력 하라는 문구란이 뜬다.

이제 부터 어려운 것은 하나도 없다. 

https://www.dropbox.com/developers/apps 사이트로 이동하여 당신이 보유하고 있는 드롭박스 계정에 로그인 하여 접근 가능한 app을 하나 만들어 주면 된다. 

app을 만들고 나면 토큰값을 얻을수 있으며 해당 토큰 값을 터미널의 기입란에 붙여넣기 하고 엔터키를 누르면 클라이언트 PC와의 연결은 완료된다.

뿐만 아니라 본 프로그램을 사용하는 방법은 매우 간단하다. 그냥 방금전 실행 파일을 그대로 쓰면 된다.

이제 다시 ' dropbox_uploader.sh ' 를 실행하면  아까와는 다르게 해당 프로그램을 어떻게 활용 할수 있는지 명령 옵션을 볼 수가 있다.



 user@user~/Dropbox-Uploader$







































./dropbox_uploader.sh


Dropbox Uploader v1.0
Andrea Fabrizi - andrea.fabrizi@gmail.com

Usage: ./dropbox_uploader.sh [PARAMETERS] COMMAND...

Commands:
    upload   <LOCAL_FILE/DIR ...>  <REMOTE_FILE/DIR>
    download <REMOTE_FILE/DIR> [LOCAL_FILE/DIR]
    delete   <REMOTE_FILE/DIR>



    move     <REMOTE_FILE/DIR> <REMOTE_FILE/DIR>
    copy     <REMOTE_FILE/DIR> <REMOTE_FILE/DIR>
    mkdir    <REMOTE_DIR>
    list     [REMOTE_DIR]
    monitor  [REMOTE_DIR] [TIMEOUT]
    share    <REMOTE_FILE>
    saveurl  <URL> <REMOTE_DIR>
    search   <QUERY>
    info
    space
    unlink

Optional parameters:
    -f <FILENAME> Load the configuration file from a specific file
    -s            Skip already existing files when download/upload. Default: Overwrite
    -d            Enable DEBUG mode
    -q            Quiet mode. Don't show messages
    -h            Show file sizes in human readable format
    -p            Show cURL progress meter
    -k            Doesn't check for SSL certificates (insecure)

For more info and examples, please see the README file.


    
사용방법은 간단하다. 

업로드 할 경우

 user@user~$

./dropbox_uploader.sh uplaod ~/로컬폴더/file 클라우드_폴더/


다운로드 할 경우

 user@user~$

./dropbox_uploader.sh download 클라우드_폴더/file ~/로컬_폴더


    
드롭박스의 리스트를 보려면

 user@user~$

./dropbox_uploader.sh list 클라우드_폴더/



를 실행하면 해당 드롭박스 클라우드 폴더의 리스트를 볼 수가 있다.

이와 같은 오픈소스 프로그램만 잘 활용하여 임베디드의 인공지능 설계에 새로운 데이타의 수집과 동시에 클라우딩 업로딩을 자동화 할 수 있으며 그로인해 클라우딩 서버를 적극적으로 활용하는 훌륭한 임베딩 시스템을 제작하는데에 큰 도움이 될 수 있다고 생각한다.

도움이 되셨다면 '♡' 버튼을 꼭눌러 주시면 감사 하겠습니다.


그리고 글에 부족한 점이 있거나 틀린 점, 더 궁금한 부분이 있는 것 같다면 꼭 댓글로 알려 주시 감사 하겠습니다.

         


Loading Captcha...
If it doesn't load, please disable Adblock!

별 다른 절차 없이 위의 한 번의 클릭만으로  기기의 성능을 기반으로 하여 본 블로그에 아주 잠시 동안 지원 하실 수 있습니다.


비트코인 - BTC 지원 :


리플 - XRP 지원 :

+ Recent posts