It is best practice to have fault-tolerant and robust storage for your static web files, such as images or css files. Ideal product for those services is AWS S3

It can be done in multiple ways, for example by syncing your file system to S3.

Another way is to solve this on application level, so your application will copy files to S3 and modify links to use S3 path instead of local storage.

If you are using Wordpress, here is a great plugin called AWS for Wordpress

After you install it, you can install Amazon S3 and Cloudfront plugin.

The installation is quite straightforward and once you submit your credentials (Public/Secret key), you can create new S3 buckets or use existing ones.

After this, all new media files will be automatically stored into your S3 bucket and Wordpress will start using S3 for source of media files.

AWS S3