Tutorial assumes that the source file to be imported into the database is already on the server, or the source file can be uploaded using sftp. Alternatively, here is a little help.
sftp user@host.hukot.net
In the sftp session, upload the file with put databasename.psql and close the session with exit.
Import using SSH #
Tutorial for generating SSH keys and setting up SSH connection can be found here..
You can find database information in administration of hosting services in the database overview.
If the file is located other than in the root directory, we must specify the relative path to the file.
To import a database file using SSH, type in the console:
psql -U databasename -d databasename -h ftp.vix.hukot.net -f filename.psql -W
To import data into the database, you will need to enter the database password.
If the database is on the same server, you can leave out -h.
If the database is on another server in the local network, write its IP address after -h.