Comments (6)
+1
I just saw that too.
from couchdb-dump.
+1
if the error is because of nproc
, you can use sysctl -n hw.ncpu
from couchdb-dump.
Ah nice one; I don't have a Mac, so its pretty fiddly for me to establish
what alternative commands there are. I'll check if sysctl is portable to
Linux too.
The other error is surrounding one of the flags I'm passing to du to work
out available disk space; could I trouble you to have a peek and see if
there's a Mac equivalent?
If there's no easily portable options, I may need to have two commands,
split by identified system type (worst case scenario)- what's the simplest
way of identifying a Mac on command line?
On Thu, 16 Apr 2015 21:55 Rajarshi Nigam [email protected] wrote:
+1
if the error is because of nproc, you can use sysctl -n hw.ncpu
—
Reply to this email directly or view it on GitHub
#20 (comment)
.
from couchdb-dump.
Identify OS X using uname -a | grep -i darwin
:
[zero]~→ uname -a | grep -i darwin
Darwin zero.local 14.1.0 Darwin Kernel Version 14.1.0: Thu Feb 26 19:26:47 PST 2015; root:xnu-2782.10.73~1/RELEASE_X86_64 x86_64
For du
instead of using -BK
use just -k
and you don't need to sed
out K
since it's not in the output:
[zero]~→ du -P -k tracks.json
44 tracks.json
For the number of CPUs (as @rajington says) you can use sysctl
like so:
[zero]~→ sysctl -n hw.ncpu
4
In either case, you could create a few bash functions for this. I'd offer a PR but not any time at the moment to do so.
Thanks for your great tool! I use this on Linux a lot now.
from couchdb-dump.
Darren,
sorry for coming back to you so late.
It looks like NIck Lyin already solved the issue, isn't it?
bye
Daniele
Daniele
2015-04-16 23:49 GMT+02:00 Darren Gibbard [email protected]:
Ah nice one; I don't have a Mac, so its pretty fiddly for me to establish
what alternative commands there are. I'll check if sysctl is portable to
Linux too.The other error is surrounding one of the flags I'm passing to du to work
out available disk space; could I trouble you to have a peek and see if
there's a Mac equivalent?If there's no easily portable options, I may need to have two commands,
split by identified system type (worst case scenario)- what's the simplest
way of identifying a Mac on command line?On Thu, 16 Apr 2015 21:55 Rajarshi Nigam [email protected] wrote:
+1
if the error is because of nproc, you can use sysctl -n hw.ncpu
—
Reply to this email directly or view it on GitHub
<
#20 (comment).
—
Reply to this email directly or view it on GitHub
#20 (comment)
.
from couchdb-dump.
Yeah sort of; I'll raise a merge for it in a while maybe - I'd forgotten about it tbh :)
from couchdb-dump.
Related Issues (20)
- Backup / restore all databases? HOT 4
- Stuck at 'Stage 1 - Document filtering' HOT 6
- Taking backup for all revisions HOT 1
- Is it possible to set the password with a environment variable? HOT 4
- ERROR: Curl encountered an issue whilst dumping the database HOT 1
- Backup exits with exitcode 1 in silent mode HOT 1
- can dump all revisions docs HOT 4
- Error when restoring: POST body must include `docs` parameter. HOT 4
- Document update conflict upon restore HOT 3
- couchdb-dump doesn't work with busybox's grep anymore HOT 1
- Backup all databases HOT 9
- Invalid UTF-8 JSON error while restoring large file HOT 5
- Restore backup into non-empty database HOT 1
- Backup does not work with pouchdb-server
- Question: How does the restore handle duplicate data? HOT 1
- compilation_error when attempting to restore database
- CouchDB Reported error, need some advice on how to debug HOT 1
- How can exclude some databases from backup? HOT 1
- Nice to have a 'drop database' option
- Intermittent backup issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from couchdb-dump.