Start Using TBT
Here's the fastest path from "never touched TBT" to "data is actually protected": prepare the server, sign in, build a mapping, run the job, then check the results.
Overview of the Steps
Getting started with TBT follows these steps:
- Prepare the prerequisites.
- Copy the package to the server and run it.
- Sign in to the platform.
- Build a mapping from a table.
- Review and run the job.
- Check the results and keep data safe.
- Automate for repeated runs (optional).
Each one is covered below, with links to the full guides.
1. Prepare the Prerequisites
Before starting, gather the five items TBT needs: the TBT program itself, the gateway address, platform access data (access token, user key, tenant), database access, and a mapping file (once built).
See Prerequisites for the full system requirements and package contents.
2. Copy the Package and Run It
Copy the TBT release package to the Linux server, grant it permission to run, then start the program:
scp -r <package-folder>/ <username>@<server-ip>:~/
ssh <username>@<server-ip>
cd ~/<package-folder>
chmod +x run.sh takakrypt-batch-transformation-linux-*
./run.sh
TBT is not a service. It only runs when you need a job done, then it finishes. See Installation and Usage for the full walkthrough.
3. Sign In to the Platform
On first run, TBT asks for the gateway address, access token, user key, and tenant (authorize with the platform screen). TBT tests the gateway address before sending any access data, so a wrong address is caught immediately.
4. Build a Mapping from a Table
From the main menu, select 1. Build a mapping from a table, then:
- Fill in the database connection.
- Select the table to process.
- Select the columns to protect, and choose a protection function for each (tokenization, encryption, or masking).
- Configure the job:
operation(protect/unprotect),strategy(in_place/copy), batch size, and concurrency.
TBT writes a mapping file (YAML) describing the job, which can be reviewed and reused. See Mapping File and Working Modes to understand in_place vs copy before choosing.
5. Review and Run the Job
TBT shows a REVIEW screen before anything is written, listing every table, column, and function involved, plus an estimate of how long the job will take.
Always run a dry run (d) first, since it changes nothing. Make sure the database has been backed up before pressing r to run for real, especially for strategy: in_place, which overwrites the source columns.
6. Check the Results and Keep Data Safe
After the job finishes, open 5. History to see the run's final result, or check the report.html / summary.json files in the results folder.
Before running your first real job, read Three Things That Can Cause Data Loss: losing the tweaks.jsonl file, changing a key column with in_place, or forcing an Undecidable run to continue can make data permanently unreadable.
7. Automate for Repeated Runs (Optional)
For jobs that run from a script instead of the interactive menu, provide access data through environment variables (never in commands) and reuse the mapping file already created:
set -a; . ./.env; set +a
./run.sh validate --mapping mapping.yaml
./run.sh preview --mapping mapping.yaml
./run.sh run --mapping mapping.yaml --yes
See Access Data, Connections, and Gateway Address for the full environment variable reference and command list.
Using an unusual database? Check Supported Databases for notes specific to your type. Something not working? See Troubleshooting.