<commit_before>===========================
Making a backup for Gandalf
===========================

You can use the misc/backup.bash script to make a backup
for authorized_keys and repositories files created by gandalf.

This backup script sends these data to the s3.

First, let's install the s3cmd.

If you use ubuntu you can use apt-get to install s3cmd.

.. highlight:: bash

::

    $ sudo apt-get install s3cmd

If you use mac you can use homebrew to install s3cmd:

.. highlight:: bash

::

    $ brew install s3cmd


Now let's configure s3cmd, its need to set your amazon access and secret key:

.. highlight:: bash

::
    $ s3cmd --configure


For use backup.bash script to make a backup for authorized_keys:

.. highlight:: bash

::
    $ ./backup.bash s3://mybucket

And, if you wanto make a backup for authorized_keys and repositorie files:

.. highlight:: bash

::
    $ ./backup.bash s3://mybucket /var/repositories<commit_msg>Fixed rst format for making backup docs.<commit_after>===========================
Making a backup for Gandalf
===========================

You can use the misc/backup.bash script to make a backup
for authorized_keys and repositories files created by gandalf.

This backup script sends these data to the s3.

First, let's install the s3cmd.

If you use ubuntu you can use apt-get to install s3cmd.

.. highlight:: bash

::

    $ sudo apt-get install s3cmd

If you use mac you can use homebrew to install s3cmd:

.. highlight:: bash

::

    $ brew install s3cmd


Now let's configure s3cmd, its need to set your amazon access and secret key:

.. highlight:: bash

::

    $ s3cmd --configure


For use backup.bash script to make a backup for authorized_keys:

.. highlight:: bash

::

    $ ./backup.bash s3://mybucket

And, if you wanto make a backup for authorized_keys and repositorie files:

.. highlight:: bash

::

    $ ./backup.bash s3://mybucket /var/repositories
{'fraction_non_alphanumeric': 0.13218390804597702, 'fraction_numerical': 0.01044932079414838, 'mean_word_length': 3.4431554524361947, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3370397', 'n_tokens_mistral': 606, 'n_tokens_neox': 545, 'n_words': 245}