Backup your website with rsync


If you want to back up a directory on a computer and only copy changed files to the backup computer instead of everything with each backup, you can use the rsync tool to do this. You will need an account on the remote computer that you are backing up from. Here is the command:

rsync -vare ssh jono@* /home/jono/backup/

Here we are backing up all of the files in /home/jono/importantfiles/ on to /home/jono/backup on the current machine.