You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Wordit Ltd <wo...@googlemail.com> on 2010/12/03 23:17:44 UTC

Couchone backups?

Is there a way to do backups on Couchone and other hosting services?

I realise I could replicate to another couch, but that means running
couchdb on my own server as well...which partially defeats the object
of using a hosting service.

I was hoping for a way to backup to an archive, and push it to S3.

Thanks,

Marcus

Re: Couchone backups?

Posted by Dirkjan Ochtman <di...@ochtman.nl>.
On Fri, Dec 3, 2010 at 23:28, Jan Lehnardt <ja...@apache.org> wrote:
> The couchdb-python library used to have a set of dump and load scripts
> that would give you a JSON file with all your data, but I don't know
> the current state of these. If they are up to date, they should be up
> to the task.

They still work AFAIK (if not, I'll fix them up).

Cheers,

Dirkjan

Re: Couchone backups?

Posted by Jan Lehnardt <ja...@apache.org>.
Hi Marcus,

On 3 Dec 2010, at 23:17, Wordit Ltd wrote:

> Is there a way to do backups on Couchone and other hosting services?

That depends on what extra services these hosters offer. CouchOne currently
does backup for you, but doesn't allow access to end users. For more details,
can I ask you to contact hosting@couchone.com?

> I realise I could replicate to another couch, but that means running
> couchdb on my own server as well...which partially defeats the object
> of using a hosting service.
> 
> I was hoping for a way to backup to an archive, and push it to S3

The couchdb-python library used to have a set of dump and load scripts
that would give you a JSON file with all your data, but I don't know
the current state of these. If they are up to date, they should be up
to the task.

Cheers
Jan
-- 


Re: Couchone backups?

Posted by Jan Lehnardt <ja...@apache.org>.
On 5 Dec 2010, at 16:55, Jason Smith wrote:

> On Sat, Dec 4, 2010 at 5:17 AM, Wordit Ltd <wo...@googlemail.com> wrote:
>> Is there a way to do backups on Couchone and other hosting services?
>> 
>> I realise I could replicate to another couch, but that means running
>> couchdb on my own server as well...which partially defeats the object
>> of using a hosting service.
> 
> I posted this question in Get Satisfaction:
> http://getsatisfaction.com/couchone/topics/full_data_dumps_for_backup_or_migration
> 
> I'm happy have a CouchOne discussion there; however I'll share some of
> my thoughts about a backup.
> 
> Firstly, as a very simple stopgap you can query
> _all_docs?include_docs=true and at least you have the basic dump of
> your database. Put that in cron and IMO that is good bang for the buck
> in early stages when you have too many irons in the fire.

Don't forget attachments :)

Cheers
Jan
--

> 
> But a full couch backup facility would want to address at least these things:
> 
> 1. Loop through _all_dbs and back up each database
> 2. Back up the _security objects in the databases
> 3. Back up the /_config object
> 4. Back up the log file
> 5. If storage is cheap, back up the .view indexes to reduce restore time
> 
> -- 
> Jason Smith
> CouchOne Hosting


Re: Couchone backups?

Posted by Sebastian Cohnen <se...@googlemail.com>.
On 05.12.2010, at 16:55, Jason Smith wrote:

> On Sat, Dec 4, 2010 at 5:17 AM, Wordit Ltd <wo...@googlemail.com> wrote:
>> Is there a way to do backups on Couchone and other hosting services?
>> 
>> I realise I could replicate to another couch, but that means running
>> couchdb on my own server as well...which partially defeats the object
>> of using a hosting service.
> 
> I posted this question in Get Satisfaction:
> http://getsatisfaction.com/couchone/topics/full_data_dumps_for_backup_or_migration
> 
> I'm happy have a CouchOne discussion there; however I'll share some of
> my thoughts about a backup.
> 
> Firstly, as a very simple stopgap you can query
> _all_docs?include_docs=true and at least you have the basic dump of
> your database. Put that in cron and IMO that is good bang for the buck
> in early stages when you have too many irons in the fire.
> 
> But a full couch backup facility would want to address at least these things:
> 
> 1. Loop through _all_dbs and back up each database
> 2. Back up the _security objects in the databases
> 3. Back up the /_config object
> 4. Back up the log file
> 5. If storage is cheap, back up the .view indexes to reduce restore time
> 

Maybe you also need to dump documents which are involved in conflicts.

> -- 
> Jason Smith
> CouchOne Hosting


Re: Couchone backups?

Posted by Jason Smith <jh...@couchone.com>.
On Sat, Dec 4, 2010 at 5:17 AM, Wordit Ltd <wo...@googlemail.com> wrote:
> Is there a way to do backups on Couchone and other hosting services?
>
> I realise I could replicate to another couch, but that means running
> couchdb on my own server as well...which partially defeats the object
> of using a hosting service.

I posted this question in Get Satisfaction:
http://getsatisfaction.com/couchone/topics/full_data_dumps_for_backup_or_migration

I'm happy have a CouchOne discussion there; however I'll share some of
my thoughts about a backup.

Firstly, as a very simple stopgap you can query
_all_docs?include_docs=true and at least you have the basic dump of
your database. Put that in cron and IMO that is good bang for the buck
in early stages when you have too many irons in the fire.

But a full couch backup facility would want to address at least these things:

1. Loop through _all_dbs and back up each database
2. Back up the _security objects in the databases
3. Back up the /_config object
4. Back up the log file
5. If storage is cheap, back up the .view indexes to reduce restore time

-- 
Jason Smith
CouchOne Hosting