Skip to content

Instantly share code, notes, and snippets.

@icarrr
Created November 20, 2019 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icarrr/4e43fa52aba6d573eb40feb3b8e3ea1a to your computer and use it in GitHub Desktop.
Save icarrr/4e43fa52aba6d573eb40feb3b8e3ea1a to your computer and use it in GitHub Desktop.
Dump data osTicket on MySQL
localTime=$(date '+%Y%m%d_%H%M%S' -d "$(curl -s --head http://google.com | grep ^Date: | sed 's/Date: //g')")
mysqldump -u root -p --databases osTicket > dump-osTicket-$localTime.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment