Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
5
Impact
~1k people reached

  • 0 posts edited
  • 0 helpful flags
  • 5 votes cast
Oct
9
comment What's the best way to automate backing-up of PostgreSQL databases?
Great script, but I found I needed to tweak the regex such that it didn't include pipes and blank lines as database names. DBS=$($PSQL -l -t | egrep -v 'template[01]' | awk '{print $1}' | egrep -v '^\|' | egrep -v '^$')
Jan
31
comment Prioritise ssh logins (nice)
I'll look into cgroups. Re limits.conf, I guess that would only come into effect once sshd has accepted the connection and launched a shell process under my username. I wonder if I should also edit /etc/init/ssh.conf (upstart) and add a nice -15 to sshd to prioritise the actual sshd daemon?