How to Upload a Backup Using SSH
Uploading backup or transferring files with SSH
Updated over a week ago

If you are an experienced user and feel comfortable using SSH, this article is just for you. For easier alternatives, you can backup via File Manager (Beta), using an FTP client, or with the Import Website feature on hPanel.

SSH is a really efficient and fast way of transferring files from your local computer to the server. To start the upload using this method, you must be logged out from your server.

Open Terminal (Linux/macOS) or Command Prompt/PowerShell (Windows) on your local computer and upload your files using the command format below:

scp -P 65002 /home/user/Desktop/[filename] username@IP:the/path/to/backup

Replace /home/user/Desktop/[filename] with your local path to the file itself. An example command from a Windows computer would look like this:

scp -P 65002 C:/Users/MyUser/Desktop/File.txt u123456789@
  • Once you run this command, you will be asked for the FTP account password. Insert the password, then press Enter.

  • Wait until the upload is done, and you will be good to go

That’s it, now you know how to upload files to your hosting using SSH 😊

Additional resources:

Did this answer your question?