Project

raz

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Tool to backup and restore files.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 0.6
~> 10.0
~> 3.3

Runtime

~> 0.7
~> 2.13
 Project Readme

Raz

Build Status Gem Version Inline docs

Raz is simple tool to backup all files to some external hard drive and restoring with only four commands.

sudo gem install raz
raz backup /Volumes/Fry/Backup-2015-07-22

# ... and on another machine
sudo gem install raz
raz restore /Volumes/Fry/Backup-2015-07-22

Raz is designed to work on OS X and theoretically should work on Linux too.

Motivation

I hate mackup because of creating links to Dropbox or any other place and I am not big fan of Python.

I hate Time Machine because of backing up all files instead of specific ones (so when you want to reinstall to resolve some problems it doesn't work).

So I've created simple tool but with possibility to be powerful in near future.

Configuration file

Core of this tool is text file containing all files and directories should be backed up. There is no magic YAML, JSON, Config files with strange structure. Files uses Ruby syntax to define applications, their preferences and other valuable files. File must be located in home folder, exactly ~/.raz/config.rb. Here is simple example of this tool can do:

group 'Dot files' do
    path '~/.zprofile'
    path '~/.zshrc'
    # ...
    path '~/.git*' # everything starting with '.git' in home folder
end

app 'Sublime Text 3' do
  path '~/Library/Application Support/Sublime Text 3/'
  # ...
end

app 'Xcode' do
    path '~/Library/Developer/Xcode/UserData/CodeSnippets/'
    path '~/Library/Developer/Xcode/UserData/FontAndColorThemes/'
    # ...
end

group and app is same for now. Both supports adding path to files or folders to be backed up. You can also use wildcard expressions same as Dir.glob supports.

License

The tool is available as open source under the terms of the MIT License.