Preset configuration - Actions tab

Top  Previous  Next

ocblogo

Preset configuration - Actions tab

Actions specify what to do with archives. The sequence of executions is as follows: CD, SMTP, FTP, COPY.

Go to COPY section.

Go to CD section.

Go to FTP section.

Go to SMTP section.

Go to CLEANER section.

Write archives to the local folder (COPY).

Use this action to copy archives to a certain folder. OCB supports network folders, for example "\\computer_name\backups" or

"\\ip_address\backups". This folder line can contain Environment Variables to create more efficient presets.

Empty this folder (mask match) is used to delete matching files from the destination folder. This feature can be used to delete old versions of the same archive or to erase the contents of floppy disks before writing. Masks are standard - "*.*" means all files, etc.

Overwrite old versions. Use this option to overwrite all files in the destination folder which have the same name as the archive. OCB works in automatic mode and it cannot show dialogs, so you should decide beforehand whether you want to overwrite archives or skip them if a file with the same name already exists in the destination folder.

Direct raring. This feature was implemented mainly for those who don't leave the working place when OCB is used. When this feature is on, OCB just runs WinRAR with the desired parameters and stops watching what will happen next. If any error should occur, you will know about if from WinRAR's error log and not from OCB.

Direct raring advantages:

It's a more convenient way of working with floppy disks (copy directly to "a:\").
After OCB runs such a preset, it is ready to execute other tasks at once.
Update feature is only available in direct raring mode. It takes considerably less time to update an archive than to create a new one.

Direct raring disadvantages:

OCB cannot control what happens, one cannot be sure that the work will be done properly.
Advanced features, such as CD, FTP and SMTP are unavailable in this mode.
Error messages are not shown during the process. They are only written to "winrar.log", which is situated in the OCB folder. Important note: winrar.log will be only created by legally registered WinRAR. If you use a crack or an illegal keygen, log file will not be created!

Well, now you have a question "Why should I ever use this direct raring?". I think it's a good thing for those who backup files to floppy disks, because they should be near the computer anyway and so it's no problem to respond to WinRAR's messages such as "insert new diskette". Another reason why you should consider using direct raring is when you don't want remote control commands to be delayed because of large backuping jobs. When OCB starts a direct raring preset, it is ready to accept other commands at once, while in the standard mode OCB always waits for WinRAR and all actions to finish the job. If you backup large amounts of data you probably want to freshen changed files instead of creating a new archive - this can be done only in direct raring mode.

Direct raring mode.

Here you should select how WinRAR will work with an existing archive in case you want to update it. All modes except the first one presuppose that if an archive contains an older version of a certain file, this file will be updated, but if the file in the archive is the same as the file in the hard drive, it will be skipped. This fact explains why updating an archive works significantly faster than creating a new one.

Always create a new archive: update feature is off, the old archive will be overwritten with a new one. Uses switch: "a".
Update: +new +deleted: all files that don't exist in the archive but exist on the hard drive will be added; the files that were deleted form the hard drive, but still exist in the archive will be left untouched. The most universal option - updates initial files, adds new files and does not delete the files that you deleted form the hard drive. Uses switch: "a -u".
Update: -new -deleted: all files that don't exist in the archive but exist on the hard drive will NOT be added; the files that were deleted form the hard drive, but still exist in the archive will be DELETED. This option updates only initial files and deletes from the archive the files that you deleted from the hard drive. Uses switch: "a -f -as".
Update: +new -deleted: all files that don't exist in the archive but exist on the hard drive will be added; the files that were deleted form the hard drive, but still exist in the archive will be DELETED. This option makes WinRAR reflect in the archive the actual structure of your folders. Uses switch: "a -u -as".
Update: -new +deleted: all files that don't exist in the archive but exist on the hard drive will NOT be added; the files that were deleted form the hard drive, but still exist in the archive will be left untouched. This option only updates the initial set of files, keeping the old files that you deleted form the hard drive. Uses switch "a -f".

The "update" feature does not work with ZIP files and with RAR volumes. If you want to update an archive, don't forget to create it first (use "Always create a new archive") and be sure that you don't use "add date/time to name" feature, otherwise OCB will create new archives each time you call the preset.

 

Write to a CD-R/RW.

This feature works in Windows XP/2003 only, the IMAPI service should be enabled. You can write archives to CDs and you don't need to buy additional software to do it! Note: a writable CD should be already in the drive when this action begins.

"Always erase the CD-RW before writing" - this feature always erases a CD-RW disc before writing your files.

"Erase the CD-RW only when needed" - the CD-RW will be erased only when there is not enough room to write new archive; if the CD-RW has enough free space to store new archive, it will not be erased and the previous contents will be available after the processing.

"Verify files after burning" - if this checkbox is on, OCB will compare files created by WinRAR with the files written to the CD to ensure that the CD has no defects.

 

Upload to a FTP server.

If you have your own FTP server and steady internet access, this may be the best choice to backup your documents. Even if your computer is burned down completely, the important data will remain safe on the remote computer. You should have an Internet connection established, otherwise nothing will be uploaded.

"Server" - your FTP server. Without "ftp://". Specify just the server's name, for example, "antol.msk.ru". If your server works on a non-standard FTP port (not 21), you can specify the port number after a colon: "antol.msk.ru:2100".

"Folder" - the folder to write backups to. If blank, the archives will be uploaded to the root folder. The folder should exist, otherwise the archives will not be uploaded. Example: "public_ftp" which stands for "ftp://antol.msk.ru/public_ftp/".

"User" - your username for the server.

"Password" - your password.

"Mode" - either active or passive. If your FTP server shows errors like "Error 550 Permission denied", check the checkbox.

Note that the old version of the same archive (with the same file name) will be overwritten. If you want to leave the previous versions, use a name modification in archiving options, like "Add date -YYYYMMDDHHMMSS". In this case you should use FTP Cleaner to delete obsolete backup files, otherwise you are bound to run out of free space and OCB will be unable to upload new archives.

Comment for advanced users: if you use firewall software with strict security settings you may bump into such a problem: OCB uploads files successfully but reports an error "FTP - Error 500 Control connection closed. Connection aborted (Winsock error #10053)". Try to disable your firewall or run OCB on firewall-free computer and you will see that the problem is caused by firewall and not by OCB. Some firewall software will not allow OCB even to upload files, so please read the manual to your firewall software to find out how to solve this problem.

NOTE: if OCB fails to upload files, check the setting of your firewall software!

Send as e-mail attach via a SMTP server.

Enable this checkbox to send your archives to an e-mail address. This method is much slower than "upload to FTP", but it is more accessible as it is no problem to obtain a free 50-100 megs e-mail box nowadays. However, this feature is mainly used for sending small files such as software activity logs. If you want to trace the activity of any program working on a remote computer, you can confugure OCB to back up its log and send it to your e-mail daily. You may also make OCB delete the log after archiving so that the program will start a new log after the backup process. If you delete the log after archiving, make sure you also enabled the COPY action to preserve a copy of the log just in case you have any temporary problems with internet connection and the SMTP task is aborted.

To use this action, you should have an Internet connection established, otherwise nothing will be sent.

"Server" - specify smtp server name. You may use the server of your ISP. If your server works on a non-standard SMTP port (not 25), you can specify the port number after a colon: "smtp.myisp.com:465".

"User" - username for your smtp server. If the server doesn't require authentication, leave this field blank.

"Password" - password for the smtp server.

"From" - specify a valid from e-mail. If you put here some crap, the server may reject your message.

"To" - e-mail address of the recipient.

If you use "create volumes" feature, each volume will be sent in a separate message to prevent the problems concerning maximum message size limit. You must delete obsolete messages from your mail server from time to time, otherwise you are bound to run out of free space and OCB will be unable to send more e-mails.

NOTE: if OCB fails to send e-mails, check the setting of your firewall software!

 

Automatically delete obsolete archives

(cleaner).

It is likely that you backup huge amounts of data and just a

few backup processes may fill all the free space of your hard disk or FTP server. It is too boring to delete old files manually every day and you may casually delete the archives that you still need, so it's better to use automatic cleaner system. It allows you to delete obsolete archives using one of two available modes:

Clean by the max. number of archives: you specify the number of archives you want to keep and OCB will keep only the latest archives for you. For example, if you set the value to 10, you will always have 10 last backup archives, and the obsolete archives will be deleted automatically before every backup process. It is not recommended to set this value to less than 2 because if you set the value to 1 and the current backup process fails, you will lose all previous copies of archives and a fresh archive will not be created. On the other hand, if you set the value to 2, you will always have previous version of archive, no matter is the current process succeeds or fails.
Clean by the date: OCB analyzes the creation date of archives and deletes the files if they were created X days ago or earlier, where X is the value you specify. This method is not recommended because the Cleaner will delete old files no matter if new archives are created or not, thus, if you have some kind of failure and OCB is unable to create new archives, once there will come a moment when all old archives will be deleted and the new ones will not be created.

Note1: To use the Cleaner, your archive names must be different (you cannot clean one and the same file!). To make the names different, switch to "General" page and set the value of "Add date/time to name" field (something like "YYYY-MM-DD-HH-MM-SS").

Note2: The Cleaner will not work in Direct Raring mode, because in this mode OCB is unable to control which files are created by WinRAR, thus you should turn off Direct Raring feature if you want to use the Cleaner.

Note3: Although the Cleaner supports volumes, you will not be able to use it with multiple floppy disks (use "Empty this folder by mask" instead). If the volumes are used with FTP servers, the Cleaner will process them correctly.

Note4: OCB writes the logs of COPY, FTP and SMTP processes to \presets\*.lgc, *.lgf and *.lgs files all the time, so you may deactivate the Cleaner and then activate it again at any moment. If you don't want the Cleaner to process the archives that were already created, simply delete the corresponding log file.

 

SEE ALSO:

Preset configuration - General tab.

Preset configuration - File lists tab.

Preset configuration - Notes.

Environment Variables.

Index.