restoring a postgres db to new dev machine, it has been 30 minutes, still not done
why can't clients just sqlite?
restoring a postgres db to new dev machine, it has been 30 minutes, still not done
why can't clients just sqlite?
You SURELY know what rsync is.
I am a programmer, not a DBA, I have zero idea what any of the settings on the database do and just follow the notes I made from watching somebody do the task once years ago
I write code and I sift through decompiled Java bytecode and typescript source maps, I don't got time to know what the database does (and nobody pays me to know that)
@tyler I know almost nothing about postgres (other than standard sql knowledge) other than for local dev it seems ponderously slow and a giant pain in the ass
I am restoring my db from one machine, which people are bitching at me because they want to shut it down, to a laptop where it doesn't exist - and there is no documentation of anything, so I am doing a restore
I do not know what rsync and pg_upgradecluster do, but I miss hard deleting the sqlite folder, copying the backup folder, and repointing my local at the "new" db
Doing an internal restore is having postgresql up and running and then inserting all the records.
An external restore is with the db offline and then everything is just a file.
and for that you can use rsync or tar or whatever floats your boat. As long as the db is cold.
@tyler On my old remote dev tower, I dumped a backup, sent it to myself with teams because outlook wouldn't let me, then made a new db on the laptop, added the sole read/write system user for the db, then restored the database backup (dba folks have tended to freak out when they learn the app is designed around a single db user)
this is the most I will ever touch the db, it is purely for dev and thankfully/unfortunately, the vendor owns the cloud version of the software we work on so we cannot touch any of the databases
for my own local stuff, I never touch postgres - but I don't really have a choice for this because they have so screwed up their production code that it no longer starts with a clean database
once that works (or doesn't), and people stop hounding me for stuff, I will try the approach you described in hopes it is quicker - the databases occasionally get locked into a corrupted state so backups needs to be restored, but otherwise I don't touch it
this is all local only
@tyler I will try that after it copies over, it sounds faster
@tyler @WilhelmIII rsync sounds like linux stuff, I work in corpo-world on Bill's operating system
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.