Configuring a profile to use the correct drive letter when the drive letter is (or may later be) unknown


In some situations it is not known at profile creation time what drive letter Windows will assign to an external drive, for example, when it is plugged in. To get around this the variables SERIAL or LABEL can be used. For example, if your external drive has a serial number of ABCD-EFGH then you could set your source or destination to:

%SERIAL=ABCD-EFGH%\backup\


As an alternative the label variable can be used when the drive label is known, e.g.

%LABEL=My Drive%\backup\


When the profile is run SyncBack will substitute the variable with the drive letter of the drive with that serial or label, e.g.

X:\backup\


An easy way to get the serial number, or label, or a drive is to use the Alternatives button in either the New Profile wizard or in the Profile Setup window if the profile has already been created. As an alternative, to get the serial number of a drive you could go to the command prompt and type dir x: (use the appropriate drive letter). The serial number of the drive is displayed in the header of the output. Note that the SyncBackSE/Pro log file also includes the serial number of the source and destination.

Note that neither SERIAL nor LABEL include the A or B drives (typically floppy disk drives). To include those you must use the SERIALALL and LABELALL variables. See the help file for more details.


Note that these variables are not available in SyncBackFree.


The following article explains how to assign permanent drive letters to external devices:

https://help.2brightsparks.com/support/solutions/articles/43000335729