16 karma · joined Jul 18, 2012 (14y ago) · 12 submissions
comment 2w ago · link · parent
Set RESTIC_REPOSITORY=rest:http://your-server:8000/your-repo, put your credentials in RESTIC_REST_USERNAME/RESTIC_REST_PASSWORD (or in the URL), and leave out the AWS variables.
So rest-server seems to have an --append-only mode. If that's enabled, backups still succeed, but the retention step is refused, so each run reports an error and old snapshots are never removed.
comment 2w ago · link · parent
https://github.com/isriram/pg-restic
I needed Postgres backups at work and at home at the same time. I tried a few existing images, but after spending time setting them up I found they shipped an older pg_dump that couldn't back up newer Postgres versions. So I built my own.
It runs pg_dumpall on a cron schedule and streams it straight into a restic repo, so nothing touches local disk. You get encrypted, deduplicated snapshots (hourly dumps of a mostly unchanged DB take very little extra space), retention policies, and daily pruning. If the dump fails, no snapshot is saved. It ships pg_dumpall 18, so it can back up anything from 9.2 to 18.
I now run it in production at work, so I'll be keeping it up to date. I'm no expert, and this is the first time I'm doing something like this (putting something out there), so any feedback is welcome, especially from the database pros.
It's not fancy, but it's something I needed, and boy, I really needed something like this.
comment 12y ago · link · parent
Phones here are not appliances that you buy from the carrier. The device and the service are properly decoupled enough that people know the difference.
comment 13y ago · link · parent
If an existing customer reads that page, and this thread there's just one thing that they will immediately deduce. Existing customers are being used as a subsidizing agent to capture new audience. Which, again is quite strange. In a game theoretic way, this drives the point to existing customers that it is beneficial to not be loyal to the service (i.e. cancel/re-order).
If they reduced cost on older hardware while introducing newer one, they could also list those up for sale. Surely people on a budget or people who don't need a Xeon will simply settle for an older Atom at a cheaper price. This also allows OVH to retain and milk the box till its ROI is hopefully achieved.
comment 13y ago · link · parent
You see, I live in a country that gets very hot during summers. The ambient goes to 45 easily. And the only sensible solution is to park some place where the sun rays cannot (a) directly hit your car because that would cause the car to become uncomfortably hot (b) cannot be reflected through to your car via multiple other surfaces (e.g. other cars, walls, etc).
The underground section of the parking lots perfectly suit this criteria, even though it's technically the same building with under-and-over ground parking facilities. If you're wondering where I'm talking about, it's the parking lot at the Bahrain City Center. (One can hope that very few people residing in Bahrain read hackernews, and my supposedly secret strategy doesn't leak out to everyone).
What I could do would be to take actual thermometric readings over the course of this summer for underground vs. above-ground parking spots.
comment 13y ago · link · parent
I haven't tried radix sort - I'll go try it today and see how well I do. Nope, I don't do selection sort either, since it's quicker to perform insertion sort when stack size gets manageable.
7.
Alphabetically sorting business cards(sriramiyer.net ↗)
2 points · by sriramiyer · 13y ago · 2 comments
8.
Amusing behaviour of 'rm' in linux(sriramiyer.net ↗)
3 points · by sriramiyer · 13y ago · discuss
comment 14y ago · link · parent
The "Log-in with your iPhone?" could be coupled with some kind of non-biometric authentication and that would be better. But honestly, two-factor with strong passwords are more than enough. The dismal security scenario is mostly cultural, not technological.
comment 14y ago · link · parent
You need to submit the type test reports and submittals to the Energy Board and then they approve the equipment. This takes around a month or so. Once you've got the parts, you can install it and then a government certified technician/engineer is required to be present when you energize it.
comment 14y ago · link · parent