We have a 2Tb CouchDB database running.
At the moment, the backup of this DB is a simple script on my backup server that makes .tar.gz
of each folders found in ./couchdb-data/shards/
via NFS.
From what I could read online, a file copy is fine with Couch but in the same time, timestamps of those files is constantly changing and I’m wondering if my method is safe or if I’m ending with corrupted files as it take a bit of time to compress everything.
In most docs I could read, people are suggesting database replication. As I’m not a specialist of those things, I’m just wondering how is it working if you need to revert changes. For instance, if I have a daily replication, is it possible to restore my production database to it’s last week state from the replication?
This question sounds probably stupid but for me, a replication is a sync between A and B, then if you wreck A, it will wreck B too.
Thanks!