Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/metaory/xback
:sparkles: A tiny backup and restore script
https://github.com/metaory/xback
backup backup-script backup-tool backup-utility bash cli command-line mxc restore-backups restore-utility
Last synced: about 17 hours ago
JSON representation
:sparkles: A tiny backup and restore script
- Host: GitHub
- URL: https://github.com/metaory/xback
- Owner: metaory
- Created: 2023-04-09T03:24:49.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-04-16T15:08:33.000Z (over 1 year ago)
- Last Synced: 2024-08-01T09:25:19.284Z (3 months ago)
- Topics: backup, backup-script, backup-tool, backup-utility, bash, cli, command-line, mxc, restore-backups, restore-utility
- Language: Shell
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# simple-backup
A very very simple (under 30 LoC) **backup** and **restore** tool written in pure Bash# Usage
- link executables to your bin path
- update the config `cp sample.mbackup.conf mbackup.conf`
- place the config in a clean git directory- run `mbackup`
- looks for a `config` file in current working directory,
- parses the config
- copy each file/dir of config path to `./data`- run `./mrestore`
- looks for a `./config` file in current working directory,
- parses the config
- restore each entry if exists in `./data`# Sample Config
```cfg
# AWM
/home/meta/.config/awesome/rc.lua
/home/meta/.config/awesome/mtheme.lua
/home/meta/.config/awesome/mlib# Kitty
/home/meta/.config/kitty# Tmux
/home/meta/.config/tmux# Alacritty
/home/meta/.config/alacritty
```
# How does it works
- It parses the config for paths
- Copy the path _directory/file_ to `./data` with all slashes replaced with `_`For example path of
`/home/meta/tmp/js` will go to `./m.dotfiles/data/_home_meta_tmp_js`