Project

General

Profile

« Previous | Next » 

Revision 6de7931d

ID6de7931db647e470700bbf976af3c22e4db97341
Parent 66a6a58a
Child 4ced3800

Added by Chris Jones over 10 years ago

Add a script that:

1) Dumps system metadata related tables from the Coordinating Node that the script is run on into a .sql dump file.
2) Modifies the SQL dump to append a prefix to entity names based on the hostname of the originating CN (e.g. ucsb_)
3) Transfers the SQL dump in bulk via rsync to the target machine where the dump will be restored to create the new per-CN tables where the tidy merging will happen.
Note that (4) is a manual step to run the SQL dump script on the target machine.
Also, this script requires that the postgres user on each machine the script runs on has an authorized_keys file in ~/.ssh that includes the public SSH key of the postgres user on the target machine, and the target machine postgres user has the private SSH key installed correctly.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

Add picture from clipboard (Maximum size: 14.8 MB)