Go-ipfs: Add MFS sync command

Created on 26 Jan 2018  路  6Comments  路  Source: ipfs/go-ipfs

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.

kinfeature topifiles

Most helpful comment

All 6 comments

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 :)

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.

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).

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lidel picture lidel  路  3Comments

JesseWeinstein picture JesseWeinstein  路  4Comments

0x6431346e picture 0x6431346e  路  3Comments

daviddias picture daviddias  路  3Comments

whyrusleeping picture whyrusleeping  路  4Comments