[2019-01-14 06:28 root@bamboo:/mirror]# #dga-. BEGIN install janeczku/dropbox from the top and show how it is used and that it works
[2019-01-14 06:28 root@bamboo:/mirror]#
[2019-01-14 06:28 root@bamboo:/mirror]# #dga- per https://hub.docker.com/r/janeczku/dropbox/
[2019-01-14 06:28 root@bamboo:/mirror]#
See hub.docker.com/r/janeczku/dropbox/
[2019-01-14 06:28 root@bamboo:/mirror]# #dga- (Step 1) Make a local directory that will be synced with my remote Dropbox account files
[2019-01-14 06:44 root@bamboo:/mirror]#
[2019-01-14 06:44 root@bamboo:/mirror]# mkdir /mirror/dropbox
[2019-01-14 06:44 root@bamboo:/mirror]#
[2019-01-14 06:45 root@bamboo:/mirror]# #dga- (Step 2) run the aneczku/dropbox image (image will be pulled as well)
[2019-01-14 06:46 root@bamboo:/mirror]#
[2019-01-14 06:46 root@bamboo:/mirror]# docker images | grep dropbox
[2019-01-14 06:46 root@bamboo:/mirror]# docker ps -a | grep dropbox
[2019-01-14 06:47 root@bamboo:/mirror]#
[2019-01-14 06:47 root@bamboo:/mirror]# docker run -d --restart=always --name=dropbox -v /mirror/dropbox:/dbox/Dropbox janeczku/dropbox
Unable to find image 'janeczku/dropbox:latest' locally
latest: Pulling from janeczku/dropbox
...
Digest: sha256:8931b2b86d64148fe60c1d9fa4d169ac1bfe47eb3c88daa032520243bc93a170
Status: Downloaded newer image for janeczku/dropbox:latest
5337a5b8681486d3d6bda7620064a701fc8c3fb81d5b6826cd9e652a03f5ae9b
[2019-01-14 06:48 root@bamboo:/mirror]#
[2019-01-14 06:48 root@bamboo:/mirror]# docker images | grep dropbox
janeczku/dropbox latest a8964074d4f6 2 years ago 601MB
[2019-01-14 06:48 root@bamboo:/mirror]# docker ps -a | grep dropbox
5337a5b86814 janeczku/dropbox "/root/run" 18 seconds ago Up 17 seconds 17500/tcp dropbox
[2019-01-14 06:48 root@bamboo:/mirror]#
[2019-01-14 06:48 root@bamboo:/mirror]# #dga- (Step 3) examine docker logs of the new container to obain Dropbox URL, visit that URL one time only to authenticate this client
[2019-01-14 06:53 root@bamboo:/mirror]#
[2019-01-14 06:53 root@bamboo:/mirror]# docker logs --tail 2 dropbox
This computer isn't linked to any Dropbox account...
Please visit https://www.dropbox.com/cli_link_nonce?nonce=d08c6ac081ahblahblahblah to link this device.
[2019-01-14 06:53 root@bamboo:/mirror]#
[2019-01-14 06:53 root@bamboo:/mirror]# #dga- (Step 4) Observed that my remote Dropbox account has been uploaded to my local dir /mirror/dropbox:
[2019-01-14 06:58 root@bamboo:/mirror]#
[2019-01-14 06:58 root@bamboo:/mirror]# ls -l /mirror/dropbox
total 24
drwxrwxr-x 2 ubuntu ubuntu 4096 Feb 27 2016 genew
drwxrwxr-x 2 ubuntu ubuntu 4096 Jan 14 06:54 Public
drwxrwxr-x 2 ubuntu ubuntu 4096 Jan 14 06:54 tony
[2019-01-14 06:58 root@bamboo:/mirror]#
[2019-01-14 06:58 root@bamboo:/mirror]# #dga- (Step 5) Add a new directory and file to my local dropbox directory and observe that is is automatically uploaded to my remote Dropbox files
[2019-01-14 06:59 root@bamboo:/mirror]#
[2019-01-14 06:59 root@bamboo:/mirror]# mkdir /mirror/dropbox/NEWDIR
[2019-01-14 07:00 root@bamboo:/mirror]#
[2019-01-14 07:00 root@bamboo:/mirror]# #dga- the new (empty) directory appeared in my remote Dropbox files
[2019-01-14 07:00 root@bamboo:/mirror]#
[2019-01-14 07:00 root@bamboo:/mirror]# echo "test a push" > /mirror/dropbox/NEWDIR/testpush.txt
[2019-01-14 07:01 root@bamboo:/mirror]#
[2019-01-14 07:01 root@bamboo:/mirror]# #dga- the new file was pushed to my remote Dropbox as NEWDIR/testpush.txt
[2019-01-14 07:02 root@bamboo:/mirror]#
[2019-01-14 07:02 root@bamboo:/mirror]# #dga- (Step 6) not sure if needed but make owner of all files be 1000:1000 (he default UID and GID assumed by this container) (see: https://hub.docker.com/r/janeczku/dropbox/)
[2019-01-14 07:18 root@bamboo:/mirror]#
[2019-01-14 07:19 root@bamboo:/mirror]# chown 1000:1000 dropbox -R
[2019-01-14 07:19 root@bamboo:/mirror]#
[2019-01-14 07:19 root@bamboo:/mirror]# #dga- (Step 7) remotely add a new file NEWDIR/testpull.txt to my remote Dropbox files and observe it is pulled to my local files automatically
[2019-01-14 07:19 root@bamboo:/mirror]#
[2019-01-14 07:19 root@bamboo:/mirror]# ls -l /mirror/dropbox/NEWDIR/
total 16
-rw-rw-r-- 1 ubuntu ubuntu 12 Jan 14 07:16 testpull.txt
-rw-r--r-- 1 ubuntu ubuntu 12 Jan 14 07:01 testpush.txt
[2019-01-14 07:20 root@bamboo:/mirror]#
[2019-01-14 07:20 root@bamboo:/mirror]# cat /mirror/dropbox/NEWDIR/testpull.txt
test a pull
[2019-01-14 07:20 root@bamboo:/mirror]#
[2019-01-14 07:20 root@bamboo:/mirror]# docker images | grep dropbox
janeczku/dropbox latest a8964074d4f6 2 years ago 601MB
[2019-01-14 07:20 root@bamboo:/mirror]# docker ps -a | grep dropbox
5337a5b86814 janeczku/dropbox "/root/run" 32 minutes ago Up 32 minutes 17500/tcp dropbox
[2019-01-14 07:20 root@bamboo:/mirror]#
[2019-01-14 07:21 root@bamboo:/mirror]# #dga- (Step 8) Success. Use commands provided by janeczku/dropbox to show state of my dropbox files:
[2019-01-14 07:22 root@bamboo:/mirror]#
[2019-01-14 07:22 root@bamboo:/mirror]# docker exec -t -i dropbox dropbox help
Dropbox command-line interface
commands:
Note: use dropbox help to view usage for a specific command.
status get current status of the dropboxd
throttle set bandwidth limits for Dropbox
help provide help
puburl get public url of a file in your dropbox's public folder
stop stop dropboxd
running return whether dropbox is running
start start dropboxd
filestatus get current sync status of one or more files
ls list directory contents with current sync status
autostart automatically start dropbox at login
exclude ignores/excludes a directory from syncing
lansync enables or disables LAN sync
sharelink get a shared link for a file in your dropbox
proxy set proxy settings for Dropbox
[2019-01-14 07:22 root@bamboo:/mirror]# docker exec -t -i dropbox dropbox status
Up to date
[2019-01-14 07:23 root@bamboo:/mirror]#
[2019-01-14 07:23 root@bamboo:/mirror]# docker exec -t -i dropbox dropbox filestatus
.dropbox: unwatched
.dropbox.cache: unwatched
genew: up to date
NEWDIR: up to date
Public: up to date
tony: up to date
[2019-01-14 07:23 root@bamboo:/mirror]# docker exec -t -i dropbox dropbox ls
genew
NEWDIR
Public
tony
[2019-01-14 07:23 root@bamboo:/mirror]# docker exec -t -i dropbox dropbox ls NEWDIR
testpull.txt
testpush.txt
[2019-01-14 07:24 root@bamboo:/mirror]# #dga-. END install janeczku/dropbox from the top and show how it is used and that it works
[2019-01-14 07:24 root@bamboo:/mirror]#