9 ms·
> trading an hour or two of my time pacman -S postgresql initdb -D /pathto/pgroot/data grok/claude/gpt: "Write a concise Bash script for setting up an automa
by arevno 9mo ago
> trading an hour or two of my time
pacman -S postgresql
initdb -D /pathto/pgroot/data
grok/claude/gpt: "Write a concise Bash script for setting up an automated daily PostgreSQL database backup using pg_dump and cron on a Linux server, with error handling via logging and 7-day retention by deleting older backups."
ctrl+c / ctrl+v
Yeah that definitely took me an hour or two.
- solatic 9mo agoSo your backups are written to the same disk? > datacenter goes up in flames > 3-2-1 backups: 3 copies on 2 different types of media with at least 1 copy off-site. No off-site copy. Whoops!