InBackup – creates a backup of all incoming traffic on filetransport networks

InBackup creates a backup of all incoming traffic on filetransport networks (e.g. FidoNet-style)
This can be useful in case of error and incorrect actions analysis.
Unlike simple copying before processing – here the files are copied to new folders named by date and time, as a result, files of the same name will not be overwritten – you can always find out exactly where the file came from by comparing the time with the logs. Also, the program can automatically delete old backups, by time or by limiting the maximum volume.
Run InBackup.exe before processing, from cmd/bat scripts.

Settings example

Settings in ini-file:
Inbound=C:\Files\Inbound1
InboundUnProt=C:\Files\Inbound2
Incoming mail directories, files from which are copied to the backup. Nested subdirectories are ignored, only files are taken.

Backup=C:\Files\Backup
Directory where to make backups. This path must exist. Each time InBackup starts, if there are suitable files (by mask value) in the inbound, then a subdirectory will be created here with the name in the form of current date and time (in the form YYYY-MM-DD_HH-MM-SS-MSEC), it will be copied into it inbound content.

BackupMask=*.pkt;*.tic;*.mo?;*.tu?;*.we?;*.th?;*.fr?;*.sa?;*.su?;
The masks of files to be taken into backup are listed with “;”
If not specified, then *.pkt;*.tic;*.mo?;*.tu?;*.we?;*.th?;*.fr?;*.sa?;*.su?;
To select all files – you need to specify BackupMask=*

IgnoreMask=*.tmp;
File masks that should not be taken into the backup are listed with “;”. IgnoreMask is used to exclude some files from being included in the BackupMask.

BackupHiddenFiles=N
Files with the Hidden attribute are also copied to the backup. Disabled by default. usually these are incomplete files and you don’t need to touch them).

Days=100
Maximum number of days to keep backups. Outdated backup files are deleted the next time the program is started. Deleting old files is done before copying new ones. If =0, there is no limit on the number of days.

MaxSizeBackup=1000
The maximum size of the backup directory. In megabytes. If exceeded, the oldest files will be deleted. If =0, the check for the maximum size is not done, in this case the program runs a little faster. Deleting files for exceeding the size is done after copying new ones.

The size checks (MaxSizeBackup and MinSizeFree) are designed for the peculiarity of NTFS, which is that the directories are presented in alphabetical order when searching (FindFisrtFile) (and since the names of the backup subdirectories are in the form of a date, this means that they are automatically presented from the oldest). On other file systems (FAT), size checks may not work correctly – not the oldest backups will be deleted, but, for example, fresh ones, because FAT does not guarantee that directories will be presented in alphabetical order. For filesystems other than NTFS, it is safe to use deletion by age (Days) only.

MinSizeFree=100
The minimum free size on the disk where the backup is stored. In megabytes. If you decrease it, the oldest backup files will be deleted. If =0, no check is made. Deleting files due to lack of space is done after copying new ones.

LogFile=C:\Logs\InBackup.log
Log. Can be commented out if not needed.

LogFileNotice=N
If Y – then a lot of things are written to the log. If N – then only errors are written to the log, if they occur.


Version history

History of development program:
v.2.0 (2022.04.24) Optimization of file processing logic, handling of possible errors, changes in settings.
v.1.0 (2003.05.31) First release.

Download

Download “InBackup_v20.rar” – 9.25 KBVersion 2.0, 2022-04-24