Bitcoin Forum
December 18, 2017, 09:08:55 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How to run a bitcoin server with automatic restart and backup?  (Read 764 times)
Abrosim Adderiy
Newbie
*
Offline Offline

Activity: 6


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?
1513631335
Hero Member
*
Offline Offline

Posts: 1513631335

View Profile Personal Message (Offline)

Ignore
1513631335
Reply with quote  #2

1513631335
Report to moderator
1513631335
Hero Member
*
Offline Offline

Posts: 1513631335

View Profile Personal Message (Offline)

Ignore
1513631335
Reply with quote  #2

1513631335
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513631335
Hero Member
*
Offline Offline

Posts: 1513631335

View Profile Personal Message (Offline)

Ignore
1513631335
Reply with quote  #2

1513631335
Report to moderator
1513631335
Hero Member
*
Offline Offline

Posts: 1513631335

View Profile Personal Message (Offline)

Ignore
1513631335
Reply with quote  #2

1513631335
Report to moderator
1513631335
Hero Member
*
Offline Offline

Posts: 1513631335

View Profile Personal Message (Offline)

Ignore
1513631335
Reply with quote  #2

1513631335
Report to moderator
Ronados
Jr. Member
*
Offline Offline

Activity: 30


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


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


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

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

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!