Code:
tar -pczf `date +%Y%m%d`home.tar.gz `date +%Y%m%d`home/
I don't understand the part highlighted in blue: have you got a directory whose name is
Code:
20120515home/
20120516home/
20120517home/
...
every day? Once you have solved the tar creation issue, you can spare the scp commands by feeding the remote machine through standard input over ssh, e.g.
Code:
tar -cpzf - /source_dir | ssh user@host "cat > /destination/$(date +%Y%m%d)_source_dir.tar.gz"
Hope this helps.