All data in your GivingData site is securely backed up through automated scheduling processes. For clients needing to access these backups, GivingData can assist you in obtaining a .bacpac file that contains this essential data for your records.
This article covers how to download .bacpac files via SFTP, either using tools like FileZilla or via the command line (Command Prompt on Windows).
The following steps involve detailed technical configurations, such as connecting to an SFTP server, managing usernames, and handling connection strings. These tasks are best performed by IT staff or a qualified technical resource. If you are unfamiliar with these procedures, please consult with your IT department or someone experienced with server management and SFTP connections to ensure security and accuracy.
Set Up and Install an SFTP Client
Before starting, ensure you have an SFTP client installed on your computer. Popular options include:
FileZilla: Download FileZilla
WinSCP: Download WinSCP
Cyberduck: Download Cyberduck
These pages will provide you with the latest executable files for installation on Windows, Mac, or Linux. Download and install one of these clients if you have not already.
Gather Necessary Credentials
To connect to the SFTP server and download the .bacpac file, you will need specific connection details that are typically provided by the GivingData Development team. Contact the GivingData Support team to obtain the following details:
Hostname - The server’s address where the file is stored (e.g.,
yourserveraddress.sftp.example.com).Username - May contain specific prefixes related to the storage account.
Password - This will be provided securely, typically via encrypted email.
Connect to the SFTP Server
For clients or end users accessing the .bacpac file, follow the steps below to connect to the SFTP server using the client you installed previously. The examples in this article follow FileZilla's FTP client.
Enter Connection Details
Launch the sFTP client and configure the the connection.
Hostname - Input the server’s address (e.g.,
yourserveraddress.sftp.example.com).Username - Enter the username, ensuring any required prefix is included (e.g. username-prefix.your-username).
Password - Enter the secure password you received.
Port - Enter 22 as the port number.
Initiate the Connection
Click Connect or Login to establish a connection to the server.
If prompted, confirm that you trust the connection, especially if a security certificate warning appears. You should see a Status log if connection is successful. This log will also indicate unsuccessful connections which is useful for troubleshooting.
Status: Connecting to mockserver.example.com...Status: Using username "mockserver.testuser".Status: Connected to mock.storage.server.netStatus: Retrieving directory listing...Status: Listing directory /Status: Directory listing of "/" successful
Locate the .bacpac file
The SFTP client will display a list of files and directories available on the server.
Navigate through the directory structure to find the .bacpac file. Often, it will be located in the Remote Site directory specific to the client or backup task.
Start the Download
Select the .bacpac file and click Download or drag the file to your target local directory or folder. You can also right-click on the .bacpac file you want to download.
Monitor the Transfer
The SFTP client will display the progress of the download, including the amount of data transferred, the transfer speed, and the time remaining.
Confirm Successful Transfer
Once the download is complete, the client will confirm that the file transfer was successful (e.g. “File transfer successful, transferred 56,278,980 bytes in 13 seconds”).
Disconnect from the server by closing the session in the SFTP client. This ensures that the connection is securely terminated.
Optional: Command-Line SFTP (Windows)
For users who prefer working in a terminal environment, Windows systems have a built-in SFTP client accessible through the command line. This method allows users to transfer files efficiently without needing a GUI like Filezilla. Below is a guide on how to securely download a .bacpac file using the command line.
The steps below are high-level and assume technical familiarity with navigating remote directories, handling SFTP connections, and executing basic file transfer commands. If you are uncomfortable following these steps, we suggest using a SFTP client with Graphical User interface, such as Filezilla.
Establish an SFTP Connection
- Use the
sftpcommand to connect to the server:sftp username@hostname - Enter the password securely that is provided to you.
- Once connected, use the
lscommand to list all files and directories in the current directory:ls- This will display a list of files and folders at the root directory. You can determine if the .bacpac file is present or if further navigation is required.
- If the .bacpac file isn’t in the root directory, use the
cdcommand to move into the relevant directory:cd directory_name- Use the
lscommand again to list the files in this directory until you find the .bacpac file.
- Use the
Download the .bacpac File
- Once you locate the file, use the
getcommand to download it:get filename.bacpac- This will download the file to your local directory.
- After the download is complete, type
exitto close the SFTP session:exit
Troubleshooting and Security
Because Azure often uses a combination of the storage account name and the user’s login to authenticate and organize access to the Blob storage, it is important to ensure you are passing the correct credentials during authentication. Pay attention to any prefixes that may be required in your host/username.
Connection Issues
Double-check the hostname, port, username, and password if the connection fails. Ensure the username is correct and or includes any necessary prefix.
Permissions Errors
Verify that the user has the correct permissions on the server to access the .bacpac file.
Firewall or Security Settings
If you encounter connection problems, check if a local firewall or security software is blocking the SFTP connection and adjust settings as needed. IT or another technical resource may be needed to assist with this.
Security Best Practices
Always handle passwords securely, using encrypted emails for transmission.
Keep the SFTP client updated to avoid security vulnerabilities.