Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jhchabran/ruba
Experimenting with ruby and backups
https://github.com/jhchabran/ruba
Last synced: about 19 hours ago
JSON representation
Experimenting with ruby and backups
- Host: GitHub
- URL: https://github.com/jhchabran/ruba
- Owner: jhchabran
- License: mit
- Created: 2009-12-08T23:04:56.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2009-12-09T20:25:03.000Z (almost 15 years ago)
- Last Synced: 2024-10-08T18:41:44.930Z (about 1 month ago)
- Language: Ruby
- Homepage:
- Size: 93.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- License: LICENSE
Awesome Lists containing this project
README
= ruba
Use case, backuping my domUs with plain images and scp'ing them once a week elsewhere.
This started as a pretty simple script, but I got hooked and got plenty ideas about backups. It's still messy in my head, we'll see where it goes.
./ruba /dev/loldisk
sudo lvcreate --snapshot --size 5G --name loldisk_backup /dev/loldisk
sudo dd if=/dev/loldisk_backup of=/tmp/loldisk.img bs=64k
sudo lolcat /tmp/loldisk.img /dev/ceiling_cat
sudo rm /tmp/loldisk.img
sudo lvremove /dev/loldisk_backup== TODO
* lvcreate -L parameter takes MB as default unit whereas it's bytes here
* think about crafting a framework with all of that== Note on Patches/Pull Requests
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.== Copyright
Copyright (c) 2009 JH. Chabran. See LICENSE for details.