#Back up your FTP site with SSH (excluding databases)
Sub in your URLs, username, and folder names. You can practically copy paste these into the terminal and it will work.
- SSH into the ftp and enter your password when asked:
ssh username@yourdomain.com
- List the directories:
ls
- Navigate to the folder you want to compress:
cd directoryname
- Run this command to tar the directory:
tar -vcf yourbackupfilename.tar .
- Copy the tar to a local folder:
scp -C username@yourdomain.com:/path/of-the-archive/yourbackupfilename.tar /home/mydirectory/backups/
If you have a wordpress and want to back up your site AND your database, visit this forum here.