dat-ecosystem / dat

:floppy_disk: peer-to-peer sharing & live syncronization of files via command line
https://dat.foundation
BSD 3-Clause "New" or "Revised" License
8.24k stars 450 forks source link

Unable to bless a unix homedir with it's own a dat archive. #1063

Open bhyde opened 5 years ago

bhyde commented 5 years ago

I have a large-ish project that resides on a server in it's own unix account, call that /home/my-awesom-project. Intending to create a dat archive for ~my-awesome-project, i began by creating a .datignore file. It looked like:

# Ignore everything to begin
*
# add back something small to start off
!doc

Running dat create was disappointing: IncompatibleError: Dat folder contains incompatible metadata. Please remove your metadata (rm -rf .dat" ... tis a shame that a ~/.datignore entry isn't sufficient to resolve that.`

Reasonable I guess, but not what's I'd visualized in my fantasies.

The dat cli (~/.dat/releases/dat-13.11.5-linux-x64/dat) was installed using the wget ... | bash technique; on Gnu/Linux.

Thanks to all for your efforts.

joehand commented 5 years ago

Thanks for opening the issue!

The .dat directory at ~/.dat is used to store the write keys for all your dats. Unfortunately, we overlooked the idea that someone may want to share their home directory.

We definitely don't want people deleting that directory, so this error is really bad there. It'd be great to:

I'll be happy to support anyone who want to take this on.

palmeida commented 5 years ago

What about moving ~/.dat into ~/.config/dat ?