ssh server /root/backup/script.sh scp server:/root/backup/backup_$(date +"%Y%m%d").tar . ssh server rm /root/backup/backup_$(date +"%Y%m%d").tar