Backup

 Content Previous Next

Topic Content

General

Unconditional Renaming of Files Transferred to Target

Conflict Resolution Rules

 

 

This option defines properties for File Transfer -- a key stage of Backup mode. During this stage files are being copied or moved from Source to Target(s) and other defined actions are performed.

 

File Transfer has certain sub-events (Targets and Actions) which reflect how File Transfer actually works. In brief, every sub-event within File Transfer happens to every file that is within the task scope. This may be illustrated by the following example.

 

Example: consider the following situation


Source content

Task Scenario Settings

The order in which AnyFileBackup will proceed

1.Copy 'document.doc' to \serverBackup
2.Send SMS message that 'document.doc' has been copied
3.Pause copying for 60 seconds
4.Copy 'readme.txt' to \serverBackup
5.Send SMS message that 'readme.txt' has been copied
6.Pause copying for 60 seconds
7.Copy 'video.avi' to \serverBackup
8.Send SMS message that 'video.avi' has been copied
9.Pause copying for 60 seconds
10.Proceed to the next step (that is sending a LAN message to admin about copying status)

 

 

General

This group of settings defines the basics of file transfers between Source and Target locations. Proper configuration of this settings is essential for successful backup and synchronization.

File operation

This is the way files are being transferred from Source to Target location. Three options are possible:

 

'Copy files from Source to Target': files that are being transferred from Source to Target will be created in Target and will also remain in Source.

 

'Move files from Source to Target': files that are being transferred from Source to Target will be created in Target and them will be removed from Source.

 

'Virtual mode': this is a test mode which is designed to test whether files can be transferred between Source and Target locations. In reality no files are actually transferred to Target but AnyFileBackup imitates copying checking that Source and Target exist, that sufficient permissions are in place to permit file transfers, etc. However, other actions (for example, sending e-mails, etc.) will be performed in a usual ('real') manner. It is recommended to use this mode if you need to test a connection, permissions, etc.
Copy order

This is the order of priority in which files are transferred to Target. The following options are available:

 

'Any': files are copied in a random order.

 

'By name (A ... Z)': files are copied in a usual alphabetical order with files starting with letter 'A' first and so forth.

 

'By name (Z ... A)': files are copied in a reverse alphabetical order with files starting with letter 'Z' first and so forth.

 

'Older files first': files are copied in an order of creation (determined by date and time) with files that have been created earlier in time first and so forth. Files created exactly in the same time will be copied in alphabetical order.

Example: files created in 2005 first, then files created in 2009, and finally followed by files created in 2014.

 

'Newer files first': files are copied in an order of creation (determined by date and time) with files that have been created later in time first and so forth. Files created exactly in the same time will be copied in alphabetical order.

Example: files created in 2014 first, then files created in 2009, and finally followed by files created in 2005.

 

'Smaller files first': files are copied in a order their size increase with files that have the smallest size first and so forth. Files with exactly the same size will be copied in alphabetical order.

 

'Larger files first': files are copied in a order their size decrease with files that have the largest size first and so forth. Files with exactly the same size will be copied in alphabetical order.

 

 

Unconditional Renaming of Files Transferred to Target

This group of settings configures the rules for renaming files that are backed up to all Targets. This renaming happens when the 'Match pattern' fits the Source file's name and, consequently, in Target this file will have a different name, that matches the 'Replace pattern' settings.

 

This option utilizes powerful 'regular expressions'. Good explanation and examples of usage can be found at this Wikipedia page: https://en.wikipedia.org/wiki/Regular_expression#Examples

Enabled

If enabled, the Unconditional Renaming will be active and apply to all files that are transferred by AnyFileBackup to all Targets (but if, and only if, the file name matches the 'Match pattern' settings; if there is no match, then no renaming will be made).

Match pattern

An expression (aka 'mask') that is used to define which filenames or part(s) of filenames are to be renamed when they are transferred to Targets, so in Targets these files will have new names as set by the 'Replacement pattern' rules.

Replace pattern

An expression (aka 'mask') that is used to define a new filename for a Target file.

 

 

Conflict Resolution Rules

This group of settings defines what happens to a file in a Target location if a file with the same name is being transferred to that Target location from a Source location.

If target file exists

This defines what will happen to any file in Target if a file with exactly the same name is being transferred to that Target location from a Source location. The following options are available:

 

'Replace always': a file in Target will always be replaced with a file from Source.

 

'Replace older file': if a file in Target is older (determined by date and time) than a file from Source that is being transferred to Target, then this file in Target will be replaced (deleted) with the newer file from Source. In other words, a newer file from Source always replaces an older file in Target.

 

'Rename': one of the files that conflict can be renamed according to the rules explained immediately below.

 

'Append': new content of a Source file is added to the end of a Target file. This may mode is compatible with Folder (local / LAN) and FTP only.

 

'Update changed parts': This option must be used with caution. First, Source file and Target file are compared. Secondly, if any part of the Source file is different from a corresponding part of the Target file, this part part is replaced in the Target file.

 

The following is essential when you consider using the 'Update changed parts' mode:

-- a Target file does not exist: a Source file will be transferred to Target in full;

-- a Target file is longer than a Source file: the Target file will be truncated (that means that certain changed parts will be cut out as appropriate);

-- Source files and AnyFileBackup are located on different computers: this may significantly increase file transfer time and it is recommended to use this mode only when Source files and AnyFileBackup are located on the same computer;

-- Source files are large: this may significantly increase file transfer time and it is suggested to consider other mode.

 

'Skip copying': a file from Source will not be copied to Target if there is a file with identical name.

 

Some of these rules are not compatible with certain Targets, namely:

 

HTTP: 'Rename', 'Skip copying', 'Replace older file', 'Append', and 'Update changed parts' are not supported.

 

Cloud: 'Rename' (for 'File in Target' option only), 'Append', and 'Update changed parts' are not supported.

 

E-mail: 'Conflict resolution rules' are not supported.
File to rename

This option activates when the 'Rename' option is selected in the 'If target file exists' field above. The following files may be renamed:

 

'File from Source': file that is being transferred from Source will be renamed.

 

'File in Target': file that exists in Target will be renamed.
Rename template

Specify the template which will be applied to files that are to be renamed. You may use the existing templates or specify a new one. Details of macro strings can be found here.

 Content Previous Next