Quantcast
Channel: Drup.org - python
Viewing all articles
Browse latest Browse all 5

Drupal backup script

$
0
0

First it is necessary to create a backup user on the database which has (only) read access to everything. This is because its password will be embedded in the backup script which reduces security. This can be done with:

BKUSR=backup
BKPW=backuppassword
BKDIR=/var/www/dbbackup
mkdir -p $BKDIR
echo "GRANT SELECT, LOCK TABLES ON *.* TO '$BKUSR'@'localhost' IDENTIFIED BY '$BKPW'; FLUSH PRIVILEGES;" | mysql -u root -p

In the backup script, first some variables are set up

BKUSR=backup
BKPW=backuppassword
BKDIR=/var/www/dbbackup
SITE=cfaw.info

read more


Viewing all articles
Browse latest Browse all 5

Trending Articles


Girasoles para colorear


Vimeo 3.41.0 by Vimeo Inc


Sapos para colorear


OFW quotes : Pinoy Tagalog Quotes


UPDATE SC IDOL: TWO BECOME ONE


RE: Mutton Pies (frankie241)


Hagibis (1946) by Francisco V. Coching


Ka longiing longsem kaba skhem bad kaba khlain ka pynlong kein ia ka...


Vimeo Create - Video Maker & Editor 1.3.3 by Vimeo Inc


PREMATURE CAMPAIGNING – Meron ba nun?