Rails is really a collection of pieces that can be put together to create a web app. You can enhance or replace many of the components - how you write views, how controllers work, and how you build models. While models are built on top of ActiveRecord in the
rbackup is a lightweight, rsync-powered backup utility that creates time-stamped backups.
It can save backups to your local filesystem (probably an attached USB device) or to a remote host.
Backups are saved in time-stamped directories. Backups are cheap on storage, because hard-links are used for files that haven't changed between backups.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -x | |
# remerge <onto> [<merge_commit>] | |
# e.g.: remerge origin/trunk | |
# merge_commit defaults to HEAD | |
onto=$1 | |
mc=${2:-HEAD} | |
mc_sha=$(git rev-parse $mc) # original merge commit | |
p1_sha=$(git rev-parse $onto) # what we want its new first parent to be |