I need to get back into using git. The hell is wrong with me!?

This commit is contained in:
Max G committed 2019-12-20 05:50:50 +00:00
1 parent 7b77bd37f3
commit 6fe39406b7
135 files changed
+53273 -699

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
BACKUPDIR="databaseBackupPi"
cd ..
mkdir -p $BACKUPDIR
cd $BACKUPDIR
NOW=$(date +"%Y-%m-%d_%H-%M")
ssh [email protected] -p 13328 "mysqldump --all-databases --user root -p***REMOVED***" > "backup-$NOW.sql"
cp "backup-$NOW.sql" "/mnt/Windows Data/DatabaseBackups/backup-$NOW.sql"
echo "Database Backup Complete"
#Restore DB
# copy file over, run restore
# scp -P 13328 backup-2019-12-04_03-00.sql [email protected]:/home/mab
# mysql -u root -p < backup-2019-12-04_03-00.sql