add first draft boogie backup scripts
This commit is contained in:
1 parent
db2b9fbb38
commit
17494e3afb
6 files changed
+117
No files matched your search
@@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
|
||||
# this one makes a copy of the whole /var/www/html from boogiedev
|
||||
|
||||
todo!
|
||||
|
||||
SCRIPTPATH=$(dirname `realpath $0`)
|
||||
cd $SCRIPTPATH
|
||||
|
||||
# rsync source -> destination
|
||||
SOURCE_PATH=/var/www/virtual/boogie/html
|
||||
DEST_PATH_FILES=/mnt/bfds/rob/backup/server/boggiedev.net/var_www
|
||||
|
||||
# # ssh credentials
|
||||
PORT="22"
|
||||
KEY="${SCRIPTPATH}/boogie_keyless"
|
||||
USER_AT_HOST="boogie@spaceboyz.net"
|
||||
|
||||
# path of the database backups
|
||||
DEST_PATH_DB=/mnt/bfds/rob/backup/server/spaceboyz.net/mariadb
|
||||
|
||||
# EXCLUDE="--exclude-from exclude-list"
|
||||
|
||||
# ### Get all databases
|
||||
|
||||
# cd $DEST_PATH_DB
|
||||
# # kick off DB dumping
|
||||
# curl --insecure --silent https://rob.spaceboyz.net/backup_all_databases_cMxNrCTVLBPrNo6qaonojeejCvCepekwssh/dump_all_databases.php
|
||||
# # download DB dumps
|
||||
# curl --insecure --silent https://rob.spaceboyz.net/backup_all_databases_cMxNrCTVLBPrNo6qaonojeejCvCepekwssh/dumps.zip > dumps.zip
|
||||
# if [ -f dumps.zip ]
|
||||
# then
|
||||
# today=`date +%F`
|
||||
# mv dumps.zip all_databases_dump_$today.zip
|
||||
# else
|
||||
# echo "Datenbank Dump konnte nicht herunter geladen werden"
|
||||
# fi
|
||||
Reference in new issue
Block a user