Difference between revisions of "Technical"

From ICA-AtoM
Jump to navigation Jump to search
Line 13: Line 13:
 
# Become `administrator` user: `sudo -u administrator bash` (backups are done as the administrator user, which is a local vs. an LDAP user)
 
# Become `administrator` user: `sudo -u administrator bash` (backups are done as the administrator user, which is a local vs. an LDAP user)
 
# Try ssh to the server being backed up: `ssh icaatom@ica-atom.org`
 
# Try ssh to the server being backed up: `ssh icaatom@ica-atom.org`
## If the server requires a password, append the administrator user's ssh public key to the server's `authorized_keys` file: `ssh icaatom@ica-atom.org cat \>\> .ssh/authorized_keys < /home/administrator/.ssh/id_dsa.pub`
+
## If the server requires a password, append the administrator user's ssh public key to the server's `authorized_keys` file:
 +
ssh icaatom@ica-atom.org cat \>\> .ssh/authorized_keys < /home/administrator/.ssh/id_dsa.pub
 
# Change directory to `/home/administrator/src`: `cd /home/administrator/src`
 
# Change directory to `/home/administrator/src`: `cd /home/administrator/src`
 
# Edit the `site5-backup` script: `gvim site5-backup` or `emacs site5-backup`
 
# Edit the `site5-backup` script: `gvim site5-backup` or `emacs site5-backup`

Revision as of 12:51, 17 September 2007

Please note that ICA-AtoM is no longer actively supported by Artefactual Systems.
Visit https://www.accesstomemory.org for information about AtoM, the currently supported version.

Technical To Do

LDAP

To create LDAP users, login to phpLDAPadmin with DN cn=admin,dc=artefactual,dc=com

  • Double check user id attribute is not 1000
  • Check username and home directory match.

SQL Backup

  1. ssh to amos.artefactual.com (use -X to forward X clients)
  2. Become `administrator` user: `sudo -u administrator bash` (backups are done as the administrator user, which is a local vs. an LDAP user)
  3. Try ssh to the server being backed up: `ssh icaatom@ica-atom.org`
    1. If the server requires a password, append the administrator user's ssh public key to the server's `authorized_keys` file:
ssh icaatom@ica-atom.org cat \>\> .ssh/authorized_keys < /home/administrator/.ssh/id_dsa.pub
  1. Change directory to `/home/administrator/src`: `cd /home/administrator/src`
  2. Edit the `site5-backup` script: `gvim site5-backup` or `emacs site5-backup`
  3. Add new line with:
    • Server username
    • Server address
    • Database username
    • Database password
    • Database name
    • Destination file