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

Add MFS sync command #4614

Open
Stebalien opened this issue Jan 26, 2018 · 6 comments
Open

Add MFS sync command #4614

Stebalien opened this issue Jan 26, 2018 · 6 comments
Labels
kind/feature A new feature topic/files Topic files

Comments

@Stebalien
Copy link
Member

Basically, an rsync like command that takes a local directory and a directory in MFS and syncs them. To start with, we'd probably only sync from the local disk to the MFS directory.

This should be much faster if we can provide options to, e.g., assume that the local files haven't been modified.

@Stebalien
Copy link
Member Author

Stebalien commented Jan 26, 2018

Came up in https://discuss.ipfs.io/t/ubuntu-archive-on-top-of-ipfs/1579/31

cc @ElOpio

@come-maiz
Copy link
Contributor

This sounds ideal, thanks!

@Stebalien how busy are you? I ask because @rngkll and I would like to help. But, we would need a nice mentor with patience, while we get to know the code. Maybe you can throw at us a few minor tasks to help us getting started?

Or well, at the very least, we will help testing it thoroughly :)

@Stebalien
Copy link
Member Author

I'd love to! I always have time for new contributors (well, I make time). However, you may need to bug me insistently and repeatedly if (well, when) I don't respond immediately.

The first step on this issue would be to design the new command and specify exactly what it will do (and then wait for everyone to disagree and finally, maybe, come to an agreement).

The files (MFS) commands all live in core/commands/files/files.go.

If you're looking to get familiar with the codebase first, there are a lot of small tasks you could work on. The best place to start is the "help wanted" tag. However, there are a lot of these.

You'll probably want work on things related to the commands system so I recommend picking one from this list. #4414 is a nice one.

@Stebalien Stebalien added topic/files Topic files kind/feature A new feature labels Jan 30, 2018
@MirceaKitsune
Copy link

I made a thread discussing a similar feature, as I too would like to see this. If you're interested:

https://discuss.ipfs.io/t/automatically-mirroring-local-directories

What I suggested is giving IPFS the ability to automatically mirror local directories into the network. When a directory is added to the list, IPFS automatically monitors it and makes the following changes: Uploading a new file into IPFS (if absent) when it's added to the directory, removing an existing file from your local IPFS cache when it's removed from the directory, and re-uploading files into IPFS when they've been edited in the directory (obviously generating new files with new hashes).

@Stebalien
Copy link
Member Author

@MirceaKitsune for that, I'd rather just have a fuse (+windows equiv) daemon (with caching).

@vorburger
Copy link

ipfs/roadmap#90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A new feature topic/files Topic files
Projects
None yet
Development

No branches or pull requests

4 participants