Showing posts with label Backup. Show all posts
Showing posts with label Backup. Show all posts

Automated file backup, renaming with current date & compress using batch file


Sometimes we need to take back up of some particular folder that regularly get updated and very crucial folder too. So what we need to do either use a third party tool or windows backup utility but I do not like both of them because of different reason.


For most of backup thing I love scripts and scheduling to do backup because you plant the tree once and get mangos always.


This time someone asked me to take a vss backup on daily basis but I can’t do this manually daily so I wrote a script and scheduled it to take the backup and rename it with current date. After that I thought if I can compress the folder it will save lot of disk space so I added one more line and it was all done.


For this compression thing you need to download an additional tool called 7zip command line version. That you can download from 7Zip download page here. After downloading it extract the zip file and copy the 7za.exe file in c:\WINDOWS\system32 folder. It’s very important to copy it in this system32 folder else you will need to give the full path of this 7za.exe file.


After this copy the bellow code and paste it in notepad.


xcopy D:\Data\*.* e:\backup\*.* /e /h /r /y

7za a -tzip e:backup.zip "e:\Backup"

rename "E:\backup.zip" %Date:~-10,2%_%Date:~-7,2%_%Date:~-4,4%.zip


Save the above file as backup.bat.


If you will run it by double click it will open a command prompt window immediately and will start processing after execution of all task it will get close and you can see the backup files at backup location.


In the above script fist line will copy the data second line will compress the folder and third line will rename the zip file to current date name.


Now here is next task, scheduling the backup.

For scheduling thing we will use windows scheduler. For this go to Control Panel->Scheduled Tasks and then double click on Add scheduled task. It will open a wizard just follow the wizard and it’s all done when you are at end of wizard.


Things do remember

1) Make sure to change the folder path.

2) Do not do any change other than the folder path

3) make sure to test it on a test environment before putting it live.


I hope it was useful for you please comment if you face any problem or have any suggestion for this.


Thanks for visiting my blog.

Read More......

Take full backup of Firefox

Take full backup of Firefox


Day Before yesterday I got a mail from one of my blog visitor that he had to take a complete backup of his machine before formatting it including all the setting of Firefox. He said he do not want to give a complete day to restore his Firefox setting after formatting the machine so if I can do any help for him that would solve his purpose. I understand this because I felt the same pain in my eyes when I reformatted my machine long back and lost with Firefox. Lot of extension saved forms, saved password and many more things. That time it took me 2 days to restore my Firefox to its original state so I decided to goggle once before formatting my computer again.

After goggling I found I did not tried earlier so I had no answer but this time I searched for this and I got lot of answers for my this question but I like MozBackup. At present many different tool are there but I recommend only 2 ways.

1. Manual Backup (best method)

2) MozBackup


Manual Backup is as simple as you take other backup and copy paste the profile

MozBackup is a wizard tool so, very simple in its own way.


Ok Let’s talk about manual Backup First

Its backup and restoration is simple copy and paste major problem is to get the actual folder.

In windows XP and 2003 machine path is


C:\Documents and Settings\\Application Data\Mozilla\Firefox\Profiles


For windows Vista path is

C:\users\\AppData\Local\Mozilla\Firefox\profiles


Now what you need to do is just copy this profile folder as backup.


For restoring Firefox copy all the files and folder of this backed up profile folder in your new installed Firefox profile at same place.


About MozBackup

It’s simple you download it and use it. You can download it from here I would recommend you to download zip file. After downloading unzip it and run the MozBackup.exe from extracted folder. It will open a wizard click on next and you will get bellow screen

Select the Mozilla Firefox and click on next if you are running

Firefox it will ask you to close the Firefox so close the Firefox and click on next. On next screen it will show you all the available profiles of Firefox select desired profile (if you do not have more than one profile it will just show the default profile) and click on next. By default it will save the backup file in my document folder you can change the location with your wish.


For restoration simply run the same wizard again and this time

choose restore option instead of backup.

Things to remember

1. Its ok you took backup of these files but its always a good idea to take backup of bookmark separately.

2. If you are not able to view the application data folder than please select the show hidden folder option from your windows explorer ->tools->folder option->view->hidden files and folders.


I hope its useful for you.


Do comment if you liked it it encourage me to give more content

Read More......

Bookmarks/favorite backup and restoration

Bookmarks/favorite backup and restoration


Day before yesterday one of my office mate asked me how he could take backup of his Firefox and Internet Explorer bookmarks, After that I realised its not a very well known way to take backup even its very simple so I decide to make this post for Firefox and I explorer bookmark Backup.


For bookmark backup we have two way to take backup

1) Offline Backup (take all backup in your backup as you do other backup)

2) Online Backup (upload bookmarks on some bookmark site)


I personally recommend both the method because one is simple and easy and other one is simple easy plus accessible from any part of the world. Very useful when you do not have access of your computer, and you need your bookmarks to do some task urgently.


Offline Backup :->


Internet Explorer:->

Backup

* From the File menu, select Import and Export.

* Click next and select Export Favourites.

* Save this file to your computer as bookmarkbackup.html.

This will be an HTML File now if you have to take restore your bookmark in some other computer just import this file in Internet explorer instead of export.

Restore

* From the File menu, select Import and Export.

* Click next and select Import Favourites.

* Browse to your bookmarkbackup.html file and next. Its done.


For Firefox

Backup

* From the bookmark menu, select organize bookmark or press ctrl+shift+B.

* you will get Library window here click on import and backup and select exporthtml.

* Save this html file and it’s done.

Restore bookmark in Firefox.

* From the bookmark menu, select organize bookmark or press ctrl+shift+B.

* You will get Library window here click on import and backup and select Import html.

* It’s done.


Online backup :->

For online backup you need to decide an online bookmark provider I recommend yahoo bookmarks.

1) Go to http://bookmarks.yahoo.com/ login here with your account.

2) Click on tools (top corner).

3) Click in Import bookmark

4) Select bookmark file click on browse and give the html file path that you backed up.

5) Click on import button.

Once this import is done you are done with your backup. You can see these bookmarks anywhere in the world.

For restore this bookmark

Yahoo bookmark ->tools->export bookmarks->bookmark type and click on export.

For restoring in browser choose restore bookmark


Read More......
Clicky Web Analytics