Category:Bash

From ElectroDragon Wiki
Revision as of 23:24, 3 May 2020 by Chao (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Backup database to Github

  • autoupdate.sh
#!/bin/bash
cd /root/bk
mysqldump -u root -p RUNOOB runoob_tbl > dump.txt
git add .
git commit -m 'update' // git commit -m "`date '+%D'`"
git push


Format

# shared name
  [pihome]

This category currently contains no pages or media.