Added scripts for the Server.
This commit is contained in:
15
scripts/uploaddb_remoto.sh
Executable file
15
scripts/uploaddb_remoto.sh
Executable 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/
|
||||
Reference in New Issue
Block a user