backup_cr
Version, currently 0.5.45 versions
github.com/foi/backup-cr
Backup service written in crystal
2 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
backup_cr:
github: foi/backup-cr
version: ~> 0.5.4Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- foi
- Target
backup-crfrom src/backup-cr.cr
Dependencies
Runtime Dependencies
- router0.2.8github: tbrand/router.cr
README
backup-cr 
development in progress
HOW TO INSTALL
Deb-like
sudo su
apt install -y apt-transport-https
echo -e "deb https://repos.foifirst.me/backup-cr/debs stable main" > /etc/apt/sources.list.d/backup-cr.list
wget -O - https://repos.foifirst.me/foi.gpg | apt-key add -
apt update
apt install backup-cr
RPM-like
sudo su
cat << EOF > /etc/yum.repos.d/backup-cr.repo
[backup-cr]
name=backup-cr repo
baseurl=https://repos.foifirst.me/backup-cr/rpms
enabled=1
gpgcheck=1
skip_if_unavailable=1
gpgkey=https://repos.foifirst.me/foi.gpg
EOF
yum install backup-cr
FEATURES
- single executable with no dependencies
- backup files, lvm volumes, docker volumes with configurable gzip compression level
- save it to local path or remote path via sshfs and public key auth
- ability to custom hook for events
- ACL based on ip-adresses
- custom backup extension (simple ransomware protection)
- config via ENV variables or .env file
Installation
server
- create group with fixed group id: sudo groupadd -g 5000 backup-files
- create user with fixed id: sudo useradd -u 5000 -m -G backup-files backup-worker
- chown -R backup-worker:backup-files backup-files
backup fileserver
- create group with fixed group id: sudo groupadd -g 5000 backup-files
- create user with fixed id: sudo useradd -u 5000 -m -G backup-files backup-worker
- chown -R backup-worker:backup-files PATH_TO_BACKUP_FILES
client
Usage
TODO: Write usage instructions here
TODO
- Should work without lvm
- web ui
Contributing
- Fork it (https://github.com/foi/backup-cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- foi - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.5.4- Tagged
- Aug 6, 2021
- Commit
16366acd19fd- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/foi/backup-cr
Metadata
- Created
- Oct 3, 2026
- Updated
- Oct 19, 2026
- Synced
- Oct 19, 2026
- Versions
- 5