A script is a set of instructions and is similar to the macro support in Microsoft Office and Java Script in web pages.
If you have a script you would like to submit, complete the form below.
![]() |
AbortIfNoSpace
Aborts the profile before copying starts if there is not enough free space. |
|
|
This script checks to make sure there is enough free space on the source and destination to copy the files. If there is insufficient free space then the profile aborts. Note that some locations, e.g. FTP, cannot report free space and so this script will not work for such profiles. |
||
![]() |
Duration [in Main Window]
Duration of the most-recent profile run. |
|
|
Script Author: 2BrightSparks, with modifications to the V8 version by Michael Grabowski Adds an extra column in the main window that shows the duration of the most-recent profile run. You need to install this script and enable it on the Main Interface tab. You also need to enable it for each profile that you want the column to be used with (modify the profile and go to the Scripts tab). |
||
![]() |
EmailOnAbortOnly
Only sends an email if a profile is aborted. |
|
|
Instruct SyncBackPro to only send an email if a profile run is aborted (if the run is simulated then it does not send the email). |
||
![]() |
IgnoreFlag
Instruct SyncBackPro to completely ignore a folder, and it's contents, if it contains a special file. |
|
|
Script Author: Tavis Ormandy Instruct SyncBackPro to completely ignore a folder, and it's contents, if it contains a file named .nobackup |
||
![]() |
IgnoreTimeStamp
Instruct SyncBackPro to completely ignore the last modification date and time of a file. |
|
|
Script Author: SyncBackGuy (Dave) Instruct SyncBackPro to completely ignore the last modification date & time of a file. This option is not available if your profile is a Sync profile, however the IgnoreTimeStamp script allows users to ignore the last modification
date & time of a file for Sync profiles as well, even though the option is greyed out in the profile. This script requires that the hashing option is turned on ("Use slower but more reliable method of file change detection"). |
||
![]() |
InsertIntoSQLDB
Create JobLog Entries in SQL Tables. |
|
|
Script Author: David Centofanti of Perma-Fix This script may be used with SyncBackSE or SyncBackPro using the Run Before and Run After functions. |
||
![]() |
LocationLabels [in Main Window]
Shows the location labels in the main window. |
|
|
SyncBack lets you label the source/left and destination/right. For example, you may be doing a backup to Amazon S3 and so want to call the destination S3. Or you may be copying legal documents from your local drive and want to call the source Legal Documents. Giving them a label makes it very clear in the user interface, logs, etc. what is being referred to in any messages, errors and prompts. This very simple script adds two extra columns to the main window in SyncBackPro. Those columns show the labels you have given to the source/left and destination/right for all the profiles. Important: This first time you import this script you will need to exit SyncBackPro and start it again for the new columns to appear. |
||
![]() |
OnlyYesterday
Ignores any files if the source file has not been modified yesterday. |
|
|
The script is not used if it is a Restore |
||
![]() |
ROCopy
Sets the destination copy of a file to read-only. |
|
|
This is a run-time script that sets the read-only attribute on files copied to the destination. This may be useful in situations where you want to minimize the chance of other users, or programs, accidentally changing or deleting backup
files. It is only for use with profiles where the destination is a normal filesystem and compression is not used. |
||
![]() |
RotatingDriveLetter
Ensures a single profile rotates which devices it uses as Destination each time it runs. |
|
|
Many people have multiple backup devices, and data they wish to be kept regularly backed up. The "Rotating Drive Letter" script supports a single profile that rotates which devices it uses as Destination each time it runs. The profile should be set to run according to the frequency you design the script around, and the script tells the profile which device to use. The script creates a new custom Variable - that you can use in place of the drive letter - whose value is calculated differently depending when the profile runs /calls the script for a value (that is, asks which device to use). As delivered, it is designed to be run every 15 minutes, and to toggle between one of four values. It can be edited/adapted to deliver values based on the half-hour, the hour or even the day, etcetera. |
||
![]() |
ShowTime [in Main Window]
Adds new duration column to the Main window. |
|
|
Script Author: Daniel Faust Adds a new column labeled "Duration" which keeps track of the duration it took to scan before showing the Differences Window. - Installing this script will add a "Duration" column (initially added on the extreme right of the Main window interface). Note this will not show in the main interface. - The script must be enabled on individual profiles in order for the Duration cell (for that profile) to be populated with the running time. - The Duration value will only be updated AFTER you have performed a successful Scan & run of the profile. The results reflect the duration in seconds the time it took to perform the LAST scan period, so you can have an indication of roughly how long it will take for the next scan/run of the profile. Note however that this is not an estimate of what the next Scan duration would be, but rather, reflects only the last Scan duration. Warning: This script requires SyncBackPro V10.2.59.0 or newer. |
||
![]() |
Free Space [in Main Window]
Adds new free space column to the Main window. |
|
|
These scripts shows the free disk space on the source and/or destination drive when using SyncBackPro. Incompatible resources such as FTP display 'N/A'. There are two scripts: one for the source and one for the destination. |
||
![]() |
WaitForFinish
Stops a profile from running until a particular program has either finished running or isn't running. |
|
|
This is a run-time script that waits for a program to finish before it starts. This can be useful when you do not want to close a program, but instead want to wait for it to finish before running the profile. Note that you should edit the script and set the name of the program that your wish to wait for (see the comments in the script code). By default it waits for Notepad to finish. |
||
A location script is a storage location written as a script: a profile uses it as its source or destination instead of a folder, FTP server or cloud service. These examples are written in Pascal and are plain source code (.pas files), not .sbs packages. The settings for each one are described in the comment block at the top of the file.
Warning: These scripts require SyncBackPro V12.2.6.0 or newer.
Installing a location script:
If you installed these scripts from the V12.2.6.0 beta, install the new versions and then tick each script once on the Profile Configuration tab of the Scripts window (burger menu > Scripts) to see its settings page.
Vault, Chaos and Flat Folder are storage you copy to: choose your folder as the source and the script as the destination. The others are read-only (Game Saves unless you allow restoring) and you copy from them, and the wizard sets up the profile direction for you.
![]() |
BrowserBookmarks [Location]
A read-only location with the bookmarks of your web browsers as internet shortcuts. |
|
|
Each browser has a folder (one per browser profile if it has more than one), and each bookmark is a .url file that opens the page when you double-click it, for example \Chrome\Bookmarks bar\News\BBC News.url. It reads the bookmarks of Google Chrome, Microsoft Edge, Brave, Vivaldi, Opera and Mozilla Firefox. Firefox bookmarks are read from a copy, so Firefox can stay open. Other bookmark files, for example of a portable browser, can be added on the Browser Bookmarks page of the profile setup. Use a Backup profile that copies from Browser Bookmarks to a folder, for example D:\Bookmarks\. Use Backup rather than Mirror if you want to keep the bookmarks you delete. Requires Insider Access in SyncBackPro V12 (it uses JSON.parse, SBSystem.SQLiteQuery and SBSystem.HashString). Insider Access functions will be in every SyncBackPro V13. |
||
![]() |
Chaos [Location]
A storage location that misbehaves on purpose, for testing. |
|
|
Chaos keeps your files in an ordinary folder, but it can fail copies, damage copies, report the wrong file size, leave files out of the folder listing, lose the connection or slow down. How often each one happens is set on the Chaos page of the profile setup. Everything starts at 0, so Chaos behaves like an ordinary folder until you turn something on. Use it to see how SyncBack reacts when storage goes wrong, for example whether verifying files after they are copied catches the damaged ones. Everything Chaos does on purpose is written to Chaos.log, in the folder where Chaos keeps the files (by default %LOCALAPPDATA%\SyncBack Chaos\). Do not use it for real backups. Insider Access is not needed. |
||
![]() |
EventLogs [Location]
A read-only location whose files are your Windows event logs. |
|
|
Each log is a .evtx file that Event Viewer opens (Action > Open Saved Log). Logs are written to all the time, so each one is exported with wevtutil (included in Windows), and only when it has changed. Choose the logs on the Event Logs page of the profile setup, separated by semicolons (the default is Application;System;Setup). Wildcards work, and * means every log that has events (several hundred on most PCs). Use a Backup profile that copies from Event Logs to a folder, for example D:\EventLogs\, and turn on versioning to keep older copies: Windows overwrites the oldest events once a log is full. The Security log and a few others can only be read by an administrator, so run the profile as an administrator to include them. Otherwise each one is a warning in the profile's log. Requires Insider Access in SyncBackPro V12 (it uses SBLocation.Warning). Insider Access functions will be in every SyncBackPro V13. |
||
![]() |
FlatFolder [Location]
Copies a folder tree into one folder, without sub-folders. |
|
|
By default the folder path is kept in the file name, so nothing is lost: \Docs\Work\report.docx becomes Docs~Work~report.docx. Untick "Keep the folder path in the file name" on the Flat Folder page of the profile setup to get just the file names. Files with the same name in different folders then replace each other (the last one copied stays), and the profile's log has a warning naming both files. A replaced file is not copied again on every run, and restoring it fails with a message saying which file replaced it. The Flat Folder page also sets the folder to put the files in (required) and the separator (default ~). A file whose flat name would be longer than 255 characters is not copied, and the log says why. Mirror and restore work: Flat Folder remembers where each file came from in an index of its own, in %LOCALAPPDATA%\SyncBack Flat Folder\, so the flat folder holds only your files. Requires Insider Access in SyncBackPro V12 (it uses SBSystem.HashString and SBLocation.Warning). Insider Access functions will be in every SyncBackPro V13. |
||
![]() |
GameSaves [Location]
Every game's saved games, each in a folder named after the game. |
|
|
It looks in Saved Games, Documents\My Games, the saves Steam keeps for each game, games made with Unreal Engine and Unity, and the save folders of popular games that use none of those, for example Minecraft, Stardew Valley, Factorio, The Sims 4 and Baldur's Gate 3. On the Game Saves page of the profile setup you can add your own folders and leave games out. Use a Backup profile that copies from Game Saves to a folder, for example D:\Game Saves\, and turn on versioning to keep older saves. Game Saves is read-only unless you tick "Allow restoring" on its page. A profile can then copy saves back to where each game keeps them (close the games first). Insider Access is not needed. |
||
![]() |
MachineInventory [Location]
A read-only location whose files describe your PC, so you can keep a history of how its setup changes. |
|
|
The files list the installed programs, Windows updates, services, drivers, scheduled tasks, startup programs, environment variables, drives and network adapters, plus a copy of the hosts file. A file only changes when the PC's setup does, so a profile copies only what has changed, and with versioning turned on you build up a history of the changes. Use a Mirror profile that copies from Machine Inventory to a folder, for example D:\Inventory\PC1\, and turn on versioning. It needs Windows PowerShell (included in Windows). Insider Access is not needed. |
||
![]() |
NasaImages [Location]
A read-only location made from the NASA Image and Video Library. |
|
|
Each search on the NASA Images page of the profile setup becomes a folder of pictures from images.nasa.gov, each with a .txt file describing it. Separate the searches with semicolons (the default is Nebula; Hubble; Apollo 11). The page also sets how many pictures each search gets, the picture size and where downloads are kept. Pictures are only downloaded when SyncBack copies them, and are then kept, so a second run downloads nothing. Use a Backup profile that copies from NASA Images to a folder, for example D:\Pictures\NASA\. It needs curl.exe, which is part of Windows 10 (version 1803 or later) and Windows 11. Requires Insider Access in SyncBackPro V12 (it uses SBSystem.HTTPRequest and JSON.parse). Insider Access functions will be in every SyncBackPro V13. |
||
![]() |
PhotosByDate [Location]
Your photos and videos rearranged into folders by the date each one was taken. |
|
|
Photos by Date shows the photos in a folder and its sub-folders sorted by the date taken, for example \2024\06\IMG_1234.jpg. The date comes from the photo's Exif data (JPEG, TIFF, HEIC and the raw files of most cameras) or, for a video, the date it was recorded. Copy from it to another folder and every photo is sorted by year and month, and kept up to date as you add more. The photos themselves are never moved or changed. On the Photos by Date page of the profile setup, choose the photo folder and the folders to make: Year\Month (the default), Year\Date or Year\Month\Day. Videos can be left out, and photos with no date taken go by the file's date or into a "No date taken" folder. Two photos with the same name in one folder get (2), (3) and so on. Use a Backup profile that copies from Photos by Date to a folder, for example D:\Photos by Date\. Requires Insider Access in SyncBackPro V12 (it uses SBSystem.GetDateTaken, SBSystem.FindFiles and SBSystem.HashString). Insider Access functions will be in every SyncBackPro V13. |
||
![]() |
RegistryFolders [Location]
A read-only location that shows the Windows registry as folders. |
|
|
Each registry key is a folder, and its values are in a (values).reg file inside it, the same as regedit exports them. Double-click a .reg file to put those values back into the registry. A .reg file has the date and time its key last changed, so a profile copies only the keys that have changed, and with versioning turned on you build up a history of your programs' settings. Choose the keys on the Registry page of the profile setup (the default is HKEY_CURRENT_USER\Software). Characters a file name cannot hold are written as %XX, for example * becomes %2A. Use a Mirror or Backup profile that copies from Registry to a folder, for example D:\RegistryBackup\. Requires Insider Access in SyncBackPro V12 (it uses SBSystem.RegListKeys, SBSystem.RegKeyModified and SBSystem.RegExportValues). Insider Access functions will be in every SyncBackPro V13. |
||
![]() |
Vault [Location]
Stores your files in a vault folder that only SyncBack can put back together. |
|
|
The Vault does not store your files as ordinary files. Each folder is one small index file, and the contents of each file is kept under a random name, so opening the vault folder in File Explorer does not show your files. It supports attributes, dates and times, renames, moves and versioning, and is a complete example of a read and write location. By default the vault is kept in %LOCALAPPDATA%\SyncBack Vault\, which can be changed on the Vault page of the profile setup. Requires Insider Access in SyncBackPro V12 (it uses SBSystem.HashString). Insider Access functions will be in every SyncBackPro V13. |
||
Please use the form that appears below...
The form is provided by Logiforms, which sets a session cookie when it opens.