#!/bin/bash BACKUP=/data/backup/$(date +%Y%m%d).tar.gz echo Fetching $BACKUP scp -pq -P 2222 "usertk421@noddybox.co.uk:/$BACKUP" $HOME/backup echo Removing old backups cd $HOME/backup find . -mtime +10 -print -exec rm {} \;