Для ее работы поставьте модули
Код: Выделить всё
/usr/ports/www/p5-libwww/ (с ssl)
/usr/ports/net/p5-WebService-Dropbox/
вот пример конфига
Код: Выделить всё
# email dropbox
email = me@test.ru
# password dropbox
password = password
# https://www.dropbox.com/developers/apps
# key app
key = key_app
# secret app
secret = secret_app
# sandbox - Access Type is App folder (Your app only needs access to a single folder within the user's Dropbox)
# dropbox - Access Type is Full Dropbox (Your app needs access to the user's entire Dropbox)
root = sandbox
# path file in dropbox
path_dropbox = MacOS
# path backup
# ! - not backup
path_backup = /Users/thefree/Public/
path_backup = !/Users/thefree/Public/ero/
Код: Выделить всё
free:homelessbp thefree$ perl homelessbp -c homelessbp.conf setup
Please Access URL to authorization your App and press Enter:
https://www.dropbox.com/1/oauth/authorize?oauth_token=4gy0trvu1ob6765432jhbub98785ur29bg&oauth_callback=
Код: Выделить всё
free:homelessbp thefree$
free:homelessbp thefree$ perl homelessbp -h
usage: homelessbp [OPTIONS]
homelessbp backup -c /home/me/homelessbp.conf
These options are available:
-h, --help Show this message.
-c, --config Patch to config file (default: /usr/local/etc/homelessbp.conf)
setup Run to authorization your App
backup Run backup
free:homelessbp thefree$ perl homelessbp -c homelessbp.conf backup
free:homelessbp thefree$ ll ~/Dropbox/Apps/test_blya/win/
total 8
-rw-r--r-- 1 thefree staff 222B 23 мар 21:19 2012_03_23-2119.tar.gz
free:homelessbp thefree$
p.s.s. а еще это фигня может работать под *unix и под винду.