A
A
Alexander Sobolev2021-03-06 00:20:45
PHP
Alexander Sobolev, 2021-03-06 00:20:45

How to update files and data from different sources?

Hello!
I am writing a kind of file storage manager that combines several sources (both local and all kinds of clouds and FTP servers). There was a question of updating the data:
- checking files for physical existence
- checking for a match when uploading / transferring a file from their "storage" to the "storage"
- checking for the presence of a file (its url, name and other parameters) in the manager's database
, etc. .
Question: how to algorithmize checks? In the case of a local folder with 10 files on the server, this is more likely not a question: we scan the folder and parse the changes, but if we imagine that there can be a dozen connected servers (conditionally), and each of them has several hundred, or even thousands files that can be downloaded not only through the interface and access to which can be interrupted (ftp is not available, or someone simply deleted the file ..)
How to "check the clock" correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hint000, 2021-03-06
@hint000

https://ru.wikipedia.org/wiki/rsync
man rsync
man find
man md5sum

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question