MySQL Forums
Forum List  »  Backup

Re: how to NOT overwrite export sql file using mysqldump line
Posted by: Peter Brawley
Date: July 04, 2016 10:05PM

One way is to name the .sql file uniquely, eg based on the date ...

for /f "tokens=2-4 delims=/- " %%a in ('date /t') do set XDate=%%c%%a%%b
mysqldump ... >%1_%XDate%.sql

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: how to NOT overwrite export sql file using mysqldump line
1336
July 04, 2016 10:05PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.