https://github.com/tvrtkom/ipfs-backup
Backup encrypted files on ipfs
https://github.com/tvrtkom/ipfs-backup
backup-script backups encryption ipfs
Last synced: about 2 months ago
JSON representation
Backup encrypted files on ipfs
- Host: GitHub
- URL: https://github.com/tvrtkom/ipfs-backup
- Owner: TvrtkoM
- Created: 2020-12-19T16:06:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-23T23:53:09.000Z (over 5 years ago)
- Last Synced: 2025-06-13T06:09:31.718Z (about 1 year ago)
- Topics: backup-script, backups, encryption, ipfs
- Language: TypeScript
- Homepage:
- Size: 76.2 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nodejs scripts for backing up files on IPFS
## Usage
File *.env* must exist in project root for utility to work. Look *.env.example* file for example. **FILES_CONFIG** field references JSON file containing array of files to backup (Look up *files.json.example* for reference).
**PASSWORD** - used for encryption of the files
**IPFS_CLIENT_URL** - IPFS node api endpoint - default is *http://127.0.0.1:5001*
### NPM run scripts
First run `npm install` as usual.
- `npm run sync` - syncs file with ipfs. Files not found locally are either skipped if no entry exists in database, or they are decrypted from IPFS and then saved. Changed files are updated on IPFS and entry saved to database.
- `npm run clean-db` - unpins all backups from IPFS and deletes db.json
Database is actually *db.json* and it containes all entries backed up encrpyted on IPFS, along with some data used for encryption.
Do not share or publish publicly *.env* and *db.json* files!