Skip to content

3box/ipfs-pinset-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipfs-pinset-migration

Migrate pins from an AWS S3 bucket or local filesystem to go-ipfs

Usage

CLI

S3:

cd cmd/ipfs-pinset-migration
go run main.go s3 --bucket=ceramic-dev-node --prefix=ipfs/pins --ipfs=localhost:5001 --logPath=/tmp

Filesystem:

cd cmd/ipfs-pinset-migration
go run main.go fs --path=/root/.jsipfs/pins --ipfs=localhost:5001 --logPath=/tmp

Docker:

S3:

docker build . -t ipfs-pinset-migration

docker run \
-e AWS_REGION= \
-e AWS_ACCESS_KEY_ID= \
-e AWS_SECRET_ACCESS_KEY= \
ipfs-pinset-migration s3 --bucket=S3_BUCKET_NAME --prefix=S3_BUCKET_PREFIX --ipfs-api-url=IPFS_API_URL --log-path=LOG_PATH

Filesystem:

docker build . -t ipfs-pinset-migration

docker run ipfs-pinset-migration fs --path=FS_PATH --ipfs-api-url=IPFS_API_URL --log-path=LOG_PATH

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published