What command would I use in the terminal to backup files onto the server? I already have the LFTP installed.

  • you mean lftp as ftp client? where you've installed it, on your client or on the server? You want to backup the server and store the files on your client or want to backup the client and store the files on the server? – Wolfgang Sep 9 '15 at 14:06
  • I have websites on godaddy's dedicated server and I want to download those websites periodical into a folder on the ubuntu server. – lnewt Sep 9 '15 at 14:10

on your server (there the original files you want to backup are) you need a ftp server running, then you can just type: lftp sftp://user:password@host -e "get remote-file.name; bye" (see get a file to or from a remote server via command line or script on your client (on which you installed lftp)....

  • So I tried this and it says "access failed: no such file" I used ls I saw the file there but I want to download the entire directory not just a file. – lnewt Sep 9 '15 at 14:37
  • Also, where is this command sending my file. Don't I have to lcd first? – lnewt Sep 9 '15 at 14:51
  • thanks though this helped I was missing quotation marks and to get the directory its: mirror "public_html" – lnewt Sep 9 '15 at 15:29

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.