KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
lvm-restic-backup
★ 24
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
deletion-efficient-kmeans
:
Research prototype of deletion efficient k-means algorithms
LGT8F328P-Testing
:
LogicGreen LGT8F328P Microcontroller (AVR Mega328 compatible)
Wear-Gesture-Launcher
:
Gesture Launcher for Android Wear (Wear OS)
Twitter-Sentiment-Analysis
:
Full workflow to perform sentiment analysis on Twitter data. Contains crawlers, parsers, preprocessing, machine learning model creation, and various plots.
wolfram-engine-docker
:
Configures the Wolfram Engine for Docker
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
lvm-restic-backup
?
Download (.md)
# LVM restic & rescript backup This bash script backups logical volumes via [restic](https://restic.net/). To simplify repo handling, this script takes repo details from [rescript](https://gitlab.com/sulfuror/rescript.sh) config. ## Requirements - [restic](https://restic.net/) - [rescript](https://gitlab.com/sulfuror/rescript.sh) - [pigz](https://zlib.net/pigz/) - [awk]() ## Additional requirements for Restore - [pv](https://packages.debian.org/bullseye/pv) - [jq](https://packages.debian.org/bullseye/jq) - pip3 - python3: humanfriendly ## Optional Req. for Zabbix Monitoring - zabbix-sender - pip3 - python3: humanfriendly - Zabbix [Rescript Restic Backup Template](https://github.com/sebastian13/zabbix-template-rescript) ## How to use ```bash lvm-rescript [repo_name] [command] [lv_name|path-to-list] ``` ### Commands - `block-level-backup` creates a lvm-snapshot & pipes the volume using dd to restic - `block-level-gz-backup` creates a lvm-snapshot & pipes the volume using dd and pigz to restic - `file-level-backup` creates a lvm-snapshot & creates a restic backup using the mounted snapshot - `block-level-restore` restores dd stored logical volume(s) - `block-level-gz-restore` restores dd and pigz stored logical volume(s) - `file-level-restore` restores as ext4 disk using a volume mount ### Logical Volume - Provide the LV name without VG. - Provide the path to a list of LV names. LVs listed as #comment won't be backed up. - Omit, to backup all volumes, except \*bak, \*cache, \*swap, \*swp and \*tmp. ## How to install ```bash curl -o /usr/bin/lvm-rescript https://raw.githubusercontent.com/sebastian13/lvm-restic-backup/master/lvm-restic-backup.sh chmod +x /usr/bin/lvm-rescript ``` For Zabbix LVM Discovery also download the [script](https://github.com/sebastian13/zabbix-template-rescript): ```bash curl -o /etc/zabbix/scripts/rescript-lvm-discovery.pl https://raw.githubusercontent.com/sebastian13/zabbix-templates/master/rescript-restic-backup/scripts/rescript-lvm-discovery.pl chmod +x /etc/zabbix/scripts/rescript-lvm-discovery.pl ```