Authentication
FastTransfer supports two types of authentication methods depending on your database platform. Authentication can be configured separately for source and target databases.
- CredentialsThe current Windows user, or the operating system authentication if allowed by the RDBMS
- Source
--sourcetrusted - Target
--targettrusted
- CredentialsExplicit username and password
- Source
--sourceuserand--sourcepassword - Target
--targetuserand--targetpassword
Source Authentication
- Trusted Connection
- SQL Login
Trusted Connection (Source)
Uses the current Windows user's credentials or the operating system authentication if allowed by the RDBMS.
.\\FastTransfer.exe `
...
--sourcetrusted `
...
--sourcetrustedSwitch, no value.
This method is only available if your RDBMS supports trusted/integrated authentication (e.g., SQL Server with Windows Authentication).
SQL Login with Username and Password (Source)
Standard database authentication with explicit credentials for the source database.
./FastTransfer `
...
--sourceuser "myuser" `
--sourcepassword "mypassword" `
...
--sourceuseror-uUsername: --sourceuser "username" (short form: -u "username")
--sourcepasswordor-xPassword: --sourcepassword "password" (short form: -x "password")
Target Authentication
- Trusted Connection
- SQL Login
Trusted Connection (Target)
Uses the current Windows user's credentials or the operating system authentication if allowed by the RDBMS.
.\\FastTransfer.exe `
...
--targettrusted `
...
--targettrustedSwitch, no value.
SQL Login with Username and Password (Target)
Standard database authentication with explicit credentials for the target database.
./FastTransfer `
...
--targetuser "myuser" `
--targetpassword "mypassword" `
...
--targetuseror-UUsername: --targetuser "username" (short form: -U "username")
--targetpasswordor-XPassword: --targetpassword "password" (short form: -X "password")
Alternative: Connection String Parameter
You can also use connection string parameters where you pass the user and password directly in the connection string:
- Source Connection Parameters
--sourceconnectstringfor the source database connection - Target Connection Parameters
--targetconnectstringfor the target database connection
All passwords passed either through the --sourcepassword, --targetpassword parameters or within the --sourceconnectstring, --targetconnectstring parameters are automatically hidden in all logs (Console, Files, and Database). This ensures your credentials remain secure in logging outputs.
For Login/Password you can also use the environment variables like FastTransfer_SOURCEUSER and FastTransfer_SOURCEPASSWORD for example or store the password in an encrypted file. Up to you to decrypt the file and its content before using it in a shell variable that will be used with FastTransfer.