Added scripts for the Server.

This commit is contained in:
paoloar77
2022-08-01 15:49:27 +02:00
parent 241e4255d4
commit d902783336
30 changed files with 474 additions and 0 deletions

15
scripts/uploaddb_remoto.sh Executable file
View File

@@ -0,0 +1,15 @@
# Back Up Mysql Database phproject By oTTo
#!/bin/bash
DIRBACKUP=/root/backups
cd $DIRBACKUP
FF=$(ls -t * | head -1)
FILE=$DIRBACKUP/$FF
echo "Invia il File $FILE"
sshpass -f "/root/batch/cfgfiles/pfile" scp $FILE student@vps1:~/backups/