Skip to content

toshikisaito1005/mycasa_scripts

Repository files navigation

README for mycasa_scripts

stats_commit_today stats_commit_yesterday stats_commit_lastweek stats_commit_202006 stats_commit_202005

sync_github.sh

#!/bin/bash
set -e
content_dir=/<path_to_sync_github.sh>/

set -x
cd "$content_dir"
git rm -rf --cached .
git init

git add "mycasa_scripts_active"
git add "mycasa_scripts_done"
git add "myradex_scripts"
git add .gitignore
git add README.md
git add stats_github*.sh
git add mygithub_stats

git commit -m "Commit at $(date "+%Y-%m-%d %T")" || true
git push -f origin master:master

crontab -e

*/5 * * * * /bin/sh /<path_to_sync_github.sh>/sync_github.sh >> /<path_to_sync_github.sh>/sync_github.log 2>&1
59 */2 * * * /bin/rm -rf /<path_to_sync_github.sh>/sync_github.log
* */6 * * * /bin/sh /<path_to_sync_github.sh>/stats_github.sh
*/30 * * * * /bin/sh /<path_to_sync_github.sh>/stats_github_today.sh

backup

  1. institute cloud
  2. WD My Pssport 2TB HDD (Time Machine)
  3. TOSHIBA 1TB HDD (some important data)
  4. I-O DATA 500 GB HDD (some important data mirror)

About

For the purpose of backup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published