Encrypt & backup Opera files using WinRAR
Thursday, 6. October 2005, 11:01:56
Windows
Linux

Create a file (opera-backup.sh) in your home, add the following and set Execute permission.
#!/bin/bash -
# Opera backup using WinRAR command line
#
# To restore files from backup use the following commands
# cd ~
# unrar x <path-to-archive>
# Example : unrar x /backup/opera-backup-061010-144215.rar
#
echo -e "\nOpera backup using WinRAR command line\n"
cd ~
rar a -hppassword -m5 -r -agYYMMDD-HHMMSS opera-backup- @opera-backup.lst
sleep 5
exit 0
See WinRAR command line switches explanation in Windows section.
Create a file (opera-backup.lst) in your home and add the following and make sure the paths are correct. If you don't want to backup a particular directory or file, add // before that line. Directories (skin, userjs) and files (download.dat, global.dat, vlink4.dat) are disabled by default.
// Opera backup using WinRAR command line
// Remove '//' before file path to archive that directory or file
//
// Directories to back up
.opera/images/ // Favicons
.opera/keyboard/ // Keyboard configuration
.opera/mail/ // Mail
.opera/menu/ // Menu configuration
.opera/mouse/ // Mouse configuration
.opera/plugins/ // Plug-ins
.opera/sessions/ // Sessions
.opera/toolbar/ // Toolbar configuration
//.opera/skin/ // Skin
.opera/styles/ // Styles
.opera/toolbar/ // Toolbar configuration
//.opera/userjs/ // UserJS files
.opera/widgets/ // Widgets
// Files to back up
.opera/cookies4.dat // Cookies
.opera/contacts.adr // Contacts for e-mail & instant messaging
//.opera/download.dat // Download history
//.opera/global.dat // Global history
.opera/notes.adr // Notes
.opera/opcacrt6.dat // Certificate authorities
.opera/opcert6.dat // Personal certificates
.opera/opera6.adr // Bookmarks
.opera/opera6.ini // Opera settings
.opera/opssl6.dat // SSL preferences
.opera/override.ini // Site preferences
.opera/search.ini // Search engines
.opera/speeddial.ini // Speed dial configuration
.opera/urlfilter.ini // Blocked content
//.opera/vlink4.dat // Visited links
.opera/wand.dat // Wand data
.opera/widgets.adr // Widgets configuration
Whenever you want to backup type ./opera-backup.sh in terminal and it will create a file (example opera-backup-061010-144215.rar) in your home.
If you want launcher add /home/<username>/opera-backup.sh in command and check Run in terminal
Windows
First create a shortcut in desktop with following parameters and name it.
"C:\Program Files\WinRAR\WinRAR.exe" a -hppassword -m5 -r -agYYMMDD-HHMMSS D:\BackUp\Opera- @Opera-BackUp.lstNow right click and choose properties, delete the content (usually "C:\Program Files\WinRAR") in Start in box and create Shortcut key (say CTRL+ALT+O).
C:\Program Files\WinRAR\ - Change this path if your WinRAR directory is different.
a - Add files to archive.
-hppassword - If you want to password protect your backup keep it and change password to your password else remove -hppassword. If you remove password only WinRAR will ask password during backup. Without a password it is impossible to view even the list of files in archive encrypted with -hp switch.
-m5 - Compression method.
-m0 do not compress file when adding to archive
-m1 use fastest method (less compressive)
-m2 use fast compression method
-m3 use normal (default) compression method
-m4 use good compression method (more compressive, but slower)
-m5 use best compression method (slightly more compressive, but slowest)
-r - Recurse subdirectories.
-agYYMMDD-HHMMSS - Generates archive name using the current date and time.
Y - year
M - month
MMM - month name as text string (Jan, Feb, etc.)
W - a week number (a week starts with Monday)
A - day of week number (Monday is 1, Sunday - 7)
D - day of month
E - day of year
H - hours
M - minutes (treated as minutes if encountered after hours)
S - seconds
N - archive number. RAR searches for already existing archive with generated name and if found, increments the archive number until generating a unique name.
D:\Backup\ - Change this to path of your backup directory. This directory must exist.
Opera-BackUp.lst - Create a file with this name and add the following lines and make sure the paths are correct. If you don't want to backup a particular directory or file, add // before that line. Directories (Skin, userjs) and files (global.dat, vlink4.dat and download.dat) are disabled by default. This file should be in same place where you placed shortcut (in our case desktop).
// Opera backup using WinRAR command line
// Remove '//' before file path to archive that directory or file
//
// Directories to back up
C:\Program Files\Opera\Mail\ // Mail
C:\Program Files\Opera\program\plug-ins\ // Plug-ins
C:\Program Files\Opera\profile\images\ // Favicons
C:\Program Files\Opera\profile\keyboard\ // Keyboard configuration
C:\Program Files\Opera\profile\menu\ // Menu configuration
C:\Program Files\Opera\profile\mouse\ // Mouse configuration
C:\Program Files\Opera\profile\sessions\ // Sessions
// C:\Program Files\Opera\profile\Skin\// Skin
C:\Program Files\Opera\profile\styles\ // Styles
C:\Program Files\Opera\profile\toolbar\ // Toolbar configuration
// C:\Program Files\Opera\profile\userjs\ // UserJS files
C:\Program Files\Opera\profile\widgets\ // Widgets
// Files to back up
C:\Program Files\Opera\profile\cookies4.dat // Cookies
C:\Program Files\Opera\profile\Contacts.adr // Contacts for e-mail & instant messaging
//C:\Program Files\Opera\profile\download.dat // Download history
//C:\Program Files\Opera\profile\global.dat // Global history
C:\Program Files\Opera\profile\notes.adr // Notes
C:\Program Files\Opera\profile\opcacrt6.dat // Certificate authorities
C:\Program Files\Opera\profile\opcert6.dat // Personal certificates
C:\Program Files\Opera\profile\opera6.adr // Bookmarks
C:\Program Files\Opera\profile\opera6.ini // Opera settings
C:\Program Files\Opera\profile\opssl6.dat // SSL preferences
C:\Program Files\Opera\profile\override.ini // Site preferences
C:\Program Files\Opera\profile\search.ini // Search engines
C:\Program Files\Opera\profile\speeddial.ini // Speed dial configuration
C:\Program Files\Opera\profile\wand.dat // Wand data
C:\Program Files\Opera\profile\urlfilter.ini // Blocked content
//C:\Program Files\Opera\profile\vlink4.dat // Visited links
C:\Program Files\Opera\profile\widgets.dat // Widgets configuration
Whenever you want to backup hit shortcut key CTRL+ALT+O and it will create a file (example Opera-050319-153045.rar) in D:\BackUp\ directory.
Please see User's Manual - Rar.txt in WinRAR directory to learn more about Console RAR.
Update
Oct 17, 2006 : Linux version
Opera profile directory menu : can't find folder "application data" in my Documents and Settings folder... so Can't access my opera profile...
Regards,
By anonymous user, # 4. March 2006, 12:09:31
By Tamil, # 5. March 2006, 03:09:53
Dear Tamil! The request to update program OBLWCLSC for the version (Opera 9.02) it is necessary to keep a file (widgets.ard). Or prompt as it to make.
Thanks.
By anatolich, # 13. September 2006, 18:38:17
Originally posted by anatolich:
http://my.opera.com/community/forums/findpost.pl?id=1722859By Tamil, # 13. September 2006, 23:15:58
Hi Tamil,
Is there anything else one needs to do after overwriting the backed up files into the Opera directory? My search.ini (in Opera installation directory) has the list of my old search engines, but they are not being displayed in the search tab of Opera preferences. Can you help me on this?
Thanks,
RaviChandra.
By anonymous user, # 27. May 2007, 12:10:13
By Tamil, # 27. May 2007, 12:20:59
Hi Tamil,
Yes. In fact, I upgraded it to version 9.21 and the search engine list still isn't being displayed.
RaviChandra.
By anonymous user, # 27. May 2007, 13:03:30
By Tamil, # 27. May 2007, 13:16:00
Hi Tamil,
Sorry for all this trouble. I have been working on this for more than 3 days. It is not just the search.ini, even the settings for toolbars and panels are not restored. I am pasting the first few lines of my search.ini file:
[Search Engine 1]
Name=Google
URL=http://www.google.co.in/search?hl=en&q=%s&btnG=Google+Search&meta=
Query=
Key=g
Encoding=utf-8
Is post=0
Has endseparator=0
Search Type=0
NameId=17171
By anonymous user, # 27. May 2007, 13:36:36
By Tamil, # 27. May 2007, 13:42:28
Hi Tamil,
As you can see in the picture, the list of search engines in the search.ini and in the Opera preferences are different.
http://new.photos.yahoo.com/wing70prayer/photo/294928804400018923/0
Thanks,
RaviChandra.
By anonymous user, # 27. May 2007, 14:01:31
What is the value of File Version in search.ini in your profile folder?
By Tamil, # 27. May 2007, 14:12:09
Thanks, it is working great. You are a genius.
The file version is 8
Thanks a lot,
RaviChandra.
By anonymous user, # 27. May 2007, 15:12:19
Please develop a utility in the same program to restore backup file when needed or at the time of new installation of pc or opera. Then it will become more useful.
"Create back button in opera" function of this program does not work even after editing toolbar.ini.
इस प्रोग्राम मे बैकअप फाईल को वापस रिस्टोर करने का सुविधा जोड दें। ज्यादा युजफुल हो जायेगा।
By anonymous user, # 11. August 2007, 02:28:24
hello,Iam a die hard fan of opera..using opera more than 6 years...in every version they improve alot bringing new features...
Ur tips are great..thanx wish u all the best
sayedp_AT_aol_DOT_in
By anonymous user, # 17. June 2008, 03:14:50