Bitcoin Forum
May 14, 2024, 01:12:30 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to run a bitcoin server with automatic restart and backup?  (Read 856 times)
Abrosim Adderiy (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
April 22, 2013, 08:47:04 AM
 #1

What would be the best way to start writing a script to automatically run a bitcoind server on an Ubuntu startup, make regular backups and restart from a backup on error. Would this normally be done through a cron job?
1715649150
Hero Member
*
Offline Offline

Posts: 1715649150

View Profile Personal Message (Offline)

Ignore
1715649150
Reply with quote  #2

1715649150
Report to moderator
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715649150
Hero Member
*
Offline Offline

Posts: 1715649150

View Profile Personal Message (Offline)

Ignore
1715649150
Reply with quote  #2

1715649150
Report to moderator
Ronados
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
April 22, 2013, 08:55:19 AM
 #2

The restart on error part would be most difficult to set up. Ubuntu has crontab support, it won't be hard setting up startup and backup scripts with that command. How's your scripting skill?
Zer0CooL
Member
**
Offline Offline

Activity: 81
Merit: 10


View Profile WWW
April 22, 2013, 09:01:58 AM
 #3

What would be the best way to start writing a script to automatically run a bitcoind server on an Ubuntu startup, make regular backups and restart from a backup on error. Would this normally be done through a cron job?

I use pretty much the same sort of setup on windows.
I know the drivers crash occasionally, so I have a sheduled task setup to reboot the machine every 24 hours.
at reboot, I just start the miner & off we go!

this could be easily accomplished with a cronjob in ubuntu as well... the 'on error' part may prove a bit difficult.
if you're experianced in this sort of stuff, you could try to write a (shell) script that polls the miners' API (if your miner supports it)
and check for reduced hash rate for example.
Avgust Albertson
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
April 22, 2013, 09:02:55 AM
 #4

Why do you need such functionality?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!