begining of a rake task for mongo backup
This commit is contained in:
parent
655e92ebdd
commit
ff5e32d2b8
1 changed files with 9 additions and 0 deletions
9
lib/tasks/backup.rake
Normal file
9
lib/tasks/backup.rake
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace :backup do
|
||||
desc "Backup Mongo"
|
||||
task :mongo do
|
||||
cf = CloudFiles::Connection.new(:username => "", :api_key => "")
|
||||
mongo_container = cf.container("Mongo Backup")
|
||||
file = cont.create_object("test.txt")
|
||||
file.write "Things"
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue