Created
January 31, 2016 04:05
-
-
Save ironprice91/05b2ceab7fbb4b94eee6 to your computer and use it in GitHub Desktop.
idea for backups and storing them as a repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # path to .zshrc | |
| ZSHRC_FILE="~/.zshrc" | |
| BACK_UP_EXT="{,.bak}" | |
| eval \cp ${ZSHRC_FILE}${BACK_UP_EXT} |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://www.rapidtables.com/code/linux/cp/cp-overwrite.htm
http://askubuntu.com/questions/306176/hourly-git-push