I am using s3fs to mount a S3 buckets on an Ubunutu server to store my daily backups there.
Considering security this would allow a potential hacker to delete all my backups from the mounted bucket.
Is there a way to prohibit that? Maybe mounting the bucket for write-only but not for deleting?
You should enable S3 buckets versioning:
I would also recommend you take a look at my project: RiFS, a userspace filesystem to mount Amazon S3 buckets. Our project is an alternative to “s3fs” project, main advantages comparing to “s3fs” are: simplicity, the speed of operations and bugs-free code. Currently the project is in the “beta” state, but it's been running on several high-loaded fileservers for quite some time.
Hope it helps !