Open main menu

Changes

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]]
4,558

edits