Back Up All AFS Components - AFS - Technical Notes

AFS Backup and Restore

Product
AFS
AFS_Version
7.11
Category
Technical Notes
language
English
audience
public

It is possible to save most data, including logs and potentially large databases, of all AFS components for any further use.

To back up all your AFS components, perform the following procedure:

  1. Edit the my-hosts-config.yml file:

    defaults:
    backup_dir: /usr/local/afs7/backup
    backup_format: tgz
    tmp_dir: /tmp
    ssh:
    user: antidot
    key: /home/antidot/.ssh/default_ssh_key_file
    hosts:
    - hostname: my_bo.antidot.net
    roles:
    - bo
    - um
    bo:
    user: antidot
    password: secret_password
    - hostname: my_idx.antidot.net
    roles:
    - idx
    - hostname: my_reply.antidot.net
    roles:
    - reply
    - hostname: my_nerada.antidot.net
    roles:
    - nerada

  2. Run the following command:

    As root user

    afs_backup_tool --action backup --data-config data-config.yml --hosts-config my-hosts-config.yml

The backup files are stored in the default backup directory defined in the my-hosts-config.yml file.