From bf7cf1df201b1fdcb17465420b22a18404df30c8 Mon Sep 17 00:00:00 2001 From: raphanaud Date: Tue, 19 Oct 2021 09:28:09 +0200 Subject: [PATCH] sauvegarde --- sauvegarde/script2-tomcat | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 sauvegarde/script2-tomcat diff --git a/sauvegarde/script2-tomcat b/sauvegarde/script2-tomcat new file mode 100755 index 0000000..5765889 --- /dev/null +++ b/sauvegarde/script2-tomcat @@ -0,0 +1,8 @@ +#!/bin/bash +DAT=$(date "+%X") +fich="projetSDIS29_2.war" +chem="/home/aurelien.meunier/NetBeansProjects/projetSDIS29_2/dist/""${fich}" + +scp "${chem}" root@10.121.38.70:/usr/libexec/tomcat10/webapps +scp "${chem}" root@10.121.38.70:/root/tomcat/"${fich}"-"${DAT}" +