to prevent in the future use our PrestaVault module. At installation it will create secure vault of your filesystem.
add cron or run manually to receive alerts of new/deleted/changed files
commit trusted change to vault
restore from vault untrusted change