scripts/bash/backups/sync_soy_to_cloud.sh
2022-07-06 16:25:25 +02:00

30 lines
1.2 KiB
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
#  rsync_other_servers_from_soyoustart.sh
# --------------------- syncro des différents serveurs ---------------------
# ici on clone le dossier borg vers les autres serveurs BORG_FOLDER_SOYOUSTART
# tous les autres serveurs ont un dossier /home/tykayn/backup/serveurs-production contenant le nom de$
# 
# /home/tykayn/backup/serveurs-production/soyoustart
# /home/tykayn/backup/serveurs-production/peertube
# /home/tykayn/backup/serveurs-production/vps
# /home/tykayn/backup/serveurs-production/cloud
#
# ------- noms des serveurs --------
#
# CLOUD cloud.tykayn.fr
# SPARE peertube.cipherbliss.com
# VPS events.cipherbliss.com
# SOY www.cipherbliss.com
echo "############"
echo " ${date} syncro du dossier BORG backup de tk sur soyoustart vers Cloud"
echo "############"
SOURCE="/home/tykayn/backup/backup_land4to/*"
DESTINATION="tykayn@peertube.cipherbliss.com:/home/tykayn/backup/backup_land4to/"
rsync -avzP --perms --delete --progress $SOURCE -e ssh $DESTINATION
echo -e "${GREEN}############${NC}"
echo -e "${GREEN} ${date}syncro backup vers disque vers soyoustart cipherbliss.com ${NC}"