M
M
Maxim Siomin2020-07-01 13:39:38
Data storage
Maxim Siomin, 2020-07-01 13:39:38

How to store a file online?

I have a simple python program with a database in it. It may be updated regularly. They are just txt files. I can go into this program from one PC and update the txt file. And from another PC. I need to make sure that these files are synchronized and stored somewhere on the Internet. And when updating a file on one PC, the other should immediately receive a new txt file

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
milssky, 2020-07-01
@milssky

Dropbox, Yandex.Disk, Google Drive etc

C
cython, 2020-07-01
@cython

You need a server that will do it. You can use ftp, or you can write your own server that is constantly connected to clients and that sends an updated file when it changes.

R
Roman Mirilaczvili, 2020-07-01
@2ord

For example, using the S3 protocol. The files are then stored (usually) in the cloud. Access them with an API key.
If it’s enough to update the files once and that’s it, then it’s enough to use the AWS Lambda service. Suitable for rare / infrequent program launch.

The AWS Lambda Free Tier includes 1M free requests and 400,000 GB-seconds of compute per month.

Another option is to use a cloud DBMS instead of files. If you go a little further, then use cloud hosting.
And if you want to do it old-fashioned and unsafe, then the FTP protocol is enough.

J
justhostRU, 2020-07-08
@justhostRU

you can order a VPS and deploy there, for example, ftp.
if speed is not critical, but security is critical, then sshfs.
or another hosting option with nextcloud. nextcloud supports webdav, which is good enough for most backends.
> make sure that these files are synchronized,
+ install the off-client nextcloud, for synchronization.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question