Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
gutenye committed Feb 2, 2012
1 parent e583294 commit 6c37030
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,41 @@ create hello example from https://github.com/GutenYe/oldtime-hello-example

it will have these files:

# /oldtime/oldtimerc # an Optimsim config file.
media = "/tmp" # get this variable by Rc.media.

/oldtime/oldtime/
hello.conf
hello/
backup.hello
hello.conf
hello/
backup.hello

# /oldtime/oldtimerc # an Optimsim config file.
media = "/tmp" # get this variable by Rc.media.

# /oldtime/oldtime/hello/backup.hello

/oldtime/ <%=Rc.media%>/hello.oldtime/ # an ERB template.
/oldtime/ <%=Rc.media%>/hello.oldtime/ # an ERB template.

[exclude]
/.git
/oldtimerc
[exclude]
/.git
/oldtimerc

# /oldtime/hello.conf

require "oldtime/rsync"
configure <<EOF
backup:
rsync.options = "-av --delete" # get this variable by Rc.backup.rsync.options
restore:
rsync.options = "-av"
EOF

backup do
rsync2 "backup.hello" # load /oldtime/hello/backup.hello file
end

restore do
rsync "<%=Rc.media%>/hello.oldtime/ /oldtime/.oldtime/"
end
require "oldtime/rsync"
configure <<EOF
backup:
rsync.options = "-av --delete" # get this variable by Rc.backup.rsync.options
restore:
rsync.options = "-av"
EOF

backup do
rsync2 "backup.hello" # run rsync command read from /oldtime/hello/backup.hello file
end

restore do
rsync "<%=Rc.media%>/hello.oldtime/ /oldtime/" # run rsync command
end

Let's begin.

Expand Down

0 comments on commit 6c37030

Please sign in to comment.