Skip to content

Commit dcdfa3b

Browse files
author
alexkravets
committed
update readme
1 parent 098aa5c commit dcdfa3b

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# heroku-mongo-backup — backup mongodb and push it to S3 on HEROKU
1+
# heroku-mongo-backup — backup mongodb and push it to S3 on Heroku
22

33
> Why not to use regular mongodump command?
44
@@ -13,11 +13,11 @@
1313

1414
## Setup and configuration
1515

16-
1. Add library to the ```Gemfile```:
16+
Add library to the ```Gemfile```:
1717

1818
```gem "heroku-mongo-backup"``` or ```gem "heroku-mongo-backup", :git => 'git://github.com/alexkravets/heroku-mongo-backup.git'```
1919

20-
2. Add backup task to ```/lib/tasks/cron.rake``` file:
20+
Add backup task to ```/lib/tasks/cron.rake``` file:
2121

2222
```
2323
require 'heroku_mongo_backup'
@@ -30,16 +30,15 @@ task :cron => :environment do
3030
end
3131
```
3232

33-
3. Set Heroku environment variables:
33+
Set Heroku environment variables:
3434

3535
```heroku config:add S3_BUCKET=_value_ S3_KEY_ID=_value_ S3_SECRET_KEY=_value_ MONGO_URL=_value_```
3636

3737
First three are Amazon S3 auth settings and the last one should be copy of *MONGOHQ_URI* or *MONGOLAB_URI* depending on what heroku add-on is used for mongo. *MONGO_URL* is a variable which is used also for **heroku-mongo-sync** command.
3838

39-
**Rake commands**
39+
**Rake commands:**
4040

41-
Backup: ```heroku rake mongo:backup```
42-
43-
Restore: ```heroku rake mongo:restore FILE=backup-file-name.gz```
41+
* ```heroku rake mongo:backup```
42+
* ```heroku rake mongo:restore FILE=backup-file-name.gz```
4443

4544
Copyright (c) 2011 Alex Kravets <[email protected]>, released under the MIT license

0 commit comments

Comments
 (0)