<commit_before>#!/bin/sh
#
# Setup source server where backups are retrieved from
# This must be performed after backup server steps

source "/opt/meza/config/core/config.sh"
source "$m_scripts/shell-functions/base.sh"
rootCheck # function that does the checks for root/sudo

# Get test setup file for this test
test_name="remote-backup"
source "$m_test/$test_name/import-config.sh"


# Create user for backup
source "$m_scripts/shell-functions/add-user.sh"
add_ssh_user "$backup_user_name"

# Apply public key (which was transferred from backup server) to authorized_keys
cat "$temp_pub_key_path" >> "/home/$backup_user_name/.ssh/authorized_keys"
rm "$temp_pub_key_path"
chmod 600 "/home/$backup_user_name/.ssh/authorized_keys"
<commit_msg>user needs to chown authorized_keys<commit_after>#!/bin/sh
#
# Setup source server where backups are retrieved from
# This must be performed after backup server steps

source "/opt/meza/config/core/config.sh"
source "$m_scripts/shell-functions/base.sh"
rootCheck # function that does the checks for root/sudo

# Get test setup file for this test
test_name="remote-backup"
source "$m_test/$test_name/import-config.sh"


# Create user for backup
source "$m_scripts/shell-functions/add-user.sh"
add_ssh_user "$backup_user_name"

# Apply public key (which was transferred from backup server) to authorized_keys
cat "$temp_pub_key_path" >> "/home/$backup_user_name/.ssh/authorized_keys"
rm "$temp_pub_key_path"
chmod 600 "/home/$backup_user_name/.ssh/authorized_keys"
chown "$backup_user_name" "/home/$backup_user_name/.ssh/authorized_keys"
{'fraction_non_alphanumeric': 0.10723350253807107, 'fraction_numerical': 0.0038071065989847717, 'mean_word_length': 5.682203389830509, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2546065', 'n_tokens_mistral': 513, 'n_tokens_neox': 491, 'n_words': 139}