https://github.com/rooyca/template-backups
my backups made easy
https://github.com/rooyca/template-backups
backup dotfiles script
Last synced: 11 months ago
JSON representation
my backups made easy
- Host: GitHub
- URL: https://github.com/rooyca/template-backups
- Owner: Rooyca
- License: unlicense
- Created: 2023-08-10T17:34:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-10T20:48:30.000Z (over 2 years ago)
- Last Synced: 2025-01-16T01:54:54.727Z (about 1 year ago)
- Topics: backup, dotfiles, script
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# template-backups
## Checklist
- [ ] SET THE REMOTE REPO TO PRIVATE!!!
- [ ] Dotfiles in `~/.config`
- [ ] Folders in `~/.local/share/`
- [ ] Bookmarks
- [ ] Fonts
- [ ] Themes
- [ ] `~/.ssh` folder¹
- [ ] PGP Keys²
- [ ] Program & packages names
- [ ] system
- [ ] npm
- [ ] ruby
- [ ] pip
- [ ] Others
- [ ] ...
---
1. Even if you set this repository to private, you should not store the `~/.ssh` folder on GitHub.
2. Just like with the `~/.ssh` folder, you should not store PGP keys on GitHub.
## Running the script
```bash
chmod +x rookup.sh
./rookup.sh
```
|Variable|Description|Default|
|---|---|---|
|`DONT_BACKUP`|Directories to ignore (separated by ',')||
|`BACKUP_DIR`|Directory to store the backup|`~/rokup`|
If you want to add more directories to ignore, you can do it like this:
```bash
export DONT_BACKUP="pnpm,gem,Trash"
```
## PGP Keys
### Exporting
```bash
gpg --export-secret-keys > private.key
gpg --export > public.key
```
### Importing
```bash
gpg --import private.key
gpg --import public.key
```