1
submitted 9 months ago by GreatAlbatross@feddit.uk to c/backend@feddit.uk

Some of you might or might not know, but I had to do the final stage of migrating the images that make up the back end of feddit.uk

As it was one of those potentially horrible jobs (millions of files on a live site), I didn't want to do it until I had a sec to focus on it fully.
Which meant I was just not getting around to it.

This evening, I got started on duplicating the folder, and doing the initial dry-run of the sync.
After realising the sync would only take 10 minutes or so, I decided that I might as well just stop the instance for a few half an hour, and get it over with. Otherwise it might have been another month until I got to it.
Plus, it's good to restart things occasionally (and makes sure that we can!)

Rough overview was:

  • Backup run
  • Site taken down to avoid generating new image files
  • Current image folder copied to a new location
  • Missing files added in at the new location
  • Old location moved to temporary folder for safety
  • New location moved to old location
  • Permissions re-applied
  • Site brought back up

And to-do, once it's been running for a few days:

  • Delete temporary folder that's chewing up a third of a TB.

That's all folks
Question away if you like.
Light ribbing about it being a retroactive downtime notification is no problem, so long as it's in good humour.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here
this post was submitted on 03 Mar 2024
1 points (100.0% liked)

The Back End

60 readers
1 users here now

This community is used for less sociable site announcements.
Things like scheduled downtime, information about upgrades, or asking technical questions you'd like to know about how things are done (within reason).

Photo credit

founded 10 months ago
MODERATORS