For accomplishing this, execute the following command:
This command will generate you a compressed dump file with the date information in the filename.
mysqldump -u username -p"password" database_name | gzip > $(date +"%Y-%m-%d")-database_name.sql.gz
This command will generate you a compressed dump file with the date information in the filename.
Keine Kommentare:
Kommentar veröffentlichen