

#!/bin/bash

# Define user and IP for the source server
SOURCE_USER="cletedu"
SOURCE_SERVER="52.147.26.243"

# Define the source and destination directories and sync them
rsync -avz --progress "$SOURCE_USER@$SOURCE_SERVER:/home2/cletedu/public_html/var/data/" "/home/cletedu/public_html/var/data/" >> rsyncdata.log 2>&1
rsync -avz --progress "$SOURCE_USER@$SOURCE_SERVER:/home2/cletedu/public_html/web/assets/uploads/" "/home/cletedu/public_html/web/assets/uploads/" >> rsyncuploads.log 2>&1

echo "Rsync operation completed."


