|
@@ -4278,7 +4278,15 @@ npm install
|
4278
|
4278
|
npm install databank-redis
|
4279
|
4279
|
#+END_SRC
|
4280
|
4280
|
|
4281
|
|
-Edit the configuration file.
|
|
4281
|
+Limit the use of RAM bt the Redis database.
|
|
4282
|
+
|
|
4283
|
+#+BEGIN_SRC: bash
|
|
4284
|
+editor /etc/redis/redis.conf
|
|
4285
|
+#+END_SRC
|
|
4286
|
+
|
|
4287
|
+Set /maxmemory/ to 16777216 bytes, then save and exit. This should prevent the amount of data stored in memory from making the system unstable.
|
|
4288
|
+
|
|
4289
|
+Now edit the configuration file.
|
4282
|
4290
|
|
4283
|
4291
|
#+BEGIN_SRC: bash
|
4284
|
4292
|
editor /etc/pump.io.json
|
|
@@ -4466,6 +4474,30 @@ Once you've set up your user account it's recommended that you don't use the web
|
4466
|
4474
|
|
4467
|
4475
|
A list of pump.io sites can be found at http://pumpstatus.jpope.org. At the time of writing there isn't any public directory and so finding people to follow is really a question of navigating through lists of /following/ or /followers/ (rather like the web before search engines were invented).
|
4468
|
4476
|
|
|
4477
|
+Ensure that data data gets backed up with:
|
|
4478
|
+
|
|
4479
|
+#+BEGIN_SRC: bash
|
|
4480
|
+printf "\n\n# Redis backup" >> /etc/cron.daily/backup
|
|
4481
|
+printf "\ntar -czvf /var/backups/redis_daily.tar.gz /var/lib/redis/dump.rdb" >> /etc/cron.daily/backup
|
|
4482
|
+printf "\n\n# Redis backup" >> /etc/cron.weekly/backup
|
|
4483
|
+printf "\ncp -f /var/backups/redis_weekly.tar.gz /var/backups/redis_weekly2.tar.gz" >> /etc/cron.weekly/backup
|
|
4484
|
+printf "\ncp -f /var/backups/redis_daily.tar.gz /var/backups/redis_weekly.tar.gz" >> /etc/cron.weekly/backup
|
|
4485
|
+printf "\n\n# Redis backup" >> /etc/cron.monthly/backup
|
|
4486
|
+printf "\ncp -f /var/backups/redis_monthly.tar.gz /var/backups/redis_monthly2.tar.gz" >> /etc/cron.monthly/backup
|
|
4487
|
+printf "\ncp -f /var/backups/redis_weekly.tar.gz /var/backups/redis_monthly.tar.gz" >> /etc/cron.monthly/backup
|
|
4488
|
+
|
|
4489
|
+printf "\n\n# Pump.io backup" >> /etc/cron.daily/backup
|
|
4490
|
+printf "\ntar -czvf /var/backups/pumpio_daily.tar.gz /var/local/pump.io --exclude /var/local/pump.io/.forever" >> /etc/cron.daily/backup
|
|
4491
|
+printf "\n\n# Pump.io backup" >> /etc/cron.weekly/backup
|
|
4492
|
+printf "\ncp -f /var/backups/pumpio_weekly.tar.gz /var/backups/pumpio_weekly2.tar.gz" >> /etc/cron.weekly/backup
|
|
4493
|
+printf "\ncp -f /var/backups/pumpio_daily.tar.gz /var/backups/pumpio_weekly.tar.gz" >> /etc/cron.weekly/backup
|
|
4494
|
+printf "\n\n# Pump.io backup" >> /etc/cron.monthly/backup
|
|
4495
|
+printf "\ncp -f /var/backups/pumpio_monthly.tar.gz /var/backups/pumpio_monthly2.tar.gz" >> /etc/cron.monthly/backup
|
|
4496
|
+printf "\ncp -f /var/backups/pumpio_weekly.tar.gz /var/backups/pumpio_monthly.tar.gz" >> /etc/cron.monthly/backup
|
|
4497
|
+#+END_SRC
|
|
4498
|
+
|
|
4499
|
+At the time of writing creating backups of the pump.io database is critically important, because regenerating the database or moving to a different databank type causes you to be /permanently banned/ from the pump.io network unless you change your domain name (which may not always be an available option).
|
|
4500
|
+
|
4469
|
4501
|
** Install Gopher
|
4470
|
4502
|
*** Server setup
|
4471
|
4503
|
|