ABSync 2.8 (09/2007)

This is free software. Use it at your own risk. Distribute it freely as long as you don't earn money with it. Only distribute ABSync as the installer file.

You can use ABSync without paying a license fee, use it on as many computers as you want. However, ABSync contains a nag screen which appears after you used it some times. You can donate 8 EUR with PayPal to get a code to disable it. This will help me to find the time to further improve ABSync with new functions and bugfixes. Donate to ABSync and Get the Code!


What's This?

ABSync synchronizes two directories. It's mainly used to synchronize files between a stationary computer and a laptop or an external harddisk drive.

A special feature is that it saves the current state to files. Therefore it can detect exactly which files were changed since the last sync.

Whereas other directory sync tools only compare the current state of two directories, ABSync compares the current state at each directory with the old state and performs the same changes at the other directory.

screenshot


And What's so Special About It?

Lets's have a look at the actions ABSync performs, depending on what happened to each single file since the last sync:

action table


And here's an example. The left part shows two sides A and B with changes that are made manually. Some files are deleted, others are modified or created.

sample

The right side shows what your directories look like after a sync. As you can see, the deleted file at A is also deleted at B. The created and the modified file at A are both copied to B. The modified file at B is copied to A, even if it was deleted at A in the meantime.

To detect which changes occurred at both sides, the current state is saved to ABSync SYSTEMID SETNAME.dat files. The filename, size and age of each file is stored in these files to detect changes at the next sync.


Usage

Creating a Set with the Wizard: When starting ABSync the first time or after pressing the Wizard button in the Set Editor, the Wizard starts, which guides you through the process of defining a new Set. A Set contains the path of the directories you want to sync and some options.

First Sync: After defining a Set, you can start the first Sync. If one of the directories is empty, ABSync will copy all files from the directory which contains files to the one which doesn't. If both directories contain files, make sure they contain exactly the same files (differences are logged in case they are detected). If both directories contain the same files after this first run, ABSync writes state files to the directories, which are a snapshot of all files you have in the directories.

Further Usage: After state files are created, you can create, change and delete files and directories at one of your directories. When starting ABSync afterwards, it will find the differences and perform the same changes at the other directory.

Abort Sync Process: It is possible to interrupt a sync process. After clicking on the Sync button while the sync process is running, you are asked if you want to abort. Abortion is possible after a complete file is copied. In case you abort a sync, no state files are saved. When you sync again, the sync can be resumed by only copying the remaining files.


Set Editor

In the Set Editor, you can define the Sets, which contain the paths of the two directories you want to sync, excludes and includes and some options.

Here's what the options mean:


Excludes and Includes

With the Exclude / Include function of ABSync, you can specify which files below the two selected directories are synced and which are ignored. The behaviour I chose makes it possible to make even complex selections. It is possible to exclude / include directories, single files or setting a file mask in the format HEAD*TAIL (e.g. exclude all *.bak files).

Note: You can use the dir/file browser to insert an exclude string for an existing file or directory. Click on the icon next to the text field to open it.

Please note that this is some kind of expert feature. You should exactly imagine what happens with your current setting. If not, it could lead to unwanted overwritings or deletions. That's especially important if you change the settings when you already synced the two directories some times. For testing purposes, I suggest to switch on the Simulate Sync option or to sync two temporarily created directories.

And here's what ABSync does with the excludes and includes you defined:


Example 1

  • Archive is excluded with all subdirectories
  • Source is excluded with all subdirectories, except Uwe
  • Don't exchange entries 2 and 3 in the ExcInc-Editor. In that case, all directories below Source will be excluded, also Uwe.


Example 2

  • all subdirectories of Music are excluded, but Music itself is included
  • as above, Uwe is included
  • all files that match the file mask *.tmp in Uwe, are excluded


Critical Files Summary

A special case is when ABSync detects a file changed or added at both sides. This shouldn't happen usually, but if detected by ABSync (e.g. you have copied the same file to both directories manually), it compares size, age and content of the files. Only if the files differ in at least one of these points, it adds the file to the critical files summary which is shown at the end of the sync process. Files where ABSync isn't sure what to do because of their attributes (delete Read Only File if not allowed without warning etc.) are shown in that form, too.


Command Line Usage

After you saved a pair of directories as a set, you can start a sync with the following syntax:

ABSync.exe {Set} [/quit]

For example, if you want to start ABSync and sync the set "Test Set", you can type

ABSync "Test Set"

at the command line (or create a shortcut on your desktop with this parameter). If you want to start ABSync, run the Set "Test Set" and quit afterwards if the job was done without errors, type

ABSync "Test Set" /quit


Automatically Sync Removable Media on Connect

The command line support makes it possible to automatically sync your media (external harddsik, zip-disk, USB flash drive etc.). Sample files can be found in the Sample directory of ABSync.

Win 9x, Win ME, Win 2k

  1. Start ABSync the usual way, save the directory pair as a Set and sync your drive.
  2. Create an autorun.inf on the removable media with the following content
    [autorun]
    icon=harddisk.ico
    Open=C:\Programme\ABSync\ABSync.exe "My USB Harddisk"
    Remove the line defining the icon if you don't have one. Insert the right directory for ABSync and the Set name. You can add /quit to the last line if you want to close ABSync automatically after a successful sync.
  3. ABSync should now sync the device at each connect.

Win XP, alternative usage for all systems and sync on disconnect

Windows XP doesn't support starting a program that's given in Autorun.inf on removable media because it wants to analyze which files are on the media and then suggest an appropriate action. To make starting a program even work on Win XP, and as an alternative for all Windows systems, follow this description:

  1. Download and install the c't USBAgent.
  2. Create a usbagent.inf on the removable media with the following content
    [usbagent]
    ON=C:\Programme\ABSync\ABSync.exe "My USB Harddisk"
    OFF=C:\Programme\ABSync\ABSync.exe "My USB Harddisk"

    Delete the last line if you don't want a sync on disconnect. You can add /quit if you want to close ABSync automatically after a successful sync.
  3. ABSync should now sync the device at each connect and optionally before each disconnect.

Note: Because running ABSync needs some time, Windows may tell you that it couldn't disconnect the device. Simply try to disconnect the device a second time, the USB agent won't run ABSync another time.


Star Formation Sync

Do you use a USB flash drive to transport files between your PC at home and your PC at work? Do you want to keep more than two media or PCs in sync? Here's what you need!

star formation sync


Star Formation Sync means that you have a removable media you carry around and sync it with different PCs. That's what you have to do:

  1. Install ABSync into the same directory on all PCs.
  2. Do not install ABSync onto the removable media itself! Do not copy the INI of an installed ABSync from one PC to another! Every PC gets a System ID automatically at the first start of ABSync. This ID is used to detect at which PC the media was inserted. To make sure the different PCs have a different System ID, look into the About window.
  3. Save the directory pairs as sets with the same name on each PC. The directories on the different PCs and the drive letter of the removable media can be different. You can use the Load / Save function (To File / From File buttons) to transfer settings to another PC.
  4. Copy the files you want to sync manually to all PCs and the removable media (the same as in Usage).
  5. Run the initial sync at every PC. ABSync state files are named ABSync SYSTEMID SETNAME.dat and are never synced, so a foreign state file doesn't confuse a sync.
  6. Now you can sync the files you carry around very easily with the different PCs.
  7. If you set up the Auto sync on connect and disconnect as described above, it is even more comfortable. Note that the correct state file is automatically used at each PC because the PCs are detected by the System ID. Therefore, the same command in Autorin.inf / usbagent.inf works for different PCs.


Limitations


INI File

The directory sets, the System ID, the last set used and the window position are saved to an ini file in the ABSync directory.

Every PC on which you start ABSync gets a System ID that represents the current time at the first run of ABSync. The precision is about 1/100 sec., so it's rather unlikely that two identical IDs are created. The ID is saved in the ini file. If you ever have to set the ID to a special value, you can edit the ini file. This shouldn't happen usually. You can also check the System ID in the About Window.


Changelog

V2.8 (09/2007)

V2.7 (01/2007)

V2.6 (10/2006)

V2.5 (12/2005)

V2.4 (04/2005)

V2.3 (03/2005)

V2.2 (01/2005)

V2.1 (06/2004)

V2.01 (01/2004)

V2.0 (06/2003)

New major release with many improvements!

ABSync remains free to use. But it contains a nag screen which appears after you used it some times. You can donate 8 EUR with PayPal to get a code to disable it. This will helps me find the time to further improve ABSync with new functions and bugfixes.

Set Editor

Sync Process

GUI / General

V1.2 (05/2003)

V1.1 (03/2003)

V1.01 (03/2003)

V1.0 (01/2003)


Thanks

Beta testers and people that read the documentation were Sönke Lütjohann, Michael Schopferer, Oliver Frietsch, Maik Schmidt. Thank's for testing ABSync!


Contact

EMail: mail@uwe-freese.de

WWW: http://www.uwe-freese.de


Windows, Windows 98, Windows ME, Windows 2000 and Windows XP are registered trademarks of Microsoft.