Open main menu
Freephile Wiki
Search
Changes
← Older edit
Newer edit →
Mysqldump
(view source)
Revision as of 13:18, 26 November 2014
35 bytes added
,
13:18, 26 November 2014
adds date
mkdir -p $backupdir;
fi
backup="$backupdir/dump-
$(date +%F).
$(hostname)-$DB.sql";
/usr/bin/mysqldump $DB > $backup;
ls -al $backup;
mysql $DB < $backup
</source>
[[Category:Database]]
Freephile
Bureaucrats
, confirmed,
Administrators
4,558
edits