The Toast platform stores data export files for seven days, and then they are deleted. When data exports are enabled for your restaurant, the following items are needed to retrieve your files:
-
SFTP User name: This is provided by Toast support.
-
SSH key: For more information about generating an SSH key, and where to enter this in Toast Web, see SSH keys.
-
Server URL: To locate the appropriate Server URL, navigate to Reports > Settings > SSH Keys from the Toast Web. Locate your SFTP username and find the Server URL.
Export IDs can also be obtained from Toast Web. Navigate to Reports > Settings > Data Exports and click the link in the banner at the top of the screen, view restaurant # mapping to export a file that includes an Export ID column which includes the ID for each restaurant.
Prior to downloading data export files, ensure that you have added an SSH key to Toast Web. The following examples describe how to connect to your SFTP directory for use with the macOS™ terminal and Windows™ command prompt. For information about how to export files using a third party FTP solution see this Toast Central article.
-
Connect to your SFTP directory
To access your restaurant's SFTP directory using terminal use the following command:
sftp \ -i ~/
{SSH key filepath}
\ -r{username}
@s-9b0f88558b264dfda.server.transfer.us-east-1.amazonaws.com:{export id}
/{YYYYMMDD}
/*Replace the
{username}
and{export id}
placeholders with the details you received from Toast support. Change{YYYYMMDD}
to the business date of the desired export within the last seven days and the{SSH key filepath}
to the location of your SSH key on your machine.Note
The
{filepath}
used will be the export directory for your restaurant files. -
Exporting files using terminal
Once you are connected to the SFTP directory use the ls command and press Return to display all files.
Export all files using the get * command or use get
{fileName}
to export a specific file.
-
Connect to your SFTP directory
To access your restaurant's SFTP directory using command prompt use the following command:
sftp \ -i
{SSH key filepath}
\ -r{username}
@s-9b0f88558b264dfda.server.transfer.us-east-1.amazonaws.com:{export id}
/{YYMMDD}
/*Replace the
{username}
and{export id}
placeholders with the details you received from Toast support. Change{YYYYMMDD}
to the business date of the desired export within the last seven days and the{SSH key filepath}
to the location of your SSH key on your machine.Note
The
{filepath}
used will be the export directory for your restaurant files. -
Exporting files using command prompt
Once you are connected to the SFTP directory use the ls command and press Enter to display all files.
Export all files using the get * command or use get
{fileName}
to export a specific file.