5/01/2012

아무 폴더나 드랍박스에 저장하기 (맥/윈도우)


맥 사용자:

To do this, you need to use the Terminal. Since Dropbox allows you to choose where your Dropbox folder resides, there's no "one size fits all" solution, but here's the general syntax (replaceusernamefoldername, and path/to/dropbox with your own values):



ln -s /Users/username/Documents/foldername /Users/path/to/dropbox/Files/




You can also drag the source and destination folders into the Terminal window instead of typing the paths. Note that foldername has no trailing slash (/), but that Files/ bit does -- this is very important! With symbolic links in place, you can save files where you normally would, and they'll still automatically sync to the cloud.


출처: http://hints.macworld.com/article.php?story=20090929052128498

삭제방법: 

심볼릭 링크가 있는 경우에는 파일 및 폴더의 복사, 제거, 전송 등의 과정에서 주의를 요한다.

심볼릭 링크를 만드는 건 알다시피,
ln -s (링크할 폴더/파일경로) (만들 심볼릭링크명)

여기서 주의해야할 점은 (링크할 폴더/파일경로)를 어떻게 주느냐에 따라 
심볼릭 링크도 절대경로 혹은 상대경로를 갖게 된다는 점이다!


심볼릭 링크를 제거하는 건,
rm (심볼릭링크명)

이때!!
만약 삭제하고 싶은 심볼릭 링크명이 symlink라면,
rm -r symlink/
로 하면 큰일난다~
/를 붙이면 symlink에 연결된 폴더로 가서 마구 지워대기 때문이다..
-r이 없다면 "이건 폴더라서 못지워~"라는 경고문만 나오고 심볼릭 링크를 지울 수는 없다.
꼭 rm symlink 로 해서 지우길..


출처: http://robot.kaist.ac.kr/~kimsk/blog/word/tag/%EC%8B%AC%EB%B3%BC%EB%A6%AD%20%EB%A7%81%ED%81%AC





윈도우 사용자:

1. Type cmd in windows search box, right click and choose “Run as administrator”.



2. Enter the following command:



MKLINK /D “C:\MyDocuments\MyDropbox\new_folder” “D:\Path_To_new_folder”



So if your “My Dropbox” folder is located at D:\My Dropbox and you want to sync E:\songs with Dropbox, you will have to add the enter the following command:



MKLINK /D “D\MyDropbox\songs” “E:\songs”



So if your “My Dropbox” folder is located at D:\My Dropbox and you want to sync E:\songs with Dropbox, you will have to add the enter the following command:The above command adds a symbolic link of the folder to your My Dropbox folder. A Symbolic link is nothing but a special type of file that contains a reference to another file or directory in the form of an absolute or relative path.


3. Now open your “My Dropbox” folder and you will see the symbolic link of the other folder, the one stored in your E Drive, as an example.


출처: http://www.ampercent.com/sync-files-folders-outside-my-dropbox-folder/7293/

No comments:

Post a Comment