Category:Bash

From ElectroDragon
Jump to navigation Jump to search

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.