Skip to content
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

Setup on the alternative bastion (bastion-alt.gigadb.host) a daily rclone sync job for keeping user dropboxes in sync between live and alternative #2000

Open
4 tasks done
Tracked by #1958
rija opened this issue Aug 13, 2024 · 1 comment

Comments

@rija
Copy link
Contributor

rija commented Aug 13, 2024

## User Story

As a curator
I want to ensure the user dropboxes area is backed up
So that I have piece of mind when I work on files on the dropboxes

Acceptance criteria

Given there is a dataset being curated
When there are new files added
then the backup should have the new files

Given there is a dataset being curated
When there are new files modified
then the backup should have the updated files

Given there is a dataset being curated
When files are deleted from the user dropbox by the curators
then the backup should also delete the files

Additional infos

  • sync files from the live infrastructure into the alternative infrastructure.
  • the process runs on the alternative infrastructure
  • runs daily
  • rclone sync does the sync
  • bats test to test the correctness of the configuration

Tasks

@rija
Copy link
Contributor Author

rija commented Aug 14, 2024

Hi @pli888, @kencho51,

the command I used to do the manual sync:

$ rclone --config rclone_upstream.conf -v  sync live-bastion:/share/dropbox/ /share/dropbox/

and the config used for it, rclone_upstream.conf looks like this:

[live-bastion]
type = sftp
host = bastion.gigadb.host
user = centos
key_file = /home/centos/.ssh/upstream_from_alt-live
shell_type = unix
md5sum_command = md5sum
sha1sum_command = sha1sum

The public part of that ssh key was manually added to the current production bastion's authorized_key file.

I'll update the various tasks with more details based on the above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants