#Another solution where current is the latest backup created.#in the second command, ssh username@host is #NOT followed by colon:##!/bin/bashdate=`date "+%Y-%m-%d"`rsync -azP --link-dest=/path/to/home/backups/current \/path/to/source/folder \username@host:/path/to/home/backups/backup-$date