Upload a backup using SSH at Hostinger, a fast and efficient way to transfer files from your local computer to the server, especially for larger files. This method requires a Premium Web hosting plan or above.
Before you start
- Connect to SSH after ensuring that SSH is enabled.
- If you’d rather upload through hPanel or File Manager instead, see how to upload backups at Hostinger.
Upload your backup via SSH
To upload your files, use the scp command with the following format:
scp -P 65002 home/user/Desktop/[filename] username@IP:path/to/backupReplace the placeholders with your specific backup information:
-
home/user/Desktop/[filename] – the local path to the file and its name
-
username@IP – your hosting plan’s username and the hosting IP. You can find this information in the SSH details section of hPanel
-
path/to/backup – the path on your hosting plan where you want to upload the file. Make sure to start from /home
Let’s go over an example on a Windows computer:
-
Local path and filename: C:/Users/MyUser/Desktop/File.txt
-
Hosting username and IP: u123456789@185.185.185.185
-
Hosting path: /home/u123456789/domains/domain.tld/public_html
The end result would look like this:
scp -P 65002 C:/Users/MyUser/Desktop/File.txt u123456789@185.185.185.185:/home/u123456789/domains/domain.tld/public_htmlOnce you execute the command, you’ll be prompted to enter your SSH password. Type the password, press Enter, and the upload process will begin.
Additional resource