How to separate uploaded files to another server

Hello, I understand it’s possible to save files to S3.
but how about if I want same files to another linux server?