backup or you want make the files also available through S3?
backup: https://restic.readthedocs.io/ and/or https://rclone.org/s3/ can copy files from linux to S3.
restic would store the files in a “restic repo”. you can’t access the files with “S3 tools”. but you get an incremantal backup of your files.
rclone.org simply syncs your files like rsync. so there’s no versioning unless you turn on S3 versioning. and deleted file will get delete as well. or not. depends on how you sync.
hope you get the point.
further reading:
plus
https://restic.readthedocs.io/en/latest/030_preparing_a_new_repo.html#amazon-s3