This alias will create database backup with current date in filename:
Add this to your .bashrc
alias dbbck='mysqldump -u myusername -pmypassword mydatabase > mijalkodb_$(date +"%Y_%m_%d").sql'
Add this to your .bashrc
No comments:
Post a Comment