A small tool to view real-world ActivityPub objects as JSON! Enter a URL
or username from Mastodon or a similar service below, and we'll send a
request with
the right
Accept
header
to the server to view the underlying object.
{
"@context": [
"https://join-lemmy.org/context.json",
"https://www.w3.org/ns/activitystreams"
],
"type": "Page",
"id": "https://lemmy.zip/post/32950364",
"attributedTo": "https://lemmy.zip/u/RadDevon",
"to": [
"https://lemmy.world/c/selfhosted",
"https://www.w3.org/ns/activitystreams#Public"
],
"name": "Backups: Am I doing this right?",
"cc": [],
"content": "<p>I’m in the process of setting up backups for my home server, and I feel like I’m swimming upstream. It makes me think I’m just taking the wrong approach.</p>\n<p>I’m on a shoestring budget at the moment, so I won’t really be able to implement a 3-2-1 strategy just yet. I figure the most bang for my buck right now is to set up off-site backups to a cloud provider. I first decided to do a full-system backup in the hopes I could just restore it and immediately be up and running again. I’ve seen a lot of comments saying this is the wrong approach, although I haven’t seen anyone outline exactly why.</p>\n<p>I then decided I would instead cherry-pick my backup locations instead. Then I started reading about backing up databases, and it seems you can’t just back up the data directory (or file in the case of SQLite) and call it good. You need to dump them first and backup the dumps.</p>\n<p>So, now I’m configuring a <a href=\"https://github.com/tiredofit/docker-db-backup\" rel=\"nofollow\">docker-db-backup</a> container to back each one of them up, finding database containers and SQLite databases and configuring a backup job for each one. Then, I hope to drop all of those dumps into a single location and back that up to the cloud. This means that, if I need to rebuild, I’ll have to restore the containers’ volumes, restore the backups, bring up new containers, and then restore each container’s backup into the new database. It’s pretty far from my initial hope of being able to restore all the files and start using the newly restored system.</p>\n<p>Am I going down the wrong path here, or is this just the best way to do it?</p>\n",
"mediaType": "text/html",
"source": {
"content": "I'm in the process of setting up backups for my home server, and I feel like I'm swimming upstream. It makes me think I'm just taking the wrong approach.\n\nI'm on a shoestring budget at the moment, so I won't really be able to implement a 3-2-1 strategy just yet. I figure the most bang for my buck right now is to set up off-site backups to a cloud provider. I first decided to do a full-system backup in the hopes I could just restore it and immediately be up and running again. I've seen a lot of comments saying this is the wrong approach, although I haven't seen anyone outline exactly why.\n\nI then decided I would instead cherry-pick my backup locations instead. Then I started reading about backing up databases, and it seems you can't just back up the data directory (or file in the case of SQLite) and call it good. You need to dump them first and backup the dumps.\n\nSo, now I'm configuring a [docker-db-backup](https://github.com/tiredofit/docker-db-backup) container to back each one of them up, finding database containers and SQLite databases and configuring a backup job for each one. Then, I hope to drop all of those dumps into a single location and back that up to the cloud. This means that, if I need to rebuild, I'll have to restore the containers' volumes, restore the backups, bring up new containers, and then restore each container's backup into the new database. It's pretty far from my initial hope of being able to restore all the files and start using the newly restored system.\n\nAm I going down the wrong path here, or is this just the best way to do it?",
"mediaType": "text/markdown"
},
"attachment": [],
"sensitive": false,
"published": "2025-02-27T19:06:20.352867Z",
"language": {
"identifier": "en",
"name": "English"
},
"audience": "https://lemmy.world/c/selfhosted",
"tag": [
{
"href": "https://lemmy.zip/post/32950364",
"name": "#selfhosted",
"type": "Hashtag"
}
]
}