This commit is contained in:
root 2020-01-25 12:18:48 -05:00
parent 63b93aec1c
commit f1c2292ceb

View File

@ -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"