Uploaded by linuxbyexample on Nov 25, 2010
http://linuxbyexample.org
Backups! - sooner or later you are going to have to rely on your backups, to retrieve an important photograph or document that you have lost, and if your home or business premises is subjected to flood or fire damage, then your going to be thankful that those backups where off-site, accessible over the Internet.
There are many services that provide off-site storage solutions for your data, but I prefer to use the Amazon S3 service, as it's very affordable, and you just pay for the storage you use. To give you an example, I have over nine Gigabytes of family photographs and documents saved there, and it costs me around one dollar fifty a month, which is less then eighty pence for us in the UK. A small price to pay to ensure all my wedding and holiday photographs are backed up.
Amazon provides an nice web interface to their product, so you can see what files you have uploaded, retrieving them if necessary. If your just a home user, then using the file upload feature of the web application will probably meet your requirements. However, if your a business, then maybe you want to automate your backups at a scheduled time each night, so that all your data is compressed, and then auto uploaded to your Amazon S3 account. So I am going to show you how to use the command line tool, called s 3 command, which once installed and configured with your account credentials, will allow you to upload files as part of a backup script. (http://s3tools.org/s3cmd)
Below I show how to use the command, it's worth mentioning that if your concerned about Amazon employees accessing the files you upload, then simply use some form of encryption on your files before you upload them. In episode four, I showed you how to use the c crypt command to encrypt your files, so check out that video for some tips on command line encryption.
OK, the first thing we need to do is create a bucket, which is Amazon S3 speak for a folder, which will contain the files which we upload. The command for this is s 3 c m d, space mb, short for make bucket, followed by the bucket name you want to create. The bucket name needs to be unique across all users who use the Amazon S3 service, so using your web site name is a good choice.
We can list the contents of the remote bucket, by changing the mb parameter with ls, as you can see there are no files uploaded yet, so let's try uploading a file.
Here I have a JPEG photograph that I want to backup, the command parameter for this is put, followed by the file name you wish to upload, finally entering the bucket name you wish to store the file in. As the file is uploading, you are given a percentage readout, so you can gauge how long it will take to upload your files.
Once the file has been uploaded, we can re-run the listing command to verify that it is in fact there.
Let's now delete my local copy of the file by using the rm command. Oops! - didn't mean to do that. OK, let's restore the file from the remote backup. The command parameter to restore a file is get, followed by the full bucket name and file name to restore. There you go, it's one hundred percent done, let's just check, yep the file is there.
If you want to delete a file from the remote backup, you can use the del command parameter, followed by the full path to the file name you wish to delete.
As your charged for the storage you use, it's really useful to be able to find out how much storage all your backups are using. You can do this by using the du command parameter, which is short for disk usage, and if supplied with the dash H option, the output is displayed in a more human readable format, that being in Gigabyte totals. As you can see I am using nine Gigabytes at the moment.
-
10 likes, 0 dislikes
7:26
Amazon S3 For Newbies-Part 1by arindamch7,135 views
1:13
Linux kill Commandby Zeralas796 views
8:04
Amazon S3 Video Series Introductionby how2info4u911 views
9:14
Backup to Amazon S3by jerryhuang88451 views
6:19
What IS the BEST Amazon S3 Software Interface?by screencastingcash197 views
1:51
Stefan Raab vs. Moses Pelham Vivasion 1996by mindwde6,047 views
9:28
Junglediskby lilreader1,219 views
11:12
Zettar ZCloud AWS S3 sandbox virtual Appliance in a VMWare Server environmentby zettarinfo138 views
14:54
Easy Web Extract v2.5 - Extract data from amazon laptopsby mrcanhnv1,049 views
8:09
Linux tar command tutorialby climagic7,709 views
3:45
Amazon S3by AskMrVideo8,524 views
1:13
My Custom Linux Desktop Interfaceby controlj650 views
4:06
Nomadi - L'Aviatoreby supernador91132,807 views
4:33
aircrack-ng wep hack on ubuntu 9.04by peertop70,257 views
8:10
Basic Linux Commandsby dragonlover619,438 views
0:59
How-to Backup Data with Amazon S3by dfros1,919 views
9:59
Screamernet Setup Tutorial - Lightwave3d 8.5 HD 720Pby warren8002,314 views
6:01
Joomla! Cloud hosting with Amazon EC2 Video Tutorial Part 2by JoomlArt5,603 views
3:33
CloudBerry S3 Backup for Windows Home Serverby cloudman20109,234 views
9:01
Amazon S3 Service - Getting Startedby buzzdeep23,779 views
- Loading more suggestions...
@lardconcepts
Thanks for the comments, glad you liked the video, and thanks for subscribing.
Paul.
linuxbyexample 1 year ago
This is good - clear, HD, good voice. ... subscribed!
lardconcepts 1 year ago