Skip navigation.

Opera FAQs, Tips, Tricks & Tweaks

Cool tips for Opera browser

Posts tagged with "WinRAR"

Opera backup list and WinRAR command line shortcut creator

, , , ...

Info
Download
Files created/modified
Full/Incremental backup
Note
Backup button
Backup additional folders/files
Changelog

I have already posted how to Encrypt and backup your Opera files using WinRAR. Some found it difficult. So, I created OBLWCLSC using AutoHotkey.

OBLWCLSC size is less than 210 KB and installation is not required. Configure it once, press shortcut key, Ctrl+Alt+O or click backup button to create backup.

You can password protect your backup files. WinRAR uses AES with 128-bit key.

Opera Backup List and WinRAR Command Line Shortcut Creator (OBLWCLSC)
Opera Backup List and WinRAR Command Line Shortcut Creator (OBLWCLSC)

Download

Download OBLWCLSC.zip, unzip & run OBLWCLSC.exe

Files created/modified

OBLWCLSC.exe will create/modify 4 files and one registry value.

  • Settings file OBLWCLSC.ini
  • List of files and directories to backup Opera Backup.lst
  • WinRAR command line shortcut Opera Backup.lnk
    Opera backup shortcut in Desktop
    Opera backup shortcut in Desktop
  • Read me file OBLWCLSC Read Me.txt
  • Registry value HKEY_CURRENT_USER\Software\WinRAR\Profiles\0\Background will be modified to enable/disable background archiving in WinRAR.

Full/Incremental backup

You can either do full or incremental backup. In full backup, backup file name can be appended with date, time, date & time or number.

Full backup with date
Full backup with date

In incremental backup, predefined number of previous versions of a file will be kept.
Incremental backup with 10 previous versions of a file
Incremental backup with 10 previous versions of a file

Note


#1 Opera must be closed to backup feeds/mail otherwise WinRAR will show diagnostic messages.
#2 To backup User JavaScript files, your files must be in userjs directory in your profile.
#3 Check all with #3 to backup wand data.
#4 Password should not contain SPACE and DOUBLE QUOTE (").
#5 For shortcut key to work, shortcut directory must be your desktop and enter only one alphanumeric character.
#6 Opera must be closed to create backup button next to trash can in tab bar.
Opera backup button next to Trash can
Opera backup button next to Trash can

Backup Button

Drag & drop Backup Opera Files button to any toolbar, note the path to Toolbar Configuration file, close Opera, open toolbar configuration file, search for E:\Opera Backup.lnk and replace it with correct path.

Backup additional folders/files

You can add additional Opera folders/files to backup in menu. The format is

file name with extension or folder name with trailing \, name to show in OBLWCLSC menu,directory the file/folder is in (1=Opera.exe directory, 2=profile directory, 3=mail directory and 4=local directory ,whether checked or not (1=backup and 0=no backup)
The entries are separated by |

If you want to backup opcache directory, you have to add the following in OBLWCLSC.ini at the end of Backup Items key.

|opcache\,Opera help files,2,1
You can add other folders/files to backup to Custom Files key in OBLWCLSC.ini after closing OBLWCLSC.exe. The entries are separated by |

Suppose, if you want to backup Desktop & My Documents directories, you have to add the following to Custom Files key in OBLWCLSC.ini.

C:\Documents and Settings\User Name\Desktop\ | C:\Documents and Settings\User Name\My Documents\

Changelog
Sep 28, 2008
Minor improvements.
Option to add custom files manually in OBLWCLSC.ini.
Updated for 9.60.

Jul 11, 2008
Minor bug fixes and improvements.
Updated for 9.50. Thanks to skywarrior74.

Jun 14, 2007
Added option to backup speed dials.

Sep 3, 2006
Added option to backup widgets.adr file.
Changed backup button icon. Thanks to ivan56.

Mar 12, 2006
Added option to backup contacts, typed-in addresses & language files. Thanks to GonsioR.

Mar 3, 2006
Removed option to backup ua.ini, browser.js & registration information.
Added option to backup voice configuration, widgets, blocked content & site preferences.
Added option to background archiving.
Added option to add backup button next to trash can in tab bar.

Aug 12, 2005
Initial release.

If you have any questions, suggestions or bugs post it here or in forum.

Encrypt & backup Opera files using WinRAR

, , , ...

Linux
Windows

Linux
Opera backup using RAR for 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 below.

Create a file opera-backup.lst in your home, 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 backup
.opera/dictionaries/ // Dictionaries
.opera/icons/ // Favicons
.opera/keyboard/ // Keyboard configuration
.opera/mail/ // Mail
.opera/menu/ // Menu configuration
.opera/mouse/ // Mouse configuration
.opera/plugins/ // Plug-ins
.opera/sessions/ // Sessions
.opera/styles/ // Styles
//.opera/thumbnails/ // Speed Dial thumbnails
.opera/toolbar/ // Toolbar configuration
//.opera/skin/ // Skin
.opera/toolbar/ // Toolbar configuration
//.opera/userjs/ // UserJS files
.opera/widgets/ // Widgets
// Files to backup
.opera/bookmarks.adr // Bookmarks
.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/operaprefs.ini // Opera settings
.opera/opssl6.dat // SSL preferences
.opera/override.ini // Site preferences
.opera/search.ini // Search engines
.opera/speeddial.ini // Speed Dials
.opera/typed_history.xml // Typed-in addresses
.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 WinRAR will create a backup file (example: opera-backup-061010-144215.rar) in your home.

If you want launcher, add /home/username/opera-backup.sh in command and enable Run in terminal



Windows



Use Opera backup list and WinRAR command line shortcut creator.




Create a backup shortcut in desktop with following parameters.
"C:\Program Files\WinRAR\WinRAR.exe" a -hppassword -m5 -r -agYYMMDD-HHMMSS D:\Backup\Opera- @Opera-Backup.lst
Right click on backup shortcut → Properties → Start in (delete the content usually it will have "C:\Program Files\WinRAR" → Shortcut key (press Ctrl+Alt+O).

C:\Program Files\WinRAR\ - Change this if path to your WinRAR directory is different.

a - Add files to archive.

-hppassword - If you want to password protect your backup keep it and replace password with your password else remove -hppassword. If you remove password, WinRAR will ask password during backup process. Without 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 is 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 path to 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 created backup shortcut (in our case desktop).

// Opera backup using WinRAR command line
// Remove '//' before file path to archive that directory or file
//
// Directories to backup
C:\Program Files\Opera\program\plug-ins\ // Plug-ins
C:\Program Files\Opera\profile\dictionaries\ // Dictionaries
C:\Program Files\Opera\profile\icons\ // Favicons
C:\Program Files\Opera\profile\keyboard\ // Keyboard configuration
C:\Program Files\Opera\profile\mail\ // Mail
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\thumbnails\ // Speed Dial thumbnails
C:\Program Files\Opera\profile\toolbar\ // Toolbar configuration
// C:\Program Files\Opera\profile\userjs\ // User JavaScript files
C:\Program Files\Opera\profile\widgets\ // Widgets
// Files to backup
C:\Program Files\Opera\profile\bookmarks.adr // Bookmarks
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\operaprefs.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 Dials
C:\Program Files\Opera\profile\typed_history.xml // Typed-in addresses
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
C:\Program Files\Opera\profile\wand.dat // Wand data

Whenever you want to backup, press shortcut key, Ctrl+Alt+O and WinRAR will create a backup file (example: Opera-050319-153045.rar) in D:\Backup\ directory.

See user's manual, Rar.txt in WinRAR directory to learn more about console RAR.

Update
Oct 17, 2006: Linux version
Nov 12, 2009
Download Opera, the fastest and most secure browser