{"id":1219,"date":"2020-09-21T14:55:50","date_gmt":"2020-09-21T14:55:50","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2020\/09\/21\/4466851-how-to-upload-a-backup-using-ssh-at-hostinger\/"},"modified":"2026-09-15T10:17:40","modified_gmt":"2026-09-15T10:17:40","slug":"4466851-how-to-upload-a-backup-using-ssh-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/4466851-how-to-upload-a-backup-using-ssh-at-hostinger\/","title":{"rendered":"How to upload a backup using SSH at Hostinger"},"content":{"rendered":"<p>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.<\/p><h3>Before you start<\/h3><ul>\n<li><a href=\"https:\/\/www.hostinger.com\/support\/1583245-how-to-connect-to-a-hosting-plan-via-ssh-in-hostinger\/\">Connect to SSH<\/a> after ensuring that <a href=\"https:\/\/www.hostinger.com\/support\/1583645-how-to-enable-ssh-access-in-hostinger\/\">SSH is enabled<\/a>.<\/li>\n<li>If you&rsquo;d rather upload through Hostinger dashboard or File Manager instead, see <a href=\"https:\/\/www.hostinger.com\/support\/1884234-how-to-upload-backups-at-hostinger\/\">how to upload backups at Hostinger.<\/a><\/li>\n<\/ul><h2 id=\"h-upload-your-backup-via-ssh\">Upload your backup via SSH<\/h2><p class=\"no-margin\">To<b> upload your files<\/b>, use the <code>scp<\/code> command with the following format:<\/p><pre><code>scp -P 65002 home\/user\/Desktop\/[filename] username@IP:path\/to\/backup<\/code><\/pre><p class=\"no-margin\">Replace the placeholders with your specific backup information:<\/p><ul>\n<li>\n<p class=\"no-margin\"><b>home\/user\/Desktop\/[filename]<\/b> &ndash; the local path to the file and its name<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>username@IP<\/b> &ndash; your hosting plan&rsquo;s username and the hosting IP. You can find this information in the <b>SSH details<\/b> section of Hostinger dashboard<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>path\/to\/backup<\/b> &ndash; the path on your hosting plan where you want to upload the file. Make sure to start from <b>\/home<\/b><\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">Let&rsquo;s go over an example on a Windows computer:<\/p><ul>\n<li>\n<p class=\"no-margin\">Local path and filename: <b>C:\/Users\/MyUser\/Desktop\/File.txt<\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Hosting username and IP: <b>u123456789@185.185.185.185<\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Hosting path: <b>\/home\/u123456789\/domains\/domain.tld\/public_html<\/b><\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">The end result would look like this:<\/p><pre><code>scp -P 65002 C:\/Users\/MyUser\/Desktop\/File.txt u123456789@185.185.185.185:\/home\/u123456789\/domains\/domain.tld\/public_html<\/code><\/pre><p class=\"no-margin\">Once you execute the command, you&rsquo;ll be prompted to enter your <b><a class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/6440760-how-to-change-an-ssh-password-on-hostinger-hpanel\/\" target=\"_blank\" rel=\"noopener\">SSH password<\/a><\/b>. Type the password, press Enter, and the upload process will begin.<\/p><p class=\"no-margin\"><b>Additional resource<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\"><b><a class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/tutorials\/linux-scp-command\/\" target=\"_blank\" rel=\"noopener\">How to Use the SCP Command for File Transfer<\/a><\/b><\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Uploading files from your local device to your hosting with SSH<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[272],"tags":[],"class_list":["post-1219","post","type-post","status-publish","format-standard","hentry","category-uploading-a-backup"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/4466851-how-to-upload-a-backup-using-ssh-at-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/4466851-como-cargar-una-copia-de-seguridad-usando-ssh-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/4466851-comment-telecharger-une-sauvegarde-en-utilisant-ssh-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/4466851-bagaimana-cara-upload-backup-dengan-ssh-di-hostinger\/","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/4466851-como-fazer-upload-de-um-backup-com-ssh-no-hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1219"}],"version-history":[{"count":2,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1219\/revisions"}],"predecessor-version":[{"id":15002,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1219\/revisions\/15002"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}