Category:Bash

From ElectroDragon Wiki
(Redirected from Bash)

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.