Sync Files with bitpocket
Productivity Sauce
bitpocket may not rival dedicated file syncing services like Dropbox or Wuala, but this neat tool has a few important advantages. For starters the entire solution consists of a single Bash script which uses the good old rsync tool to perform its syncing magic. Since you can deploy bitpocket on your own server, your storage space is limited only to the size of the server's hard disk. And, of course, there are no monthly fees to pay.
Rolling your own file syncing system based on bitpocket is not particularly complicated. First of all, make sure that rsync and openssh are installed on all machines you want to use with bitpocket. Next, use curl to download the latest version of the script on your machine and make it executable (you must run these commands as root):
curl -sL https://raw.github.com/sickill/bitpocket/master/bin/bitpocket > ~/usr/bin/bitpocket chmod +x ~/usr/bin/bitpocket
Connect then to your server and create a directory which will contain master copies of your files (replace user and remotehost with the actual user name and IP address of your server):
ssh user@remotehost mkdir ~/bitpocketmaster
Back on your machine, create a directory for use with bitpocket and initialize it for syncing with the bitpocketmaster directory on the server:
mkdir ~/bitpocket cd ~/bitpocket bitpocket init user@remotehost:~/bitpocketmaster
To manually sync the local and remote directories, switch to the bitpocket directory on your machine and execute the bitpocket sync command:
cd ~/bitpocket bitpocket sync
Instead of running the syncing operation manually you can set up a cron job. But before you do that, you have to set up a password-less SSH connection between your machine and the server. To do this, run the following commands:
cd ~/bitpocket $ ssh-keygen -t rsa -C bitpocket-`hostname` -N '' -f .bitpocket/id_rsa $ ssh-copy-id -i .bitpocket/id_rsa user@remotehost
Uncomment then the RSYNC_SSH line in the ~/bitpocket/.bitpocket/config file.
Run then the crontab -e command on your machine, and add the following cron job:
*/5 * * * * cd ~/bitpocket && nice ~/bin/bitpocket cron
Save the modified crontab file, and you are done.
Comments
comments powered by DisqusTag Cloud
News
-
Google and NASA Partner in Quantum Computing Project
Vendor D-Wave scores big with a sale to NASA's Quantum Intelligence Lab.
-
Mageia Project Announces Mageia 3 Linux
Many package updates and Steam integration highlight the latest from the Mandriva-based community Linux.
-
FSF Outs the World Wide Web Consortium over DRM Proposal
Richard Stallman calls for the W3C to remain independent of vendor interests.
-
Debian 7.0 Debuts
The new release supports nine architectures, 73 human languages, and zero non-Free components.
-
Alpha Version of Fedora 19 Released
Fedora developers release the first alpha version of Fedora 19, known as Schrödinger’s Cat, for general testing. The final release is expected in July 2013.
-
ack 2.0 Released
ack is a grep-like, command-line tool that has been optimized for programmers to search large trees of source code.
-
SUSE Studio 1.3 Released
New features in SUSE Studio 1.3 include enhanced cloud integration, VM platform support, and lifecycle management.
-
Xen To Become Linux Foundation Collaborative Project
The Linux Foundation recently announced that the Xen Project is becoming a Linux Foundation Collaborative Project.
-
RunRev Releases Open Source Version of LiveCode
Open source version of LiveCode is now available for developing apps, games, and utilities for all major platforms.
-
OpenDaylight Project Formed
OpenDaylight is an open source software-defined networking project committed to furthering adoption of SDN and accelerating innovation in a vendor-neutral and open environment.


BitPocket in Ubuntu Clientes / Debian Server
Do you got this issue?
Thanks for Your time.
Fernando A. Rodriguez
@_ FRodriguez@SerInformaticos.es
Msn_ info@SerInformaticos.es
Twt_ @SerInformaticos
Www_ www.SerInformaticos.es