Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Env #6

Open
DonRichards opened this issue Oct 30, 2015 · 3 comments
Open

Windows Env #6

DonRichards opened this issue Oct 30, 2015 · 3 comments

Comments

@DonRichards
Copy link

Works fine in OSX but when I try to run on my Windows 10 machine this is the error. I'm running git version 2.6.2.windows.1 w/ integrated git/unix commands

c:\... Github\mongo-sync > sh mongo-sync.sh pull

mongo-sync:
-----------
Are you sure you want to pull? Enter 'yes': yes
load_configs
Parsing 'config.yml'...
Success!

Dumping Remote DB to /tmp//dump...
Success!

Overwriting Local DB...
Error on or near line 148; exiting with status 1
Cleaning up...
@sheharyarn
Copy link
Owner

Could be an issue with unix-style $TMPDIR path on line 114. Could you try changing it to something more windows-like (such as C:\Users\<username>\AppData\Local\Temp\ or %Temp% - source) on your system and see if that works?

I don't have a windows machine on me so I can't test it. It would be awesome if someone could send in a pull-request that changes the $TMPDIR path depending on the env.

@DonRichards
Copy link
Author

Even with

TMPDIR=C:\Users\Don\\AppData\Local\Temp\dump\
OR
TMPDIR=C:\Users\Don\\AppData\Local\Temp\dump\%local_db

it still throws same error.

@flypart
Copy link

flypart commented Aug 16, 2018

my temporary solution:
TMPDIR=./tmp/"$local_db"/dump

Maybe you can change "C:" to "/cygdrive/c/Users/..." if you installed cygwin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants