diff --git a/backup.sh b/backup.sh index d77d567..9db81c4 100755 --- a/backup.sh +++ b/backup.sh @@ -42,4 +42,4 @@ rsync -vP -a "${bdir}"/ "${sshLoc}:backup/rsync/${servername}/" rm -rfv "${bdir}/"* # delete older than 2 days since there's already snapshots -ssh ${sshLoc} "find backup/rsync/$servername/ -type f -atime +2 -delete; find backup/rsync/$servername/ -type d -empty -delete" +ssh "${sshLoc}" "find backup/rsync/$servername/ -type f -atime +2 -delete; find backup/rsync/$servername/ -type d -empty -delete"