pump.io backup and memory limit
This commit is contained in:
parent
a6565af3e4
commit
84112c0d4c
|
@ -4278,7 +4278,15 @@ npm install
|
|||
npm install databank-redis
|
||||
#+END_SRC
|
||||
|
||||
Edit the configuration file.
|
||||
Limit the use of RAM bt the Redis database.
|
||||
|
||||
#+BEGIN_SRC: bash
|
||||
editor /etc/redis/redis.conf
|
||||
#+END_SRC
|
||||
|
||||
Set /maxmemory/ to 16777216 bytes, then save and exit. This should prevent the amount of data stored in memory from making the system unstable.
|
||||
|
||||
Now edit the configuration file.
|
||||
|
||||
#+BEGIN_SRC: bash
|
||||
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
|
|||
|
||||
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).
|
||||
|
||||
Ensure that data data gets backed up with:
|
||||
|
||||
#+BEGIN_SRC: bash
|
||||
printf "\n\n# Redis backup" >> /etc/cron.daily/backup
|
||||
printf "\ntar -czvf /var/backups/redis_daily.tar.gz /var/lib/redis/dump.rdb" >> /etc/cron.daily/backup
|
||||
printf "\n\n# Redis backup" >> /etc/cron.weekly/backup
|
||||
printf "\ncp -f /var/backups/redis_weekly.tar.gz /var/backups/redis_weekly2.tar.gz" >> /etc/cron.weekly/backup
|
||||
printf "\ncp -f /var/backups/redis_daily.tar.gz /var/backups/redis_weekly.tar.gz" >> /etc/cron.weekly/backup
|
||||
printf "\n\n# Redis backup" >> /etc/cron.monthly/backup
|
||||
printf "\ncp -f /var/backups/redis_monthly.tar.gz /var/backups/redis_monthly2.tar.gz" >> /etc/cron.monthly/backup
|
||||
printf "\ncp -f /var/backups/redis_weekly.tar.gz /var/backups/redis_monthly.tar.gz" >> /etc/cron.monthly/backup
|
||||
|
||||
printf "\n\n# Pump.io backup" >> /etc/cron.daily/backup
|
||||
printf "\ntar -czvf /var/backups/pumpio_daily.tar.gz /var/local/pump.io --exclude /var/local/pump.io/.forever" >> /etc/cron.daily/backup
|
||||
printf "\n\n# Pump.io backup" >> /etc/cron.weekly/backup
|
||||
printf "\ncp -f /var/backups/pumpio_weekly.tar.gz /var/backups/pumpio_weekly2.tar.gz" >> /etc/cron.weekly/backup
|
||||
printf "\ncp -f /var/backups/pumpio_daily.tar.gz /var/backups/pumpio_weekly.tar.gz" >> /etc/cron.weekly/backup
|
||||
printf "\n\n# Pump.io backup" >> /etc/cron.monthly/backup
|
||||
printf "\ncp -f /var/backups/pumpio_monthly.tar.gz /var/backups/pumpio_monthly2.tar.gz" >> /etc/cron.monthly/backup
|
||||
printf "\ncp -f /var/backups/pumpio_weekly.tar.gz /var/backups/pumpio_monthly.tar.gz" >> /etc/cron.monthly/backup
|
||||
#+END_SRC
|
||||
|
||||
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).
|
||||
|
||||
** Install Gopher
|
||||
*** Server setup
|
||||
|
||||
|
|
Loading…
Reference in New Issue