Bitcoin Forum
April 26, 2024, 09:32:13 PM *
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 855 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?
1714167133
Hero Member
*
Offline Offline

Posts: 1714167133

View Profile Personal Message (Offline)

Ignore
1714167133
Reply with quote  #2

1714167133
Report to moderator
1714167133
Hero Member
*
Offline Offline

Posts: 1714167133

View Profile Personal Message (Offline)

Ignore
1714167133
Reply with quote  #2

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

Posts: 1714167133

View Profile Personal Message (Offline)

Ignore
1714167133
Reply with quote  #2

1714167133
Report to moderator
1714167133
Hero Member
*
Offline Offline

Posts: 1714167133

View Profile Personal Message (Offline)

Ignore
1714167133
Reply with quote  #2

1714167133
Report to moderator
1714167133
Hero Member
*
Offline Offline

Posts: 1714167133

View Profile Personal Message (Offline)

Ignore
1714167133
Reply with quote  #2

1714167133
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!