Blog

SmartFile Moves Files, And Locations

June 15th, 2010

Although we spend a lot of time moving files across the Internet, recently we made a different kind of move. This time we moved our office to Broad Ripple, a trendy suburb on the north side of Indianapolis. It’s just too bad it wasn’t as fast and painless as moving files. What’s ironic is the idea that things always work in cycles, that they repeat themselves given enough time. Broad Ripple happens to be the same area where the relationships and ultimately the foundation for SmartFile were created 10 years ago.

A lot of things have changed for us in the last 10 years but one thing has remained true, and that’s our passion for doing what we do and loving our work. Moving back to Broad Ripple not only makes us grateful, but it also gives us a moment of reflection to see just how far we’ve come and what we’ve accomplished. Thank you to all of our family, friends, and clients for your support. We’re looking forward to the next 10 years.

SmartFile Sponsors Professional Networking Organization Rainmaker

June 10th, 2010

As the fastest growing business networking organization in the Midwest, the members of Rainmakers focus on building solid relationships with other professionals in their area, which results in a core group of individuals working for and selling each other’s services. Rainmakers separates itself from other networking groups because it teaches people how to build long-term strategic relationships by identifying a niche and then building relationships and generating long-term growth within that area. With each member being an expert in their respective field, the outcome is a group of individuals advising, promoting, and supporting each other in the business community.

As a corporate sponsor of Rainmakers, SmartFile encourages the personal and professional development of entrepreneurs and professionals alike. In addition, all members of Rainmakers will receive a 20% discount on a Smart Package, making the service only $7.95/month.

For more information, or if you’re in the Midwest and would like to find a networking event in your area, please visit www.gorainmakers.com

Securing Your Online Files

June 8th, 2010

The recent news about the security flaws in Adobe’s software may not come as a big shock to some of you, but it should serve as a big reminder that you can never be too careful when it comes to protecting yourself online. Whether it’s someone trying to access your information remotely, or a missing or stolen laptop, you need to make sure you’re doing everything you can to protect yourself and your work – and we’re doing everything we can do to help you.

With our SmartKey program, users are issued a USB device which is bound directly to a specific user. When logging into SmartFile, that user will need to pass a two-factor authentication before their login is successful. They will first need to enter a single-use password issued via the SmartKey technology, followed by their standard account login information. By using SmartKey, your SmartFile protected files have an extra layer of security which helps you keep the good things in and the bad things out.

To read more about our SmartKey program, click here

Backing up Linux machines into SmartFile.

June 3rd, 2010

SmartFile provides a backup client for Windows. However, if you have Linux servers, it is just as important to back them up as well. Since SmartFile provides FTP access to your space, this task can be easily accomplished with some tools you likely already have installed.

This article will detail the steps to perform a simple, safe, encrypted backup directly to the SmartFile servers. At the end of the article a script will be provided that you can simply install onto your system to perform nightly backups.

Required Tools

Tar is historically for creating Tape ARchives. Thus backing up to a tape would usually involve using tar. Tar has many features including compression and is great for performing backups of Linux systems. Not only can it write to a tape, but also to a file on disk. Further, it can write the archive to stdout, so it can be fed into another program.

OpenSSL is an open source library and command line application that is capable of performing myriad encryption tasks. It is basically the swiss army knife of encryption for Linux systems. For our purposes, we will use it to encrypt our backup file before sending it to the FTP server. By default openssl will read input from stdin and output to stdout. This is perfect for our purposes.

cURL is a network client that is URL driven. It allows uploading or downloading to or from FTP or HTTP servers. For us, the main feature that cURL provides is that you can stream data directly to a file on an FTP server. Let me explain, while most FTP clients will allow you to upload a file from your file system to an FTP server this requires that the file you wish to send to the FTP server already exist on your disk. What is wanted for our backup is a way to “stream” the backup file directly to the FTP server without touching the local disk. cURL provides this with the -T option. If -T is passed – as the file, then the file data is read from stdin.

Now that we are familiar with the tools, let’s take a look at how we will use them all together. Linux allows multiple commands to be chained together by piping the output (stdout) of one command on to the input (stdin) of another command. The | or pipe character is used for this purpose. Thus at a high level, we will be doing the following.

tar | openssl | curl

Tar will create the backup of our system, openssl will then encrypt that backup and curl will transfer it to the FTP server, all without creating any temporary files that we would otherwise need to be cleaned up later.

All that remains is to determine what parameters each of the above commands needs to be given to get the behavior we want.

Tar – Parameters.

To create an archive, you use the c option. To compress the archive using Bzip2, you use the j option. Since we want to back up the entire system, our tar command thus far is.

tar cj /

By omitting any option to save the archive to disk, tar will by default output it to stdout. This allows us to pass the archive data to the next program in our chain without saving it to disk.

There are certain directories within your Linux system that should not be backed up. Some examples are:

  • /proc – The proc file system is provided by the Linux kernel and contains information about running programs.
  • /sys – The sys file system is provided by the kernel and contains information about hardware.
  • /dev – The dev file system consists of device nodes, which represent Linux device drivers.

Backing up the above directories would be folly, as they are provided by the kernel, and some of them (/dev/zero) are actually infinite in size. So, the second set of parameters we will pass to tar will exclude these file systems.

tar cj / --exclude=/proc --exclude=/dev --exclude=/sys

You may also wish to exclude /mnt, as generally you will have other file systems mounted there. These may be remote file systems that are already being backed up via other means. Of course, /mnt may contain file systems that you wish to back up. Your system configuration will dictate your choice here.

OpenSSL – Parameters.

We want openssl to perform encryption, thus we pass it the enc option. Also, I have opted to use the aes-256 algorithm in cbc mode, so we must pass that as well. Finally, openssl requires a key to perform our encryption. This key will be derived from a passphrase, this derivative procedure will use a salt value, so we also provide that option. We will store the passphrase in a file, so that openssl can retrieve it from that file.

openssl enc -aes-256-cbc -salt -pass file:/etc/backup-key

And we can create the key by doing the following.

echo 'This is my backup key!' > /etc/backup-key
chmod 400 /etc/backup-key

Of course, you are well-advised to use something other than the example key above.

cURL – Parameters.

Now, the final step in our backup procedure is to actually transfer the file to SmartFile. We will do this using cURL and the FTP protocol. cURL is driven by URLs, so we must provide one.

curl ftp://www.smartfile.com/backup/

This tells curl to connect to www.smartfile.com and move into the backup directory. However, if the backup directory does not exist, curl will fail. Thus we will ask curl to create it for us if it does not exist.

curl --ftp-create-dirs ftp://www.smartfile.com/backup/

Now, as I alluded to before, we want curl to upload the data that it receives from it’s stdin. This is achieved by using the -T option like so.

curl --ftp-create-dirs -T - ftp://www.smartfile.com/backup/

If we want to use SSL, there are a couple of other options to provide. I suggest skipping SSL if you are already encrypting the backup file. However, if you want to use SSL, you would use the following parameters.

curl --ftp-create-dirs --ftp-ssl --ftp-ssl-reqd --insecure -T - ftp://www.smartfile.com/backup/

We are almost done, the final bit of information that curl needs is a username and password. We could have provided it as part of the URL, but that would expose our credentials to anyone snooping on the machine while the backup is running. It is safer to place the credentials into a file and instruct curl to retrieve them from the file. cURL is capable of doing this using a .netrc file. You can create the .netrc file like so.

echo machine www.smartfile.com login <username> password <password> > ~/.netrc
chmod 400 ~/.netrc

Of course, replace <username> and <password> with your username and password respectively. Now we instruct cURL to use our new .netrc file.

curl --ftp-create-dirs --ftp-ssl --ftp-ssl-reqd --insecure --netrc -T - ftp://www.smartfile.com/backup/

Putting it all together.

Now that you understand the basic building blocks of our backup to FTP solution. Please allow me provide you with a working script. This script was written and tested on CentOS 5.4. Some of the utilities used are out-of-date, for example, the version of curl available from the CentOS repositories uses some deprecated options, on other distributions, you may need to make modifications to these options. You will need to edit the configuration section of the script if you want to customize the behavior.

To install and use this backup script follow the steps below.

  1. Download the script in the following location and ensure it is executable.
    wget http://www.smartfile.com/downloads/smartfile-backup.sh -O /usr/local/bin/smartfile-backup.sh
    chmod +x /usr/local/bin/smartfile-backup.sh
  2. Customize the configuration section.
  3. Create your key and .netrc files as directed above.
  4. Finally, schedule it to run with cron. The example below will run at midnight every night.
    crontab -e
    0 0 * * * /usr/local/bin/smartfile-backup.sh

You can also run the script manually to ensure it works properly.

/bin/bash -x /usr/local/bin/smartfile-backup.sh

Restoring from a backup.

To restore the backup, or to retrieve files from the backup you can follow the steps below.

  1. Download the backup file.
  2. Decrypt the backup file.
  3. Use tar to extract what you need.

Download the backup file.

You can either use the SmartFile web interface or FTP to retrieve the file.

Decrypt the backup file.

You can use OpenSSL to decrypt the file. The following command line would do the trick.

openssl enc -d -aes-256-cbc -salt -pass pass:'This is my backup key!' -in full-2010-06-03.tar.bz2 -out full-2010-06-03.tar.bz2.dec

Use tar to extract what you need.

You can either extract the entire archive or a portion of it. Below are commands to perform either task. For more information, read the tar man page..

mkdir /tmp/restore
tar xjf full-2010-06-03.tar.bz2.dec -C /tmp/restore

mkdir /tmp/restore
tar xjf full-2010-06-03.tar.bz2.dec -C /tmp/restore /path/to/file

** Note **
You may receive the following warning during extraction:

bzip2: (stdin): trailing garbage after EOF ignored

This seems harmless, you can get rid of it by either writing the archive to disk before transfer or using gzip instead of bzip2. The archive still decompresses fine, but tar is apparently outputting some additional garbage when using bzip2 and outputting to stdout. I personally still using bzip2 and stdout, as the advantages (greater compression ratio, no temp disk space required) outweigh the disadvantages.

Work Smart, Play Smart, Share Smart

May 19th, 2010

Aside from all the ways SmartFile can help you at the office, it can also help you score some points with the family. With summer quickly approaching, a lot of us will be hitting the road for our family vacations and the one thing you always take, along with sunscreen, is your camera. And once the trip ends, you’ll usually hear somebody say, “I’ll email you the pictures.”

Well that’s easier said and most of the time not done, at least not before the kids are another year older. But with SmartFile, all you need to do is upload your pictures and videos, then simply (and Smartly) send file links to everyone and let them take care of the rest. They can download the files anytime and you can even keep an eye on who has or hasn’t completed their downloads. It makes reliving the memories as easy as 1,2,3 – that is, if you want to remember.

Private Label Update

May 12th, 2010

This last few weeks have been quite amazing. SmartFile is starting to position ourself as a market leader in Private Label file storage and online collaboration. We have created partnerships with software companies, telcos, ISP’s, and document management providers.

This we past weekend we successfully launched our Private Label product to allow companies to not only offer a valuable service, but allow them to market it under their own brand. This allows them to immediately plugin FTP, and online storage directly into their sales channel.

With wholesale pricing we allow the reseller to make a substantial profit without having to worry about servers, development and support.

Please contact one of our reseller specialist to see an online demo.  sales@smartfile.com

May Features Release

May 7th, 2010

Upload Multiple Files
No more having to select one file at time to upload. You can now select multiple files from your Windows, Mac, or Linux file browser to upload.

Customize Column Display
Users can now customize what items they want to see in the “Manage Files” section of the website. Choose from Size, Percent, Owner, Creation Date, Modified Date, and even Access Rights.

Archive Management
Archives (.zip, .tar.gz, .tar.bz) can now be browsed like folders in “Manage Files”. Contents of the archive can also be downloaded and viewed without a file extraction.

Open Files From SmartFile
When a file is clicked, the file will be rendered rather than downloaded by browser. The default action now opens the file rather than downloading it. (Download is now on Actions menu).

Feature Control
Administrators can now hide the “Activity” and “SmartBackup” utility in the user management screen.

Improved Payment Management
You now have the ability to easily update your credit card information through our payment screen.

Fee-Fi-Fo-Finger

May 7th, 2010

Without a doubt, the phrase of the day is fat-finger. We all know what it means and a lot of people today found out exactly what it can do (not to be confused with sausage fingers, that’s a whole nother story). With the Dow dropping almost 1000 points today, some are attributing this sudden change to a simple mistake made by a trader. Instead of entering an order to sell a million shares, it was fat-fingered in as an order to sell a billion shares. An order like that is bound to create a domino effect, where automated sell triggers start firing and people start panicking.

We all work with somebody that has “fat-fingers” and there’s nothing worse than losing your work because of a foolish mistake.
That’s why it’s important to make sure you always have a backup system in place. Ideally, you’re making regular
backups of your work and saving your files at crucial points. But if you’re one of those that are gambling on never being
fat-fingered, you might want to check your drink.

Is There Really More Than Corn in Indiana?

April 23rd, 2010

If you know anything about me, you know that I love the great city of Indianapolis. So much that I have often been referred to as a “homie” by my out-of-state friends. It has the offerings of a large city, but has a small town feel.

It looks like Indy is starting to show up on the national technology radar, and why wouldn’t we? We have some of the best schools in the nation, cheap living and a great place to have a family. There was an article just published on Online Media Daily in regards to the city’s technology sector. Even referring to us as “Silcon Prairie”. What the heck, we’ll take it.

With companies like ExactTarget, ChaCha, Aprimo, Made2Manage and a ton of other startups, Indianapolis is starting to look more like a Twitter social, rather than a 4-H gathering. This is not only great for our city, but also startups like SmartFile. By increasing our exposure, we make resources such as technical talent and venture capital more accessible.

So good job Indy! Let’s keep working hard to push the technology envelope.

What Do All Hosting Companies Have in Common?

April 21st, 2010

The answer to that is simple, more recurring revenue. The more services that you integrate into your product offering, the more opportunity you have for additional revenue. Additional services also give your customers more reasons to use you.

Obviously your services need to compliment each other. I think a common mistake most small businesses make is trying to offer everything from fried chicken to live bait. Don’t be lured by the thought of making additional revenue just by offering more services. We have heard it before, more isn’t always better; however, quality always is.

SmartFile has worked with resellers such as, IT service, telecom, and software providers. We are now making a push into the hosting arena. We know this market is underserved from a FTP, and file sharing perspective. We will be offering a truly integrated product that will allow our fellow hosters to provide a great service at ridiculously low prices. Contact our sales staff (sales@smartfile.com) for a live webinar.

View Pricing Plans

Smartfile offers the most competitive and flexible plans available on the net.

view more

Typical SmartFile Customers

View the different type of customers and uses for the program.

view more

Contact Us

Need technical support or have a sales related question. Please contact us by phone at 1-877-336-3453.

view more

View Feature List

We don't try to nickel and dime you. All of our packages comes packed with all the same great features.

view more