add readme

This commit is contained in:
root 2024-08-16 15:41:48 +02:00
parent 8bb29018d5
commit acd74ff35b
2 changed files with 28 additions and 2 deletions

27
README Normal file
View File

@ -0,0 +1,27 @@
La Moulinette de transfert
==========================
By GoodWood
Packages:
=========
rsync
postgresql
Variable a renseigner
======================
FILE_TO_TRANSFER
DESTINATION_USER
DESTINATION_PATH
Tuto
====
./exec.sh
(lance les commande : "./transfert.sh rsync" et "./transfert.sh scp" ainsi que "cat report.txt")
les résultats sont dans report.txt

View File

@ -2,7 +2,7 @@
# Variables
FILE_TO_TRANSFER="testfile1.img"
DESTINATION_USER="root@10.20.30.15"
DESTINATION_USER="root@192.168.9.105"
DESTINATION_PATH="/mnt/"
TRANSFER_METHOD=$1
REMOVE_REMOTE="rm -r $DESTINATION_PATH*"
@ -10,7 +10,6 @@ LOGFILE="transfer_log.txt"
DATE=$(date +"%Y%m%d")
STIME=$(date +"%Y/%m/%d - %H:%M:%S")
i=1
rm $LOGFILE
# Fonction pour démarrer le transfert
start_transfer() {