Home
Contents

One-click BackUp for WinRAR manual

Prev Page Next Page
 


OCB help index
Software License Agreement
Buy OCB or WinRAR license
What is One-click BackUp (OCB) for WinRAR and what is its purpose?
Freeware vs. Shareware versions. Registration.
How do I make first-time installation?
How do I get language files or translate OCB into my native language?
What files do I need to back up and how often?
What is a preset? Creating a new preset.
How do I set up a simple preset to test OCB?
General conceptions for everyday use
Using OCB main window
Settings - General tab
Settings - Interface tab
Settings - OCB-BIN tab
Settings - Remote Access tab
Settings - Dialup tab
Settings - Error management tab
Settings - Security tab
Settings - Appearance tab
Preset configuration - saving and loading default settings
Preset configuration - selecting an image for the preset
Preset configuration - General tab
Preset configuration - Actions tab
Preset configuration - File lists tab
Preset configuration - Notes / Comments tab
Duplicating a preset
Renaming a preset
Deleting a preset
Making a Windows shortcut to run a preset
Scheduling a preset
Creating a special preset (Windows Registry backup demo)
Configuring the scheduler
Using Shell Notifier
Advanced commands
Restoring backup files
Using command line parameters to control OCB
Using remote access via Internet or LAN to control OCB

Environment variables

Environment variables contain some system information that can be used in our work. For instance, you can create just one preset that will backup different files to different folders depending on which user is currently logged in to Windows. You can see the whole set of environment variables available for you by typing "set" in the command prompt. Generic useful variables for Windows 98/ME are as follows (the names are standard but the values are different in most computers):

TEMP=C:\WINDOWS\TEMP
TMP=C:\WINDOWS\TEMP
winbootdir=C:\WINDOWS
windir=C:\WINDOWS

And here is the list for Windows 2003 Server:

ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\YOU\Application Data
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=YOURCOMPUTER
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\YOU
LOGONSERVER=\\YOURCOMPUTER
ProgramFiles=C:\Program Files
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\YOU\LOCALS~1\Temp
TMP=C:\DOCUME~1\YOU\LOCALS~1\Temp
USERDOMAIN=YOURCOMPUTER
USERNAME=YOU
USERPROFILE=C:\Documents and Settings\YOU
winbootdir=C:\WINDOWS
windir=C:\WINDOWS

In the given list "YOU" will be automatically replaced with the current user name and "YOURCOMPUTER" with the computer name. You can also specify your own variables by typing "set varname=varvalue", for instance "set mybackuppath=c:\backups". How can we use these variables? Example:

We create a single preset for all users in the network. To use a variable, we wrap it to "%"s:

Copy to folder path (actions tab): "\\MyServer\Backups\%COMPUTERNAME%"
Archive name (general tab): "Docs_%USERNAME%"

Variations of use:
1) User "Joe" logged in to computer "Hudson", OCB stores the backup file to \\MyServer\Backups\Hudson\Docs_Joe.rar.
2) User "Mike" logged in to computer "Hudson", OCB stores the backup file to \\MyServer\Backups\Hudson\Docs_Mike.rar.
3) User "Bill" logged in to computer "Smith", OCB stores the backup file to \\MyServer\Backups\Smith\Docs_Bill.rar.
4) ...

So just one preset can be used to create a universal backup store for multiple users on multiple computers. Very soon OCB will be able to understand variables in file lists.

 

SEE ALSO:

Preset configuration - General tab.
Preset configuration - Actions tab.
Preset configuration - File lists tab.
Preset configuration - Notes.

 


Index.