This question already has an answer here:
I'm wanting to do an incremental backup from my Linux computer to server. I've made the ssh link and I can at least get RSYNC to load the files incrementally, which I plan to do daily using cron.daily, but I want the server (Synology 213j) to take care of tarring the file, though - in my mind - I think it would be fine for my computer to tell the server to TAR the file every week and then put it in weekly, then tar it every month, and finally every two months.
The code I found that sounded somewhat like it might work is this example.
ssh firstname.lastname@example.org "tar cvpfz - / --exclude="tmpl" | ssh email@example.com "cat > /media/shared/backup/iphone/iphone_bak_$today.tgz"
However, this looks like it's piping an iPhone to a server backup and it's probably much more complicated than I'll actually need.
Bonus question: would I be better off trying to run the TAR code on the server itself?