Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

A modified restore script that allows OriginTrail Node restores from AWS backup with minimal disk space

Notifications You must be signed in to change notification settings

Valcyclovir/OT-Slim-Restore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

OT-Slim-Restore

A modified restore script that allows OriginTrail Node restores from your S3/B2 bucket with minimal disk space.

For those that use alternate storage locations than S3/B2: You need the contents of the backup in /root/backup. All the files and folders must be in that folder and not in any additional folders. "ls -la backup" should show the various files and the arango/migrations folders.

OriginTrails restore script unneccesarily makes a copy of the entire backup you get when you download from your S3/B2 bucket. This is what takes up so much space and prevents restores without having 3x the space of the backup size available as free space.

This script simply removes that copy and restores from the original backup you downloaded!


Commands to download and use:

  1. Login as root
  2. cd
  3. wget https://github.com/raw/calr0x/OT-Slim-Restore/main/restore.sh
  4. chmod +x restore.sh

Then follow Milians guide here:

https://otnode.com/node-backup/

With these changes:

Step 5:

  1. mv otnode*/*/ backup
  2. rm -rf otnode*

Step 8:

Skip this step entirely.

Done!

About

A modified restore script that allows OriginTrail Node restores from AWS backup with minimal disk space

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages