Those files should only exist when you run this script more than one time on any day. I remove any previous backup files with.I unalias the Linux rm command because some web hosting companies like to make an alias of it.Those are all shown in uppercase just fill in your own username, password, etc. At the beginning of the shell script I set up all the variables that I need.That filename changes daily depending on the date.Script is run it will create a file named something like. Here’s a quick overview of what this shell script does: #mysqldump -opt -protocol=TCP -user=$Īn explanation of my MySQL database backup shell script # use this command for a database server on a separate host: # (3) do the mysql database backup (dump) # (2) in case you run this more than once a day, remove the previous version of the file # Attribution-ShareAlike 3.0 Unported License # This work is licensed under a Creative Commons
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |