calr0x / ot-smoothbrain-backup Goto Github PK
View Code? Open in Web Editor NEWBackup system for OriginTrail Nodes (Also supports Ansible)
License: GNU General Public License v3.0
Backup system for OriginTrail Nodes (Also supports Ansible)
License: GNU General Public License v3.0
Telegram notifications always showing SUCCESSFUL despite backup failing
anible-playbook
correct to
ansible-playbook
appears in 4 occasions
When i tried backup manualy with ./restic-backup.sh command i faced this issue:
root@vps-730cd348:# source /root/OT-Settings/config.sh# cd OT-Smoothbrain-Backup
root@vps-730cd348:
root@vps-730cd348:~/OT-Smoothbrain-Backup# ./restic-backup.sh
./restic-backup.sh: line 4: STATUS: command not found
./restic-backup.sh: line 5: N1: command not found
./restic-backup.sh: line 7: [-d: command not found
ln: failed to create symbolic link '/root/backup/backup': File exists
Backing up OT Node data
./restic-backup.sh: command substitution: line 18: syntax error near unexpected token &' ./restic-backup.sh: command substitution: line 18:
node /ot-node/current/scripts/backup.js --config=/ot-node/current/.origintrail_noderc --configDir=/root/.origintrail_noderc/mainnet --backupDirectory=/root/backup 2 > &1)'
./restic-backup.sh: line 19: [1: command not found
Moving data out of dated folder into backup
./restic-backup.sh: command substitution: line 26: syntax error near unexpected token &' ./restic-backup.sh: command substitution: line 26:
mv -v /root/backup/202*/* /root/backup/ 2 > &1)'
./restic-backup.sh: line 27: [1: command not found
Moving hidden data out of dated folder into backup
./restic-backup.sh: command substitution: line 34: syntax error near unexpected token &' ./restic-backup.sh: command substitution: line 34:
mv -v /root/backup//.origintrail_noderc /root/backup/ 2 > &1)'
./restic-backup.sh: line 35: [1: command not found
0
Deleting dated folder
./restic-backup.sh: command substitution: line 43: syntax error near unexpected token &' ./restic-backup.sh: command substitution: line 43:
rm -rf /root/backup/202 2 > &1)'
./restic-backup.sh: line 44: [1: command not found
0
Uploading data to Amazon S3
./restic-backup.sh: command substitution: line 52: syntax error near unexpected token &' ./restic-backup.sh: command substitution: line 52:
/root/OT-Smoothbrain-Backup/restic backup /root/backup/.origintrail_noderc /root/backup/* 2 > &1)'
./restic-backup.sh: line 53: [1: command not found
Running on Raspberry pi, I encounter permission denied when trying to ./restic-cleanup.sh on data/send.sh, restic and restic-cleanup.sh
Example :
./restic-cleanup.sh
-bash: ./restic-cleanup.sh: Permission denied
Temporary solution :
chmod +x restic-cleanup.sh
chmod +x restic
cd data && chmod +x send.sh
Add variables for backblaze connections
it seems i have a success with docker cold/raw backup
to restore the node
I've tested this flow with incorrect domain name and closed ports etc... and the node starts i see new offers created
now i need to test it with an actual node with all correct parameters
Add "apt install apg"
Running on Raspberry pi 3B+, executing .sh commands yields :
cannot execute binary file: Exec format error
Reasoning :
Incompatibility issues with .sh executable made for x86 on a Linux ARM raspberry pi
Solution :
cd OT-Smoothbrain-Backup
wget https://github.com/restic/restic/releases/download/v0.12.0/restic_0.12.0_linux_arm.bz2
rm restic
bunzip2 restic_0.12.0_linux_arm.bz2
mv restic_0.12.0_linux_arm restic
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.