Tuesday, April 29, 2014

How To (Automatically) Backup Your Website Into Dropbox

Backup Box
Here’s where Backup Box comes in. Backup Box helps you securely transfer anything on an FTP server to your Dropbox account. Actually, Backup Box can integrate your FTP account with cloud storage providers like Amazon, GitHub, Box.net and Flickr as well. At this very moment, only Dropbox integration is supported while the others are still under development. It is free to use, with limited features like monthly backup schedule and immediate transfer schedule. In this post, I am focusing on preparing the backup data for weekly backup while running on cPanel server.
Backup Box
We can use this tool with various ways of implementation such as 1, directly copying the web directory using FTP and transferring to Dropbox (compressed or uncompressed) or 2, creating a compressed backup (cPanel backup) and using FTP to fetch the backup to Dropbox.
Before we proceed with the tutorial, ensure that you have following required information:
  • An FTP account which is mapped to your web directory. Get it from your hosting control panel.
  • A Dropbox account. You can register here and Earn 500 MB of bonus space for free.
  • A Backup Box account. You can register here for free.

Web Directory > FTP > Dropbox

Since the database is also important, we need to prepare the database backup and put it into our web directory. If you are running on Linux hosting, you can use a task scheduler called a cron job with some help from mysqldump. In cPanel, it is located under cPanel > Advanced > Cron jobs.
Let’s use the following data as an example:
  1. Web directory path: /home/username/public_html  
  2. cPanel username: mycpanel  
  3. cPanel password: mypass123$  
Create a new weekly cron job and use the following command:
  1. mysqldump --opt -Q -u mycpanel -p'mypass123$' --all-databases > /home/username/public_html/databases.sql  

Here’s An Example:

This will create an SQL backup file which includes all the databases under your cPanel account. Login into Backup Box. On the left panel, login into the FTP account by clicking the ‘gear’ icon. On the right panel, login into your Dropbox account.
You can choose Transfer public_html as a folder in the Transfer Options. This will transfer the whole public_html folder including all files into your Dropbox account. You can now start the immediate transfer by clicking Review. This will transfer the public_html folder to Dropbox. Once done, you can create Monthly schedule to automate this backup task monthly. Just click Monthly > select Date and Time > Finalize and Run. Note: If you want to use weekly or daily backup, you need to upgrade your subscription as stated in the website. Do not forget to change the cron job setting based on when you want the backup schedule to happen

CPanel Backup > FTP > Dropbox

The good thing about cPanel is you can generate your own backup automatically using cPanel API. In this case, we will use PHP script to run on schedule to generate backup. Since the backup location needs to be exclusively for Backup Box, we will need to create an FTP account which is mapped to a new backup folder.
Go to cPanel > FTP and create an FTP account as the screenshot below. Do not create the FTP directory under public_html because it is accessible publicly via web browser (unless you protect the directory with a password):
We need to use PHP with cPanel API to trigger the backup process. Download this file (cpanel-php-backup.zip) and unzip it. You should see 2 files, cpanel-backup.php and xmlapi.php.inc. Change all required information inside cpanel-backup.php as below:
  1. // Credentials for cPanel account  
  2. $source_server_ip = ""; // Server IP or domain name eg: 212.122.3.77 or cpanel.domain.tld  
  3. $cpanel_account = ""; // cPanel username  
  4. $cpanel_password = ""; // cPanel password  
  5.   
  6. // Credentials for FTP to Backup Box  
  7. $ftpacct = ""; // FTP account  
  8. $ftppass = ""; // FTP password  
  9. $email_notify = ''; // Email address for backup notification  
Save the file and upload both files into your public_html directory using FTP. You can start to generate a backup by accessing the PHP file directly via browser, which is usuallyhttp://www.yourwebsite.com/cpanel-backup.php .
In order to automate cPanel backup creation, we need to setup a weekly cron job into cPanel and use following command:
  1. php -q /home/username/public_html/cpanel-backup.php  
Here is a sample:
Login into Backup Box. On the left panel, login into the FTP account (use the backup box FTP account) and in the right panel, login into your Dropbox account:
Since we store backup files into a dedicated folder, we can only transfer the contents of it. SelectTransfer only the contents of / in the Transfer Options as the transfer method.
You can now start the immediate transfer by clicking Review. This will transfer the public_html folder to Dropbox. Once done, you can create Monthly schedule to automate this backup task monthly. Just click Monthly > select Date and Time > Finalize and Run.
Note: If you want to use weekly or daily backup, you need to upgrade your subscription as stated in the website. If you do, do not forget to change the cron job setting according to your backup schedule. Another thing, the PHP script will delete all previous cPanel backup before it generate new backups. This to make sure your backup will not eat up much disk space.
For more backup solutions check out these following:

How to backup Blogger Blog – Make complete backup of your Blogger blog

Backup Blogger blog - Complete backup of posts and imagesBackup, you all know the importance of Backup and there is not much to say. Blogger, since it is a product from Google you will never find any security issues like hacking. But, there are chances and all than depends on you and the way you are securing your Blogger account details. So having a backup of your Blogger blog is essential as well as you should have the habit of backing up your blog atleast once in a week. Here we will see how to backup Blogger blog that is making a complete backup which includes all your blog posts, images, templates as well as comments.
Google has full control and it has all the rights to delete your blog at any time and that is why you need to switch to self-hosted blogs like wordpress. Usually to prevent web spam as well as blogs that violate to Blogger TOS will be deleted by Google. So before it gets too late you have to backup your Blogger blog and by doing so you can have the copy of your hard work in your local machine which you can publish elsewhere.

Backup Blogger blog

Before we tell about making a complete backup of your Blogger blog we will see how to backup Blogger posts, images in your blog and template separately.

Blogger template Backup

At any time you might wish to make changes or edits to your Blogger template files in order to modify your blogs appearance. It is highly recommended that you backup Blogger template first, before making any changes to codes. Check out how to backup your Blogger template and restore it back.

How to backup Blogger blog images

All the images that you are using in your blog are not hosted in Blogger. You can find and access all the images that you are using in Google products such as Blogger, Google plus etc. To access it go to Google plus images and you can find all the images associated with your Blogger blog. To backup all the images go to Google Takeout and select Google plus photos, now create an archive and then download it. Here you can learn more about downloading all your data from Google.

How to Backup Blogger blog – Complete backup

On a daily basis or as a weekly routine you can make a complete backup of your blog depending upon the updates you make in your blog. From your Blogger dashboard you have the option to make complete backup that includes your blog posts, templates and images. To backup your Blogger blog login to your Blog dashboard go to settings >> other and at the top you can see blog tools click export blog and then download blog. Now you made complete backup of your Blogger blog.
Backup Blogger blog
How to Backup Blogger blog

How to download all data from Google using Google Takeout

How to download all data from Google using Google TakeoutWe all know that other than search engine; Google has wide range of products such as Gmail, YouTube, Google Plus, Google Drive, Blogger, Picasa, Orkut and more. We all might be using all these services for more than Years and you might be storing all the important information like photos, contacts, documents etc. Having a backup of all that information in your PC would be essential. So here in this post we will see how to download all data from Google using simple service.
Manual download will take time and it is hard; especially think of your photos and YouTube videos. So instead of surfing all the pages and downloading it manually one by one from all Google products there is an easy way to download using Google Takeout. Whatever it may be like Google + hangouts, Google + circles, Google + streams, Blogger blogs, your Picasa photo albums and YouTube videos. In Google Takeout with just one click you can download all the information from Google to your PC.

Google Takeout – Download all your Google data

How to download all data from Google using Google takeoutGoogle Takeout is a free service offered by Google in which you can access and download all your data that you are using in Google. To access this service head to Google takeout and enter your Google username and password. For security reasons you will be asked to login again if you are already logged in using any other Google products.

How to download all data from Google using Google Takeout

After the login process you will be redirected to Google Takeout where you can see the list of Google products that is supported by Google Takeout.
How to download all data from Google using Google Takeout
Now to download a copy of your data click on create an archive and at the next screen you can see all Google products will be selected and ready for archive. You can select any one from the three archive file formats that is .zip, .tgz and .tbz after selecting click create archive and Google starts preparing your files and your compression will begin. Depending on the size of your data compression process may take time and when done Google will notify you through email. So that you don’t have to keep the page open till the process ends.
How to download all data from Google using Google Takeout
Your files and data’s are now ready for download. Click download and you will be asked to login again and when done all your Google data will be transferred to your PC in selected file format.
How to export all data from Google using Google Takeout
Note: All your information is more private and so do not export your Google data in public computers.

Downloading data from specific Google products

If the file size is large or if you wish only to download data from specific Google products, then you can select the products you want. Create archive for specific Google products and download it to your PC.
All the data will be downloaded in zip format and to open and see your data just unzip the file. You can see all the Google products in separate folder and all the data’s are exported as it is you uploaded for respective Google products. For example your YouTube videos and image files will be exported in a format that you originally uploaded. Your Google Drive data’s will be downloaded as PDF, XLSX and ODS format. Check out all other file types for each Google service here.
After using Google products for years you will have tons of personal data’s stored in Google web server. To check all the data or to download all those data’s Google Takeout has made the process simpler which is something appreciable.

How to backup Blogger template and how to restore blogger template

How to backup Blogger template and how to restore Blogger templateAre you planning to make changes to your Blogger template? Good you should, because sites layout and its appearance are more important to catch your reader’s eyes. But before making changes to your Blogger template you must first backup your Blogger templates. In this post let’s see how to backup Blogger template and if anything goes wrong then how to restore Blogger template.
Backup is really essential for Bloggers. When editing there are chances for your template to crash and it will affect the complete site layout. At that instance you can revert it to your previous template by restoring it from backup. Backing up Blogger template is really simple as you can see below.

How to backup Blogger template

  1. Login to your Blogger blog and select the blog to backup
  2. In your blogs dashboard open templates
  3. Now in the top right corner you can see Backup/Restore button
  4. Open it and select download full template.
  5. Name the template and choose location to save in your PC.
How to backup Blogger template
Now you have a backup of your Blogger template. Now you can make changes to your template and if anything goes wrong you can simply restore the template.

How to restore Blogger template

It same and simple what you did for backup
  1. Go to your Blogger dashboard and open templates
  2. Select Backup/Restore button from top right corner
  3. Choose a template file from your computer and click upload. You have restored your template!
How to restore Blogger template
Note: The template file should be in XML file when you upload.
You can use this simple technique to use templates from other blogs. So if you have a list of blogs and you have a good looking template for one blog. Then you can simply restore that template to your other blogs.
Hope this helped you on how to backup Blogger template and how to restore Blogger template. Please share and leave your comments below.

Thursday, April 24, 2014

How to add Blogger Share Buttons to Custom Blogger Templates



Recently, Blogger released their new Share Buttons feature which makes it easier for your Blog visitors to bookmark, tweet, fshare, email ,etc your post.

But, if you're using any custom blogger template.. you may not see the widget appearing in blog..even though you activate it.

So, if you have that problem. here is how to fix it.
(before making any changes..first backup your template)

1. Sign into Blogger > Design > Edit html
(tick the expand widget templates)

2. Add this line anywhere you want the widget to appear

<b:include data='post' name='shareButtons'/>


Normally, in most templates, you can add it after this line..

<p class='post-footer-line post-footer-line-1'>


If you don't find that above line in your template....
Find this one.

<p><data:post.body/></p>


and add this code after that line..


<p><data:post.body/></p>
<div style='clear:both; padding: 10px 10px 10px 10px;'> <b:include data='post' name='shareButtons'/> </div>



Note: If you're using Magazine style blogger template, You can find the data:post.body line TWO TIMES.. So, try in both ways and find out which one is working..and remove the other one.

Finally..Save the template!

If you still don't see it in your Blog, Make sure..you activated it by going to
Blogger dashboard > Design > Click the 'edit' button of the Blog post section.


Wednesday, April 23, 2014

How To Install Blogger Template-Basic Steps

Just follow the below steps to install blogger template to your blogger blogs.If you have downloaded the theme in .zip or .rar format first extract the .xml file in that downloaded template to some specified folder.You can change the look of your blog in just three steps.
basic blogger installing steps
Step 1 : Login to your blogger dashboard and goto Template option as shown in below image.
Three easy steps to u[pload new theme
Step 2 : Now in the templates page just click Backup/Restore option which is at the top right corner.
steps involved in editing blogger template
Step 3 : A new window will popup and click browse option and select the xml blogger template that you have extracted and after the proper selection click Upload.Note:Before uploading your new theme always download the full template so that if you do not like the new look of the blog you can revert back to the old look by uploading the previously downloaded theme.
installing blogger template
And finally check your blog for the new look.
If you have any problem in uploading the template or editing the template just contact me.