-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate whether we can automatically detect changes in subdir at root of public area #639
Comments
The Tencent back up script is executed on a server which contains a NFS mount of the directory containing the GigaDB dataset files. The issue is that Some more details on the use of inotify is available in the back up procedure document. |
Hi @pli888, I see. To use message queue we would need to have access to the machine exposing the NFS share which may not be possible. Another approach is incremental backup: Instead of copying dataset files that we know have changed, we always copy their fixed parent directory and the sync tool figures what are the new files (they will use md5 to skip files arleady uploaded) extract from coscmd docs:
https://intl.cloud.tencent.com/document/product/436/10976#uploading-a-file-or-folder extract from rclone docs:
|
@rija It seems CNGB's Given it's likely we would not be able to access the machine exposing the NFS share then let's use incremental backup automated via a cron job to update GigaDB backups. I think its prudent if I first create some smoke tests to check incremental backup functionality is working as we expect with a test Tencent COS account? |
Hi @pli888, Another scenario to think of is what happen if a backup fails mid-way and partial file ends up in the destination bucket. In any case, having smoke tests covering all the use cases is a good idea. With incremental backup in use, a cronjob should be indeed enough for automation. |
Hi @rija
It won't be possible to restore different versions of files since versioning is not switched on for the bucket provided to us:
Based on the documentation, if a file upload process fails then the partial file will be overwritten in the next back up process unless versioning has been enabled for the bucket.
To automate smoke tests to check backup functionality, the |
Hi @pli888, That sounds good to me. |
#639 has been moved to "Under Review" since we have ascertained that we cannot use |
specific to Tencent backup setup, not needed anymore |
Can use use a script attached to a inotify mechanism
This task is part of Story #600
The text was updated successfully, but these errors were encountered: