{"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":"2020-09-21T14:55:50","modified_gmt":"2020-09-21T14:55:50","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 class=\"no-margin\">SSH provides a fast and efficient way to transfer files from your local computer to the server, especially when dealing with larger files. If your hosting plan is <b>Web Premium or greater<\/b>, you can use this method &#128640;<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">First, ensure that <b><a href=\"\/support\/1583645-how-to-enable-ssh-access\" target=\"_blank\" class=\"intercom-content-link\">SSH access is enabled<\/a> <\/b>on your hosting plan. Then, open the <b>Terminal <\/b>if your device is Linux\/Mac or <b>Command Prompt<\/b> or <b>PowerShell<\/b> for Windows. <\/p><p class=\"no-margin\">\n<\/p><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 hPanel<\/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><a href=\"mailto:u123456789@185.185.185.185\" target=\"_blank\" class=\"intercom-content-link\">u123456789@185.185.185.185<\/a><\/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 href=\"\/support\/6440760-how-to-change-ssh-password-on-hpanel\" target=\"_blank\" class=\"intercom-content-link\">SSH password<\/a><\/b>. Type the password, press Enter, and the upload process will begin.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\"><b>Additional Resources<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\"><b><a href=\"https:\/\/www.hostinger.com\/tutorials\/using-scp-command-to-transfer-files\/\" target=\"_blank\" class=\"intercom-content-link\">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-PT","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":0,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1219\/revisions"}],"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}]}}