Barracuda Networks is known for its network products, including Spam, Virus and Firewall appliances. In February 2013, the company launched its cloud storage service, Copy.com, with several unique features including 256-bit AES encryption and support for multiple platforms such as Linux, Windows, Mac, and even the Raspberry Pi.
Having a cloud storage service that caters to Linux users is great (especially with the upcoming closure of Ubuntu One), but having one that works also on the Raspberry Pi is fantastic!
The first step is to download the Copy.com client for Raspberry Pi using
wget” command should already be installed on your Pi, but if it isn’t you can install it using:
sudo apt-get install wget
You will now have a file called “Copy.tgz” in your home directory. You can unpack the file using:
tar zxvf Copy.tgz
This will create a folder called “copy,” and in it there will be three sub-folders: “armv6h,” “x86,” and “x86_64.” The first one contains the Copy client binaries for the Raspberry Pi, the second contains the Copy client for 32-bit Linux on a PC, and the third the same client but for 64-bit Linux PCs.
We will use the Raspberry Pi binaries; however, using the Copy.com client is essentially the same on Linux PCs. There are two tools provided by Barracuda Networks: “CopyCmd” and “CopyConsole.” The first is a general utility which allows you to perform certain specific actions like retrieving a file or getting the public link for a file. The second is the command line version of the Copy app which syncs a local folder with the cloud storage.
The CopyCmd tool can be quite complex, but simple operations are easy to perform. Here is how you get a list of the files stored at Copy.com:
./CopyCmd Cloud -email@example.com -password='mypass' ls
The command needs to be run from the “armv6h” directory. If you want to run the command from somewhere else, you should provide the full path to the CopyCmd binary. The “username” and “password” are self explanatory. The last parameter “
ls” tells the tool to list the files in the cloud. Use “
ls -r” to get a recursive listing.
To download a file from Copy.com use:
./CopyCmd Cloud -firstname.lastname@example.org -password='mypass' get report1.doc report1.doc
The reason why “report1.doc” is repeated is that the first instance is the name of the file on Copy.com, and the second is the local file name. In both cases, full path names can be used, e.g. the second half of the command would be: “
get 'Reports/report1.doc' '/home/pi/reports1.doc'”
To see a list of the other commands supported by CopyCmd, just run the binary without any parameters to see the built-in help information.
The CopyConsole tool keeps a folder on your Raspberry Pi synchronized with the data on Copy.com. Whatever is uploaded to Copy.com from any client or via the web will be downloaded onto the Pi. Likewise any files added to the designated directory on the Pi will be uploaded to Copy.com.
The sync app runs in the background and is started like this:
./CopyConsole -daemon -email@example.com -p='mypass' -root=/home/pi/Copy
-root” parameter specifies which directory on the Pi will be synchronized with the online storage. If you don’t specify the password then the program will prompt you for one.
One thing worth noting is that if you have lots of files stored on Copy.com, and you activate the sync agent, then all of the data you have stored on the service will be downloaded to your Pi. Since many users probably use their Raspberry Pi with a 4GB or 8GB SD card, there is the danger of the storage filling up quickly.
You can also run the program in the foreground by omitting the “
If you are using the Copy.com client on a Linux PC (with an Intel or compatible processor), then there is also a third program called CopyAgent. It is a graphical program that runs on the Linux desktop. To run the client, find the “x86″ or “x86_64″ subfolder and double click on “CopyAgent.” It is similar to the Copy.com client that is found on Windows and OS X. The initial setup requires you to enter your Copy.com credentials and then confirm the sync folder. Once configured, the client remains in the tray and synchronizes the folders in the background.
Have you tried Copy.com and do you use the Raspberry Pi or Linux client program? Please let us know your experiences with the service in the comments below.