짱구삼촌
14.12.10
조회 수 5185
추천 수 4
댓글 3








1. Dropbox 연결하기


https://play.google.com/store/apps/details?id=os.devwom.smanager.dropbox


드랍박스 연결 애드온 어플을 설치합니다.




스크립트 매니저 초기화면에서 메뉴키를 누르고 맨 위에 있는 Home/Net 클릭합니다.




해당 애드론 어플들을 설치하면 드랍박스, 박스, FTP, SMB등이 가능합니다.

드랍박스를 클릭해서 본인 계정을 설정합니다.






제가 쓰는 2개의 계정이 맨위에 보입니다.

모자이크 처리는 저 부분에 유저 아이디가 숫자로만 보여집니다.

저 아이디 숫자를 알아야 스크립트에서 동작시킵니다.




** 첨부한 스크립트는 본인 폰에 있는 연락처, 일정, 문자, 최근기록, 환경설정, 알람 의 db 파일을 tar 파일로 백업하고 자동으로 드랍박스에 업로드 해주는 기능입니다.


언제나처럼 /sdcard/Download/modding 폴더에서 실행합니다.

반드시 스크립트 매니저를 통해서 실행해야 합니다.

터미널에서는 안됩니다.


실행하면 드랍박스 계정의 이름이 나옵니다.

(애드온 어플의 설정 xml 에서 가져오게 했습니다. 숫자를 외우고 있을 필요도 없고 그래서 ㅋ)




폰에 있는 db 들을 tar 파일로 묶어서 backup_db 라는 폴더에 먼저 저장합니다.

계정을 선택하면 해당 계정의 숫자 드랍박스 아이디를 가져옵니다.




드랍박스 계정에 backup_db 폴더를 만들고 tar 파일을 업로드 합니다.

같은 이름의 파일이 존재하면 덮어쓸지 물어봅니다.




업로드합니다.



드랍박스에 올라갔습니다.




** 참고 자료


Local files


In order to refer to your device local files you need to use the following uri format

file:///path/to/file

note 3 slash between scheme and the path


Boxnet files


In order to refer to your Boxnet files you need to use the following uri format

boxnet://usermail@domain.net/path/to/file

Where usermail@domain.net is your user mail at boxnet account

제 폰은 박스 연결에 문제가 있네요.


Dropbox files


In order to refer to your Dropbox files you need to use the following uri format

boxnet://userid/path/to/file

Where userid is your userid at dropbox account. You can get your userid from your SManager configured connections


Windows/samba, sftp/ssh ftp files


In order to refer to your Windows/samba, sftp/ssh ftp files you need to use the following uri format


shceme://user@host:port/path/to/file


Where scheme is

smb: for Windows/Samba connections

sftp: for sftp/ssh connections

ftp: for ftp connections


user@ and :port are optional


Packed files

- 압축파일도 관리가 되는가봐요 ㅋ


Packed filer refers to file tree that resides inside a single file like compressed files.

NOTE: Packed files are read only files

At this moment SManager supports following schemes for packed files.

zip: browse inside zip/apk and jar files

yaffs2: browse inside basic yaffs2 disk images

tar: browse inside tar files

tgz: browse inside gzip tar compressed files

tbz2: browse inside bzip2 tar compressed files


In order to refer to packed files you need to use the following uri format

scheme:REALFILE!//path/to/file


Where scheme is zip,yaffs2,tar,tgz or tbz

and REALFILE is a real packed uri, including packed files


For example

zip:file:///path/myfile.zip!//path/inside/zip/log.txt

Refers to file /path/inside/zip/log.txt inside /path/myfile.zip in your device file


tgz:sftp://user@myserver/path/myfile.tgz!//path/inside/tgz/to/directory/

Refers to /path/inside/tgz/to/directory/ inside /path/myfile.tgz file stored in myserver host using user user


NOTE: Packed directories always must end on slash character(/)



파일 관리 예제입니다.


Some examples

smc cp -a "dropbox://numeric_user_id/Photos" "file:///sdcard/photos_dropbox"


smc cp -r sftp://user@host:3567/home/user/kk/*a* file:///sdcard/kk/k2


smc mkdir "boxnet://user@domain.net/onefolder" && smc mv "boxnet://user@domain.net/onefolder" "boxnet://user@domain.net/newname"


smc cp "file:///ueventd.mako.rc" "boxnet://user@domain.net/newname/"


smc rm -r "boxnet://user@domain.net/newname"


smc cp -r "ftp://user@ip_dir/home/user/one/directory" file:///sdcard/one/file "boxnet://user@domain.net/newname" smb://guest@other_ip/other/dir sftp://user@mymachine/home/user/destdir/


smc cp -r zip:dropbox://user_id/zipfile.zip!//directory/* sftp://user@host:1234/home/user/directory/





스크립트 매니저 내장된 GUI 팝업 창들입니다.

Implemented dialogs


화면 아래부분에 팝업창 띄우는거 2개


showToastShort

Shows a Toast with short time.


Arguments: Desired message to show

Return value: none


showToastLong

Shows a Toast with long time.


Arguments: Desired message to show

Return value: none


에스/노 대화창 띄우기


showYesNoDialog

Shows a yes/no dialog.


Arguments:

Number of allowed arguments 1 or 2

1 argument => only shows message

2 arguments => first argument title. Second argument is the message


Return value: y , n or empty string if the dialog was cancelled.


확인 대화창 띄우기


showOkDialog

Available from SManager 2.7.0 version


Shows a dialog only with Ok button.

IMPORTANT: when Ok is pressed, new line is written to SM_GUIFD stream, so always is needed read from it

Example always add these two lines


echo showOkDialog "This is my title" "This is my message" >&$SM_GUIFD

read res <&$SM_GUIFD


Arguments:

Number of allowed arguments 1 or 2

1 argument => only shows message

2 arguments => first argument title. Second argument is the message


Return value: y , n or empty string if the dialog was cancelled.


입력창 및 패쓰워드 입력창 띄우기


showInputDialog and showInputPasswordDialog

Shows an input box dialog. if action is showInputPasswordDialog the typed text will be hidden.


Arguments:

Optional arguments [ -d "default_value" ] adds default value for Input field, not requiring 4 arguments. Available from SManager 2.7.0 version


Number of allowed arguments 1, 2, 3 or 4

1 argument

only shows message

2 arguments

first argument title

Second argument message

3 arguments

first argument title.

Second argument message.

Third argument hint text

4 arguments

first argument title.

Second argument message.

Third argument hint text

Fourth default text

return value: typed string or empty string if dialog was cancelled


선택창 (단수 및 복수 선택창 2개)


showSpinnerDialog (single select option)

Shows a dialog with an array of options. Only is possible select one option.


Arguments:

Optional arguments [ -s "default_selection_index" ] set as checked default_selection_index item, starting at 1. Available from SManager 2.7.0 version


Number or arguments 2 or more

First argument: title

Rest of arguments: options

return value: selected index option. (First option is 1)

Empty string if dialog was cancelled


showSpinnerMultiselectDialog (multiple select option)

Shows a dialog with an array of options. It is possible select multiple options.


Arguments:

Optional arguments [ -s "default_selection_index" ] [ -s "default_selection_index" ] …

Set checked default_selection_indexes item or items, starting at 1. Available from SManager 2.7.0 version


Number or arguments 2 or more

First argument: title

Rest of arguments: options

return value: space separate selected options. (First option is 1)

Empty string for no selections or cancelled dialog.


Extra Form
첨부
141210003.png  [File Size:184.6KB/Download:1]
backup_essential_db_dropbox.sh  [File Size:3.7KB/Download:0]
141210007.png  [File Size:55.1KB/Download:0]
141210005.png  [File Size:160.6KB/Download:0]
141210006.png  [File Size:158.8KB/Download:0]
141210004.png  [File Size:158.3KB/Download:0]
141210002.png  [File Size:140.1KB/Download:0]
141210001.png  [File Size:128.2KB/Download:0]
댓글을 남겨야 다운로드가 가능합니다. 감사의 댓글을 달고 오른쪽 확인버튼을 눌러주세요.
다운로드시 일주일에 한개 이상의 게시물 작성이 필요합니다. 지금 자유게시판에 회원님의 하루를 남겨보세요.
추천♡버튼을 잊지 마세요. 추천인과 회원님 모두 포인트가 적립됩니다.

짱구삼촌 님의 SIGNATURE

profile

그래도 아직은 사랑이, 낡은 외투처럼 너덜너덜해져서 이제는 갖다 버려야 할, 그러나 버리지 못하고...

"신은 그저 질문하는 자일 뿐... 운명은 내가 던지는 질문이다. 답은 그대들이 찾아라."

댓글 3
  • profile
    드랍박스, FTP, SMB 등록하고 보니깐 BOX 안되는게 좀 아쉽네요 ㅋ SMB 이용해서 동일 와이파이 접속 컴퓨터에 파일 이동 및 복사 기능을 쓰면 좀 재미난게 나올지도 몰겠네요.
  • ?
    아무리봐도 뭐가뭔지 도통 알수가없네요ㅜㅜ
  • profile
    일단 드랍박스 연결을 설정해두면 스크립트에서 언제든지 복사 이동 등을 할 수 있다는 말이지요. 저 숫자 아이디 값만 알면 smc cp -a "dropbox://12345678/Photos" "file:///sdcard/photos_dropbox" 이렇게 할 수 있습니다. 드랍박스 Photos 폴더 파일을 /sdcard/photos_dropbox 폴더로 복사하라는 명령이 되는 겁니다. ^^*
댓글 쓰기 권한이 없습니다.
분류 정렬 목록 검색 쓰기
List of Articles
제목 글쓴이 추천 조회 날짜
노트 엣지, 노트4 DPI 정보 및 무의미 팁! 입니다. 4 노트리아 6 6567 2014.12.30
노트4에서 32비트와 64비트의 차이점 17 날으는유 37 6006 2014.12.30
ES 파일탐색기를 이용한 여러 위치의 복수 파일 일괄 복사 14 file 짱구삼촌 4 4025 2014.12.29
갤럭시노트4 (SM-N910S/K/L) 안드로이드 4.4.4 녹스 삭제 리스트 2 젤리빵™ 28 14558 2014.12.27
[sqlite3] calendar db 일정 뽑기 짱구삼촌 2 5384 2014.12.26
국내 노트2 DN4롬 사용해보기 7 세나™ 21 14570 2014.12.26
강좌 제조사 롤리팝 시스템 디오덱스 방법 18 file JOLT™ 45 12778 2014.12.25
카카오톡 친구목록에 포함되지 않도록 하기!! 32 kyle_park 49 6158 2014.12.24
[15.01.23] SKT 갤럭시노트4 (SM-N910S) 안드로이드 4.4.4 (KitKat) 시... 28 file 젤리빵™ 48 24514 2014.12.22
노트4 xposed 설치에 관한 팁(?)입니다. 6 virginia blu 9 7317 2014.12.21
노트4사용중발견한 소소한팁입니다 11 NoDoubt 2 3227 2014.12.20
팁인지는모르겠지만...(flat style colored bars) 4 file 헬더 2 2442 2014.12.19
롤리팝 테마,자료적용에관한 달빅캐시관련... 4 투철한실 5 8019 2014.12.17
[FYI] 갤럭시S5 LTE-A (SM-906S) 메뉴버튼에 짜증남을 극복하기.. 1 생빠곰 4 14682 2014.12.16
안드로이드 폰에서 하스스톤 실행 하기 20 s루인 13 19724 2014.12.16
G3 Cat.6 잠금화면제작 가이드입니다^^(파워포인트 기반) 2 file sjnetsys 4 8320 2014.12.15
강좌 갤럭시 s3 4.4.4 를 위한 간단한 트윅 강좌 17 세나™ 30 11386 2014.12.15
강좌 카톡 테마 어플 바로가기 없애기 5 file 세나™ 17 8575 2014.12.12
강좌 카톡 테마를 카톡 멀티용으로 수정하기 7 file 모카멜* 3 8170 2014.12.12
강좌 노트3 노트4롬/CM12 (유플 안됨) 18 5 9815 2014.12.11
삼성 노트4 멀테키 딜레이 줄이는 방법 소개 (노 루팅) 29 file SKYRIM 33 10810 2014.12.10
ScriptManager - GUI, Dropbox, FTP, SMB File Manage 3 file 짱구삼촌 4 5185 2014.12.10
리커버리복원 오류날때 저만의 해결책방법! 4 JangBeol 2 4355 2014.12.08
서드파티 카메라가 앱 설정에서 바로 촬영이 되지 않을경우 팁입니다. 4 file SNAG 1 3537 2014.12.08
MP3 가사 태그 넣는 방법 (PC & Phone) 6 file 짱구삼촌 9 9628 2014.12.08
[롤리팝] 커널패치 루팅법 입니다! (킷캣,젤리빈에도 유용!!!) 193 file hsk 448 27573 2014.12.07
노트2 4.4.2올릴때 현이임닿 5 3328 2014.12.07
(팁)노트4 펌업후 종료트윅과 볼륨뮤직컨트롤 이슈 해결 팁 5 세나™ 6 5683 2014.12.07
카메라 모드를 삼성 앱스토어에서 추가적으로 다운받을 수 있군요 ㅎ 11 file 스큐 16 4531 2014.12.06
시스템앱 업데이트 알려주는 PushBullet 2 file sunbeeJung 1 8762 2014.12.05
1 - 20 - 135