Showing posts with label lftp. Show all posts
Showing posts with label lftp. Show all posts

Friday, 27 February 2015

BB10 how to sync without the shit Blackberry Link...

Its just some days that I deleted the crap from BB, called 'Link', in fact I used it just to move (one way mirror) files from the desktop to the BB.

What I am using now is more 80s like,  but works way better than installing the crap from BB, its just sync via FTP ;-) , to be more precise I am using the lftp, its mainly for Linux, MacOSX version via macports, there is a pre-compiled version for windoze around.

On the BB10 I installed an FTP server app from the google play, I installed it via the Snap as I don't like the Amazon store that BB included by default.

The whole magic is a shell script like this (script for MacOSX) :

---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<

lftp -u USERNAME,PASSWORD -p PORT IP << EOF
set ftp:list-options -a

mirror -c -e -R ./files1 /accounts/1000/removable/sdcard/files1 --exclude *.bak
mirror -c -e -R ./Documents /accounts/1000/shared/documents --exclude
EOF

---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<

Its very simple, just pay attention to the paths and don't forget to put the correct PORT number.

the BB10 the paths are :
internal storage .............  /accounts/1000/shared/
(removable) sdcard  ......  /accounts/1000/removable/sdcard/

 
Also, you can exclude files by using the --exclude parameter, for example to avoid sync files like backup files.