1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
App\Entity\Entry {#2400
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1889 …}
+slug: "Automatic-backups-of-inode-tables-and-partition-info-for-easier"
+title: "Automatic backups of inode tables and partition info for easier data recovery"
+url: null
+body: """
Good morning all, in today’s episode of “What I learned during work hours”…\n
\n
I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive.\n
\n
A quick duckle pointed me to e2image, which says in the man:\n
\n
> It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals — at boot time, and/or every week or so.\n
\n
I couldn’t find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc.\n
\n
The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes.\n
\n
Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.\n
\n
Apparently I was being a derp somehow. …Anyways,\n
\n
My RAID drives are 16TB, e2image of this is 125gb, and 7z’d it comes down to just 63mb.\n
\n
I’ll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 16
+favouriteCount: 25
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701340910 {#2414
date: 2023-11-30 11:41:50.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1688 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1965 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 18292
-titleTs: "'automat':1 'backup':2 'data':11 'easier':10 'info':8 'inod':4 'partit':7 'recoveri':12 'tabl':5"
-bodyTs: "'125gb':208 '16tb':203 '40mb':169 '500gb':161 '63mb':217 '7z':144,210 '8gb':164 'alreadi':189 'and/or':94 'anyway':198 'anywher':237 'appar':191 'around':18 'backup':170,225 'boot':92 'catastroph':26 'come':213 'command':87 'comment':229 'compress':137,166 'couldn':100 'coupl':134,173 'creat':64 'd':211 'data':34 'date':143 'derp':196 'drive':44,135,162,183,201 'dropbox':154 'duckl':47 'e2image':51,131,204 'episod':7 'etc':155 'everi':95 'fdisk':85,125 'file':66,69,129 'find':102 'generat':82 'get':147 'good':1,61 'happen':27 'hour':14 'idea':62 'imag':65,158 'improv':239 'inod':40 'interv':90 'know':232 'l':86 'layout':78 'learn':11 'let':230 'll':219 'lost':38 'man':56 'mega':152 'metadata':157 'minut':174 'morn':2 'onlin':108 'partit':77 'play':17 'point':48 'post':220 'prebuilt':104 'quick':46 'raid':182,200 'raid1':187 'realis':22 'realli':30 'recoveri':35 'regular':89 'resili':190 'rsync':150 'run':130 'save':75,123 'say':53 'script':226 'servic':114,222 'solut':105 'somehow':197 'someth':25 'spot':236 'struggl':31 'system':70,73 'systemd':113 'tabl':41 'take':171 'text':128 'time':93 'timer':116,223 'today':5 'togeth':140 'unfortun':175 'upload':148 'use':83 'via':149 'week':96 'work':13,179 'would':29 'wrote':111 'wxhexeditor':20"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701374984
+visibility: "visible "
+apId: "https://lemmy.nz/post/3898548"
+editedAt: DateTimeImmutable @1702307273 {#1793
date: 2023-12-11 16:07:53.0 +01:00
}
+createdAt: DateTimeImmutable @1701288584 {#2402
date: 2023-11-29 21:09:44.0 +01:00
}
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
App\Entity\Entry {#2400
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1889 …}
+slug: "Automatic-backups-of-inode-tables-and-partition-info-for-easier"
+title: "Automatic backups of inode tables and partition info for easier data recovery"
+url: null
+body: """
Good morning all, in today’s episode of “What I learned during work hours”…\n
\n
I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive.\n
\n
A quick duckle pointed me to e2image, which says in the man:\n
\n
> It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals — at boot time, and/or every week or so.\n
\n
I couldn’t find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc.\n
\n
The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes.\n
\n
Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.\n
\n
Apparently I was being a derp somehow. …Anyways,\n
\n
My RAID drives are 16TB, e2image of this is 125gb, and 7z’d it comes down to just 63mb.\n
\n
I’ll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 16
+favouriteCount: 25
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701340910 {#2414
date: 2023-11-30 11:41:50.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1688 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1965 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 18292
-titleTs: "'automat':1 'backup':2 'data':11 'easier':10 'info':8 'inod':4 'partit':7 'recoveri':12 'tabl':5"
-bodyTs: "'125gb':208 '16tb':203 '40mb':169 '500gb':161 '63mb':217 '7z':144,210 '8gb':164 'alreadi':189 'and/or':94 'anyway':198 'anywher':237 'appar':191 'around':18 'backup':170,225 'boot':92 'catastroph':26 'come':213 'command':87 'comment':229 'compress':137,166 'couldn':100 'coupl':134,173 'creat':64 'd':211 'data':34 'date':143 'derp':196 'drive':44,135,162,183,201 'dropbox':154 'duckl':47 'e2image':51,131,204 'episod':7 'etc':155 'everi':95 'fdisk':85,125 'file':66,69,129 'find':102 'generat':82 'get':147 'good':1,61 'happen':27 'hour':14 'idea':62 'imag':65,158 'improv':239 'inod':40 'interv':90 'know':232 'l':86 'layout':78 'learn':11 'let':230 'll':219 'lost':38 'man':56 'mega':152 'metadata':157 'minut':174 'morn':2 'onlin':108 'partit':77 'play':17 'point':48 'post':220 'prebuilt':104 'quick':46 'raid':182,200 'raid1':187 'realis':22 'realli':30 'recoveri':35 'regular':89 'resili':190 'rsync':150 'run':130 'save':75,123 'say':53 'script':226 'servic':114,222 'solut':105 'somehow':197 'someth':25 'spot':236 'struggl':31 'system':70,73 'systemd':113 'tabl':41 'take':171 'text':128 'time':93 'timer':116,223 'today':5 'togeth':140 'unfortun':175 'upload':148 'use':83 'via':149 'week':96 'work':13,179 'would':29 'wrote':111 'wxhexeditor':20"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701374984
+visibility: "visible "
+apId: "https://lemmy.nz/post/3898548"
+editedAt: DateTimeImmutable @1702307273 {#1793
date: 2023-12-11 16:07:53.0 +01:00
}
+createdAt: DateTimeImmutable @1701288584 {#2402
date: 2023-11-29 21:09:44.0 +01:00
}
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
App\Entity\Entry {#2400
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1889 …}
+slug: "Automatic-backups-of-inode-tables-and-partition-info-for-easier"
+title: "Automatic backups of inode tables and partition info for easier data recovery"
+url: null
+body: """
Good morning all, in today’s episode of “What I learned during work hours”…\n
\n
I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive.\n
\n
A quick duckle pointed me to e2image, which says in the man:\n
\n
> It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals — at boot time, and/or every week or so.\n
\n
I couldn’t find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc.\n
\n
The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes.\n
\n
Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.\n
\n
Apparently I was being a derp somehow. …Anyways,\n
\n
My RAID drives are 16TB, e2image of this is 125gb, and 7z’d it comes down to just 63mb.\n
\n
I’ll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 16
+favouriteCount: 25
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701340910 {#2414
date: 2023-11-30 11:41:50.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1688 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1965 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 18292
-titleTs: "'automat':1 'backup':2 'data':11 'easier':10 'info':8 'inod':4 'partit':7 'recoveri':12 'tabl':5"
-bodyTs: "'125gb':208 '16tb':203 '40mb':169 '500gb':161 '63mb':217 '7z':144,210 '8gb':164 'alreadi':189 'and/or':94 'anyway':198 'anywher':237 'appar':191 'around':18 'backup':170,225 'boot':92 'catastroph':26 'come':213 'command':87 'comment':229 'compress':137,166 'couldn':100 'coupl':134,173 'creat':64 'd':211 'data':34 'date':143 'derp':196 'drive':44,135,162,183,201 'dropbox':154 'duckl':47 'e2image':51,131,204 'episod':7 'etc':155 'everi':95 'fdisk':85,125 'file':66,69,129 'find':102 'generat':82 'get':147 'good':1,61 'happen':27 'hour':14 'idea':62 'imag':65,158 'improv':239 'inod':40 'interv':90 'know':232 'l':86 'layout':78 'learn':11 'let':230 'll':219 'lost':38 'man':56 'mega':152 'metadata':157 'minut':174 'morn':2 'onlin':108 'partit':77 'play':17 'point':48 'post':220 'prebuilt':104 'quick':46 'raid':182,200 'raid1':187 'realis':22 'realli':30 'recoveri':35 'regular':89 'resili':190 'rsync':150 'run':130 'save':75,123 'say':53 'script':226 'servic':114,222 'solut':105 'somehow':197 'someth':25 'spot':236 'struggl':31 'system':70,73 'systemd':113 'tabl':41 'take':171 'text':128 'time':93 'timer':116,223 'today':5 'togeth':140 'unfortun':175 'upload':148 'use':83 'via':149 'week':96 'work':13,179 'would':29 'wrote':111 'wxhexeditor':20"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701374984
+visibility: "visible "
+apId: "https://lemmy.nz/post/3898548"
+editedAt: DateTimeImmutable @1702307273 {#1793
date: 2023-12-11 16:07:53.0 +01:00
}
+createdAt: DateTimeImmutable @1701288584 {#2402
date: 2023-11-29 21:09:44.0 +01:00
}
} |
|
Show voter details
|
5 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
6 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4040
+user: App\Entity\User {#3988 …}
+entry: App\Entity\Entry {#2400
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1889 …}
+slug: "Automatic-backups-of-inode-tables-and-partition-info-for-easier"
+title: "Automatic backups of inode tables and partition info for easier data recovery"
+url: null
+body: """
Good morning all, in today’s episode of “What I learned during work hours”…\n
\n
I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive.\n
\n
A quick duckle pointed me to e2image, which says in the man:\n
\n
> It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals — at boot time, and/or every week or so.\n
\n
I couldn’t find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc.\n
\n
The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes.\n
\n
Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.\n
\n
Apparently I was being a derp somehow. …Anyways,\n
\n
My RAID drives are 16TB, e2image of this is 125gb, and 7z’d it comes down to just 63mb.\n
\n
I’ll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 16
+favouriteCount: 25
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701340910 {#2414
date: 2023-11-30 11:41:50.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1688 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1965 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 18292
-titleTs: "'automat':1 'backup':2 'data':11 'easier':10 'info':8 'inod':4 'partit':7 'recoveri':12 'tabl':5"
-bodyTs: "'125gb':208 '16tb':203 '40mb':169 '500gb':161 '63mb':217 '7z':144,210 '8gb':164 'alreadi':189 'and/or':94 'anyway':198 'anywher':237 'appar':191 'around':18 'backup':170,225 'boot':92 'catastroph':26 'come':213 'command':87 'comment':229 'compress':137,166 'couldn':100 'coupl':134,173 'creat':64 'd':211 'data':34 'date':143 'derp':196 'drive':44,135,162,183,201 'dropbox':154 'duckl':47 'e2image':51,131,204 'episod':7 'etc':155 'everi':95 'fdisk':85,125 'file':66,69,129 'find':102 'generat':82 'get':147 'good':1,61 'happen':27 'hour':14 'idea':62 'imag':65,158 'improv':239 'inod':40 'interv':90 'know':232 'l':86 'layout':78 'learn':11 'let':230 'll':219 'lost':38 'man':56 'mega':152 'metadata':157 'minut':174 'morn':2 'onlin':108 'partit':77 'play':17 'point':48 'post':220 'prebuilt':104 'quick':46 'raid':182,200 'raid1':187 'realis':22 'realli':30 'recoveri':35 'regular':89 'resili':190 'rsync':150 'run':130 'save':75,123 'say':53 'script':226 'servic':114,222 'solut':105 'somehow':197 'someth':25 'spot':236 'struggl':31 'system':70,73 'systemd':113 'tabl':41 'take':171 'text':128 'time':93 'timer':116,223 'today':5 'togeth':140 'unfortun':175 'upload':148 'use':83 'via':149 'week':96 'work':13,179 'would':29 'wrote':111 'wxhexeditor':20"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701374984
+visibility: "visible "
+apId: "https://lemmy.nz/post/3898548"
+editedAt: DateTimeImmutable @1702307273 {#1793
date: 2023-12-11 16:07:53.0 +01:00
}
+createdAt: DateTimeImmutable @1701288584 {#2402
date: 2023-11-29 21:09:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "I’m really curious as to why go to all this trouble instead of using a proper file level backup and restore solution."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1702313623 {#4049
date: 2023-12-11 17:53:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#4038 …}
+nested: Doctrine\ORM\PersistentCollection {#4036 …}
+votes: Doctrine\ORM\PersistentCollection {#4034 …}
+reports: Doctrine\ORM\PersistentCollection {#4032 …}
+favourites: Doctrine\ORM\PersistentCollection {#4000 …}
+notifications: Doctrine\ORM\PersistentCollection {#4004 …}
-id: 178801
-bodyTs: "'backup':20 'curious':4 'file':18 'go':8 'instead':13 'level':19 'm':2 'proper':17 'realli':3 'restor':22 'solut':23 'troubl':12 'use':15"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5682024"
+editedAt: null
+createdAt: DateTimeImmutable @1701298648 {#3985
date: 2023-11-29 23:57:28.0 +01:00
}
} |
|
Show voter details
|
7 |
DENIED
|
edit
|
App\Entity\EntryComment {#4040
+user: App\Entity\User {#3988 …}
+entry: App\Entity\Entry {#2400
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1889 …}
+slug: "Automatic-backups-of-inode-tables-and-partition-info-for-easier"
+title: "Automatic backups of inode tables and partition info for easier data recovery"
+url: null
+body: """
Good morning all, in today’s episode of “What I learned during work hours”…\n
\n
I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive.\n
\n
A quick duckle pointed me to e2image, which says in the man:\n
\n
> It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals — at boot time, and/or every week or so.\n
\n
I couldn’t find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc.\n
\n
The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes.\n
\n
Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.\n
\n
Apparently I was being a derp somehow. …Anyways,\n
\n
My RAID drives are 16TB, e2image of this is 125gb, and 7z’d it comes down to just 63mb.\n
\n
I’ll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 16
+favouriteCount: 25
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701340910 {#2414
date: 2023-11-30 11:41:50.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1688 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1965 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 18292
-titleTs: "'automat':1 'backup':2 'data':11 'easier':10 'info':8 'inod':4 'partit':7 'recoveri':12 'tabl':5"
-bodyTs: "'125gb':208 '16tb':203 '40mb':169 '500gb':161 '63mb':217 '7z':144,210 '8gb':164 'alreadi':189 'and/or':94 'anyway':198 'anywher':237 'appar':191 'around':18 'backup':170,225 'boot':92 'catastroph':26 'come':213 'command':87 'comment':229 'compress':137,166 'couldn':100 'coupl':134,173 'creat':64 'd':211 'data':34 'date':143 'derp':196 'drive':44,135,162,183,201 'dropbox':154 'duckl':47 'e2image':51,131,204 'episod':7 'etc':155 'everi':95 'fdisk':85,125 'file':66,69,129 'find':102 'generat':82 'get':147 'good':1,61 'happen':27 'hour':14 'idea':62 'imag':65,158 'improv':239 'inod':40 'interv':90 'know':232 'l':86 'layout':78 'learn':11 'let':230 'll':219 'lost':38 'man':56 'mega':152 'metadata':157 'minut':174 'morn':2 'onlin':108 'partit':77 'play':17 'point':48 'post':220 'prebuilt':104 'quick':46 'raid':182,200 'raid1':187 'realis':22 'realli':30 'recoveri':35 'regular':89 'resili':190 'rsync':150 'run':130 'save':75,123 'say':53 'script':226 'servic':114,222 'solut':105 'somehow':197 'someth':25 'spot':236 'struggl':31 'system':70,73 'systemd':113 'tabl':41 'take':171 'text':128 'time':93 'timer':116,223 'today':5 'togeth':140 'unfortun':175 'upload':148 'use':83 'via':149 'week':96 'work':13,179 'would':29 'wrote':111 'wxhexeditor':20"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701374984
+visibility: "visible "
+apId: "https://lemmy.nz/post/3898548"
+editedAt: DateTimeImmutable @1702307273 {#1793
date: 2023-12-11 16:07:53.0 +01:00
}
+createdAt: DateTimeImmutable @1701288584 {#2402
date: 2023-11-29 21:09:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "I’m really curious as to why go to all this trouble instead of using a proper file level backup and restore solution."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1702313623 {#4049
date: 2023-12-11 17:53:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#4038 …}
+nested: Doctrine\ORM\PersistentCollection {#4036 …}
+votes: Doctrine\ORM\PersistentCollection {#4034 …}
+reports: Doctrine\ORM\PersistentCollection {#4032 …}
+favourites: Doctrine\ORM\PersistentCollection {#4000 …}
+notifications: Doctrine\ORM\PersistentCollection {#4004 …}
-id: 178801
-bodyTs: "'backup':20 'curious':4 'file':18 'go':8 'instead':13 'level':19 'm':2 'proper':17 'realli':3 'restor':22 'solut':23 'troubl':12 'use':15"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5682024"
+editedAt: null
+createdAt: DateTimeImmutable @1701298648 {#3985
date: 2023-11-29 23:57:28.0 +01:00
}
} |
|
Show voter details
|
8 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4040
+user: App\Entity\User {#3988 …}
+entry: App\Entity\Entry {#2400
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1889 …}
+slug: "Automatic-backups-of-inode-tables-and-partition-info-for-easier"
+title: "Automatic backups of inode tables and partition info for easier data recovery"
+url: null
+body: """
Good morning all, in today’s episode of “What I learned during work hours”…\n
\n
I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive.\n
\n
A quick duckle pointed me to e2image, which says in the man:\n
\n
> It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals — at boot time, and/or every week or so.\n
\n
I couldn’t find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc.\n
\n
The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes.\n
\n
Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.\n
\n
Apparently I was being a derp somehow. …Anyways,\n
\n
My RAID drives are 16TB, e2image of this is 125gb, and 7z’d it comes down to just 63mb.\n
\n
I’ll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 16
+favouriteCount: 25
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701340910 {#2414
date: 2023-11-30 11:41:50.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1688 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1965 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 18292
-titleTs: "'automat':1 'backup':2 'data':11 'easier':10 'info':8 'inod':4 'partit':7 'recoveri':12 'tabl':5"
-bodyTs: "'125gb':208 '16tb':203 '40mb':169 '500gb':161 '63mb':217 '7z':144,210 '8gb':164 'alreadi':189 'and/or':94 'anyway':198 'anywher':237 'appar':191 'around':18 'backup':170,225 'boot':92 'catastroph':26 'come':213 'command':87 'comment':229 'compress':137,166 'couldn':100 'coupl':134,173 'creat':64 'd':211 'data':34 'date':143 'derp':196 'drive':44,135,162,183,201 'dropbox':154 'duckl':47 'e2image':51,131,204 'episod':7 'etc':155 'everi':95 'fdisk':85,125 'file':66,69,129 'find':102 'generat':82 'get':147 'good':1,61 'happen':27 'hour':14 'idea':62 'imag':65,158 'improv':239 'inod':40 'interv':90 'know':232 'l':86 'layout':78 'learn':11 'let':230 'll':219 'lost':38 'man':56 'mega':152 'metadata':157 'minut':174 'morn':2 'onlin':108 'partit':77 'play':17 'point':48 'post':220 'prebuilt':104 'quick':46 'raid':182,200 'raid1':187 'realis':22 'realli':30 'recoveri':35 'regular':89 'resili':190 'rsync':150 'run':130 'save':75,123 'say':53 'script':226 'servic':114,222 'solut':105 'somehow':197 'someth':25 'spot':236 'struggl':31 'system':70,73 'systemd':113 'tabl':41 'take':171 'text':128 'time':93 'timer':116,223 'today':5 'togeth':140 'unfortun':175 'upload':148 'use':83 'via':149 'week':96 'work':13,179 'would':29 'wrote':111 'wxhexeditor':20"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701374984
+visibility: "visible "
+apId: "https://lemmy.nz/post/3898548"
+editedAt: DateTimeImmutable @1702307273 {#1793
date: 2023-12-11 16:07:53.0 +01:00
}
+createdAt: DateTimeImmutable @1701288584 {#2402
date: 2023-11-29 21:09:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "I’m really curious as to why go to all this trouble instead of using a proper file level backup and restore solution."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1702313623 {#4049
date: 2023-12-11 17:53:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#4038 …}
+nested: Doctrine\ORM\PersistentCollection {#4036 …}
+votes: Doctrine\ORM\PersistentCollection {#4034 …}
+reports: Doctrine\ORM\PersistentCollection {#4032 …}
+favourites: Doctrine\ORM\PersistentCollection {#4000 …}
+notifications: Doctrine\ORM\PersistentCollection {#4004 …}
-id: 178801
-bodyTs: "'backup':20 'curious':4 'file':18 'go':8 'instead':13 'level':19 'm':2 'proper':17 'realli':3 'restor':22 'solut':23 'troubl':12 'use':15"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5682024"
+editedAt: null
+createdAt: DateTimeImmutable @1701298648 {#3985
date: 2023-11-29 23:57:28.0 +01:00
}
} |
|
Show voter details
|
9 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
10 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4077
+user: App\Entity\User {#4060 …}
+entry: App\Entity\Entry {#2400
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1889 …}
+slug: "Automatic-backups-of-inode-tables-and-partition-info-for-easier"
+title: "Automatic backups of inode tables and partition info for easier data recovery"
+url: null
+body: """
Good morning all, in today’s episode of “What I learned during work hours”…\n
\n
I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive.\n
\n
A quick duckle pointed me to e2image, which says in the man:\n
\n
> It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals — at boot time, and/or every week or so.\n
\n
I couldn’t find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc.\n
\n
The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes.\n
\n
Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.\n
\n
Apparently I was being a derp somehow. …Anyways,\n
\n
My RAID drives are 16TB, e2image of this is 125gb, and 7z’d it comes down to just 63mb.\n
\n
I’ll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 16
+favouriteCount: 25
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701340910 {#2414
date: 2023-11-30 11:41:50.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1688 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1965 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 18292
-titleTs: "'automat':1 'backup':2 'data':11 'easier':10 'info':8 'inod':4 'partit':7 'recoveri':12 'tabl':5"
-bodyTs: "'125gb':208 '16tb':203 '40mb':169 '500gb':161 '63mb':217 '7z':144,210 '8gb':164 'alreadi':189 'and/or':94 'anyway':198 'anywher':237 'appar':191 'around':18 'backup':170,225 'boot':92 'catastroph':26 'come':213 'command':87 'comment':229 'compress':137,166 'couldn':100 'coupl':134,173 'creat':64 'd':211 'data':34 'date':143 'derp':196 'drive':44,135,162,183,201 'dropbox':154 'duckl':47 'e2image':51,131,204 'episod':7 'etc':155 'everi':95 'fdisk':85,125 'file':66,69,129 'find':102 'generat':82 'get':147 'good':1,61 'happen':27 'hour':14 'idea':62 'imag':65,158 'improv':239 'inod':40 'interv':90 'know':232 'l':86 'layout':78 'learn':11 'let':230 'll':219 'lost':38 'man':56 'mega':152 'metadata':157 'minut':174 'morn':2 'onlin':108 'partit':77 'play':17 'point':48 'post':220 'prebuilt':104 'quick':46 'raid':182,200 'raid1':187 'realis':22 'realli':30 'recoveri':35 'regular':89 'resili':190 'rsync':150 'run':130 'save':75,123 'say':53 'script':226 'servic':114,222 'solut':105 'somehow':197 'someth':25 'spot':236 'struggl':31 'system':70,73 'systemd':113 'tabl':41 'take':171 'text':128 'time':93 'timer':116,223 'today':5 'togeth':140 'unfortun':175 'upload':148 'use':83 'via':149 'week':96 'work':13,179 'would':29 'wrote':111 'wxhexeditor':20"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701374984
+visibility: "visible "
+apId: "https://lemmy.nz/post/3898548"
+editedAt: DateTimeImmutable @1702307273 {#1793
date: 2023-12-11 16:07:53.0 +01:00
}
+createdAt: DateTimeImmutable @1701288584 {#2402
date: 2023-11-29 21:09:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
May I point out that all a RAID1 does is sync the blocks between two drives. It won’t protect against writing something dumb that would mess up the filesystem, it will just dutifully sync it.\n
\n
You *should* be able to back up ext data from a filesystem on a RAID array, unless I’m confused about what e2image actually does. Are you trying to use it on the underlying drive devices by any chance? You have to point it at the RAID device on top of them, something like /dev/md1 rather than /dev/sda1.\n
\n
This sounds like a good extra backup to have but don’t let it lull you into a false sense of security. It may help recover from a very specific kind of mistake but the recovery may be very specific as well. It’s not file backup.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1702305922 {#4083
date: 2023-12-11 15:45:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#4075 …}
+nested: Doctrine\ORM\PersistentCollection {#4073 …}
+votes: Doctrine\ORM\PersistentCollection {#4071 …}
+reports: Doctrine\ORM\PersistentCollection {#4068 …}
+favourites: Doctrine\ORM\PersistentCollection {#4064 …}
+notifications: Doctrine\ORM\PersistentCollection {#4062 …}
-id: 179949
-bodyTs: "'/dev/md1':91 '/dev/sda1':94 'abl':40 'actual':60 'array':52 'back':42 'backup':101,141 'block':13 'chanc':75 'confus':56 'data':45 'devic':72,84 'drive':16,71 'dumb':24 'duti':34 'e2image':59 'ext':44 'extra':100 'fals':113 'file':140 'filesystem':30,48 'good':99 'help':119 'kind':125 'let':107 'like':90,97 'lull':109 'm':55 'may':1,118,131 'mess':27 'mistak':127 'point':3,79 'protect':20 'raid':51,83 'raid1':8 'rather':92 'recov':120 'recoveri':130 'secur':116 'sens':114 'someth':23,89 'sound':96 'specif':124,134 'sync':11,35 'top':86 'tri':64 'two':15 'under':70 'unless':53 'use':66 'well':136 'won':18 'would':26 'write':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4982628"
+editedAt: null
+createdAt: DateTimeImmutable @1701326843 {#4081
date: 2023-11-30 07:47:23.0 +01:00
}
} |
|
Show voter details
|
11 |
DENIED
|
edit
|
App\Entity\EntryComment {#4077
+user: App\Entity\User {#4060 …}
+entry: App\Entity\Entry {#2400
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1889 …}
+slug: "Automatic-backups-of-inode-tables-and-partition-info-for-easier"
+title: "Automatic backups of inode tables and partition info for easier data recovery"
+url: null
+body: """
Good morning all, in today’s episode of “What I learned during work hours”…\n
\n
I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive.\n
\n
A quick duckle pointed me to e2image, which says in the man:\n
\n
> It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals — at boot time, and/or every week or so.\n
\n
I couldn’t find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc.\n
\n
The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes.\n
\n
Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.\n
\n
Apparently I was being a derp somehow. …Anyways,\n
\n
My RAID drives are 16TB, e2image of this is 125gb, and 7z’d it comes down to just 63mb.\n
\n
I’ll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 16
+favouriteCount: 25
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701340910 {#2414
date: 2023-11-30 11:41:50.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1688 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1965 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 18292
-titleTs: "'automat':1 'backup':2 'data':11 'easier':10 'info':8 'inod':4 'partit':7 'recoveri':12 'tabl':5"
-bodyTs: "'125gb':208 '16tb':203 '40mb':169 '500gb':161 '63mb':217 '7z':144,210 '8gb':164 'alreadi':189 'and/or':94 'anyway':198 'anywher':237 'appar':191 'around':18 'backup':170,225 'boot':92 'catastroph':26 'come':213 'command':87 'comment':229 'compress':137,166 'couldn':100 'coupl':134,173 'creat':64 'd':211 'data':34 'date':143 'derp':196 'drive':44,135,162,183,201 'dropbox':154 'duckl':47 'e2image':51,131,204 'episod':7 'etc':155 'everi':95 'fdisk':85,125 'file':66,69,129 'find':102 'generat':82 'get':147 'good':1,61 'happen':27 'hour':14 'idea':62 'imag':65,158 'improv':239 'inod':40 'interv':90 'know':232 'l':86 'layout':78 'learn':11 'let':230 'll':219 'lost':38 'man':56 'mega':152 'metadata':157 'minut':174 'morn':2 'onlin':108 'partit':77 'play':17 'point':48 'post':220 'prebuilt':104 'quick':46 'raid':182,200 'raid1':187 'realis':22 'realli':30 'recoveri':35 'regular':89 'resili':190 'rsync':150 'run':130 'save':75,123 'say':53 'script':226 'servic':114,222 'solut':105 'somehow':197 'someth':25 'spot':236 'struggl':31 'system':70,73 'systemd':113 'tabl':41 'take':171 'text':128 'time':93 'timer':116,223 'today':5 'togeth':140 'unfortun':175 'upload':148 'use':83 'via':149 'week':96 'work':13,179 'would':29 'wrote':111 'wxhexeditor':20"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701374984
+visibility: "visible "
+apId: "https://lemmy.nz/post/3898548"
+editedAt: DateTimeImmutable @1702307273 {#1793
date: 2023-12-11 16:07:53.0 +01:00
}
+createdAt: DateTimeImmutable @1701288584 {#2402
date: 2023-11-29 21:09:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
May I point out that all a RAID1 does is sync the blocks between two drives. It won’t protect against writing something dumb that would mess up the filesystem, it will just dutifully sync it.\n
\n
You *should* be able to back up ext data from a filesystem on a RAID array, unless I’m confused about what e2image actually does. Are you trying to use it on the underlying drive devices by any chance? You have to point it at the RAID device on top of them, something like /dev/md1 rather than /dev/sda1.\n
\n
This sounds like a good extra backup to have but don’t let it lull you into a false sense of security. It may help recover from a very specific kind of mistake but the recovery may be very specific as well. It’s not file backup.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1702305922 {#4083
date: 2023-12-11 15:45:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#4075 …}
+nested: Doctrine\ORM\PersistentCollection {#4073 …}
+votes: Doctrine\ORM\PersistentCollection {#4071 …}
+reports: Doctrine\ORM\PersistentCollection {#4068 …}
+favourites: Doctrine\ORM\PersistentCollection {#4064 …}
+notifications: Doctrine\ORM\PersistentCollection {#4062 …}
-id: 179949
-bodyTs: "'/dev/md1':91 '/dev/sda1':94 'abl':40 'actual':60 'array':52 'back':42 'backup':101,141 'block':13 'chanc':75 'confus':56 'data':45 'devic':72,84 'drive':16,71 'dumb':24 'duti':34 'e2image':59 'ext':44 'extra':100 'fals':113 'file':140 'filesystem':30,48 'good':99 'help':119 'kind':125 'let':107 'like':90,97 'lull':109 'm':55 'may':1,118,131 'mess':27 'mistak':127 'point':3,79 'protect':20 'raid':51,83 'raid1':8 'rather':92 'recov':120 'recoveri':130 'secur':116 'sens':114 'someth':23,89 'sound':96 'specif':124,134 'sync':11,35 'top':86 'tri':64 'two':15 'under':70 'unless':53 'use':66 'well':136 'won':18 'would':26 'write':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4982628"
+editedAt: null
+createdAt: DateTimeImmutable @1701326843 {#4081
date: 2023-11-30 07:47:23.0 +01:00
}
} |
|
Show voter details
|
12 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4077
+user: App\Entity\User {#4060 …}
+entry: App\Entity\Entry {#2400
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1889 …}
+slug: "Automatic-backups-of-inode-tables-and-partition-info-for-easier"
+title: "Automatic backups of inode tables and partition info for easier data recovery"
+url: null
+body: """
Good morning all, in today’s episode of “What I learned during work hours”…\n
\n
I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive.\n
\n
A quick duckle pointed me to e2image, which says in the man:\n
\n
> It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals — at boot time, and/or every week or so.\n
\n
I couldn’t find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc.\n
\n
The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes.\n
\n
Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.\n
\n
Apparently I was being a derp somehow. …Anyways,\n
\n
My RAID drives are 16TB, e2image of this is 125gb, and 7z’d it comes down to just 63mb.\n
\n
I’ll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 16
+favouriteCount: 25
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701340910 {#2414
date: 2023-11-30 11:41:50.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1688 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1965 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 18292
-titleTs: "'automat':1 'backup':2 'data':11 'easier':10 'info':8 'inod':4 'partit':7 'recoveri':12 'tabl':5"
-bodyTs: "'125gb':208 '16tb':203 '40mb':169 '500gb':161 '63mb':217 '7z':144,210 '8gb':164 'alreadi':189 'and/or':94 'anyway':198 'anywher':237 'appar':191 'around':18 'backup':170,225 'boot':92 'catastroph':26 'come':213 'command':87 'comment':229 'compress':137,166 'couldn':100 'coupl':134,173 'creat':64 'd':211 'data':34 'date':143 'derp':196 'drive':44,135,162,183,201 'dropbox':154 'duckl':47 'e2image':51,131,204 'episod':7 'etc':155 'everi':95 'fdisk':85,125 'file':66,69,129 'find':102 'generat':82 'get':147 'good':1,61 'happen':27 'hour':14 'idea':62 'imag':65,158 'improv':239 'inod':40 'interv':90 'know':232 'l':86 'layout':78 'learn':11 'let':230 'll':219 'lost':38 'man':56 'mega':152 'metadata':157 'minut':174 'morn':2 'onlin':108 'partit':77 'play':17 'point':48 'post':220 'prebuilt':104 'quick':46 'raid':182,200 'raid1':187 'realis':22 'realli':30 'recoveri':35 'regular':89 'resili':190 'rsync':150 'run':130 'save':75,123 'say':53 'script':226 'servic':114,222 'solut':105 'somehow':197 'someth':25 'spot':236 'struggl':31 'system':70,73 'systemd':113 'tabl':41 'take':171 'text':128 'time':93 'timer':116,223 'today':5 'togeth':140 'unfortun':175 'upload':148 'use':83 'via':149 'week':96 'work':13,179 'would':29 'wrote':111 'wxhexeditor':20"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701374984
+visibility: "visible "
+apId: "https://lemmy.nz/post/3898548"
+editedAt: DateTimeImmutable @1702307273 {#1793
date: 2023-12-11 16:07:53.0 +01:00
}
+createdAt: DateTimeImmutable @1701288584 {#2402
date: 2023-11-29 21:09:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
May I point out that all a RAID1 does is sync the blocks between two drives. It won’t protect against writing something dumb that would mess up the filesystem, it will just dutifully sync it.\n
\n
You *should* be able to back up ext data from a filesystem on a RAID array, unless I’m confused about what e2image actually does. Are you trying to use it on the underlying drive devices by any chance? You have to point it at the RAID device on top of them, something like /dev/md1 rather than /dev/sda1.\n
\n
This sounds like a good extra backup to have but don’t let it lull you into a false sense of security. It may help recover from a very specific kind of mistake but the recovery may be very specific as well. It’s not file backup.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1702305922 {#4083
date: 2023-12-11 15:45:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#4075 …}
+nested: Doctrine\ORM\PersistentCollection {#4073 …}
+votes: Doctrine\ORM\PersistentCollection {#4071 …}
+reports: Doctrine\ORM\PersistentCollection {#4068 …}
+favourites: Doctrine\ORM\PersistentCollection {#4064 …}
+notifications: Doctrine\ORM\PersistentCollection {#4062 …}
-id: 179949
-bodyTs: "'/dev/md1':91 '/dev/sda1':94 'abl':40 'actual':60 'array':52 'back':42 'backup':101,141 'block':13 'chanc':75 'confus':56 'data':45 'devic':72,84 'drive':16,71 'dumb':24 'duti':34 'e2image':59 'ext':44 'extra':100 'fals':113 'file':140 'filesystem':30,48 'good':99 'help':119 'kind':125 'let':107 'like':90,97 'lull':109 'm':55 'may':1,118,131 'mess':27 'mistak':127 'point':3,79 'protect':20 'raid':51,83 'raid1':8 'rather':92 'recov':120 'recoveri':130 'secur':116 'sens':114 'someth':23,89 'sound':96 'specif':124,134 'sync':11,35 'top':86 'tri':64 'two':15 'under':70 'unless':53 'use':66 'well':136 'won':18 'would':26 'write':22"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.nl/comment/4982628"
+editedAt: null
+createdAt: DateTimeImmutable @1701326843 {#4081
date: 2023-11-30 07:47:23.0 +01:00
}
} |
|
Show voter details
|
13 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
14 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4158
+user: App\Entity\User {#4171 …}
+entry: App\Entity\Entry {#2400
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1889 …}
+slug: "Automatic-backups-of-inode-tables-and-partition-info-for-easier"
+title: "Automatic backups of inode tables and partition info for easier data recovery"
+url: null
+body: """
Good morning all, in today’s episode of “What I learned during work hours”…\n
\n
I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive.\n
\n
A quick duckle pointed me to e2image, which says in the man:\n
\n
> It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals — at boot time, and/or every week or so.\n
\n
I couldn’t find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc.\n
\n
The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes.\n
\n
Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.\n
\n
Apparently I was being a derp somehow. …Anyways,\n
\n
My RAID drives are 16TB, e2image of this is 125gb, and 7z’d it comes down to just 63mb.\n
\n
I’ll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 16
+favouriteCount: 25
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701340910 {#2414
date: 2023-11-30 11:41:50.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1688 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1965 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 18292
-titleTs: "'automat':1 'backup':2 'data':11 'easier':10 'info':8 'inod':4 'partit':7 'recoveri':12 'tabl':5"
-bodyTs: "'125gb':208 '16tb':203 '40mb':169 '500gb':161 '63mb':217 '7z':144,210 '8gb':164 'alreadi':189 'and/or':94 'anyway':198 'anywher':237 'appar':191 'around':18 'backup':170,225 'boot':92 'catastroph':26 'come':213 'command':87 'comment':229 'compress':137,166 'couldn':100 'coupl':134,173 'creat':64 'd':211 'data':34 'date':143 'derp':196 'drive':44,135,162,183,201 'dropbox':154 'duckl':47 'e2image':51,131,204 'episod':7 'etc':155 'everi':95 'fdisk':85,125 'file':66,69,129 'find':102 'generat':82 'get':147 'good':1,61 'happen':27 'hour':14 'idea':62 'imag':65,158 'improv':239 'inod':40 'interv':90 'know':232 'l':86 'layout':78 'learn':11 'let':230 'll':219 'lost':38 'man':56 'mega':152 'metadata':157 'minut':174 'morn':2 'onlin':108 'partit':77 'play':17 'point':48 'post':220 'prebuilt':104 'quick':46 'raid':182,200 'raid1':187 'realis':22 'realli':30 'recoveri':35 'regular':89 'resili':190 'rsync':150 'run':130 'save':75,123 'say':53 'script':226 'servic':114,222 'solut':105 'somehow':197 'someth':25 'spot':236 'struggl':31 'system':70,73 'systemd':113 'tabl':41 'take':171 'text':128 'time':93 'timer':116,223 'today':5 'togeth':140 'unfortun':175 'upload':148 'use':83 'via':149 'week':96 'work':13,179 'would':29 'wrote':111 'wxhexeditor':20"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701374984
+visibility: "visible "
+apId: "https://lemmy.nz/post/3898548"
+editedAt: DateTimeImmutable @1702307273 {#1793
date: 2023-12-11 16:07:53.0 +01:00
}
+createdAt: DateTimeImmutable @1701288584 {#2402
date: 2023-11-29 21:09:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
> e2image\n
\n
There’s a good reason for the 2 in the name.\n
\n
Today we have ext4, and ZFS of course.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1702250269 {#4153
date: 2023-12-11 00:17:49.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#4159 …}
+nested: Doctrine\ORM\PersistentCollection {#4161 …}
+votes: Doctrine\ORM\PersistentCollection {#4163 …}
+reports: Doctrine\ORM\PersistentCollection {#4165 …}
+favourites: Doctrine\ORM\PersistentCollection {#4167 …}
+notifications: Doctrine\ORM\PersistentCollection {#4169 …}
-id: 178908
-bodyTs: "'2':9 'cours':20 'e2image':1 'ext4':16 'good':5 'name':12 'reason':6 'today':13 'zfs':18"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5682708"
+editedAt: null
+createdAt: DateTimeImmutable @1701300888 {#4154
date: 2023-11-30 00:34:48.0 +01:00
}
} |
|
Show voter details
|
15 |
DENIED
|
edit
|
App\Entity\EntryComment {#4158
+user: App\Entity\User {#4171 …}
+entry: App\Entity\Entry {#2400
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1889 …}
+slug: "Automatic-backups-of-inode-tables-and-partition-info-for-easier"
+title: "Automatic backups of inode tables and partition info for easier data recovery"
+url: null
+body: """
Good morning all, in today’s episode of “What I learned during work hours”…\n
\n
I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive.\n
\n
A quick duckle pointed me to e2image, which says in the man:\n
\n
> It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals — at boot time, and/or every week or so.\n
\n
I couldn’t find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc.\n
\n
The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes.\n
\n
Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.\n
\n
Apparently I was being a derp somehow. …Anyways,\n
\n
My RAID drives are 16TB, e2image of this is 125gb, and 7z’d it comes down to just 63mb.\n
\n
I’ll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 16
+favouriteCount: 25
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701340910 {#2414
date: 2023-11-30 11:41:50.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1688 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1965 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 18292
-titleTs: "'automat':1 'backup':2 'data':11 'easier':10 'info':8 'inod':4 'partit':7 'recoveri':12 'tabl':5"
-bodyTs: "'125gb':208 '16tb':203 '40mb':169 '500gb':161 '63mb':217 '7z':144,210 '8gb':164 'alreadi':189 'and/or':94 'anyway':198 'anywher':237 'appar':191 'around':18 'backup':170,225 'boot':92 'catastroph':26 'come':213 'command':87 'comment':229 'compress':137,166 'couldn':100 'coupl':134,173 'creat':64 'd':211 'data':34 'date':143 'derp':196 'drive':44,135,162,183,201 'dropbox':154 'duckl':47 'e2image':51,131,204 'episod':7 'etc':155 'everi':95 'fdisk':85,125 'file':66,69,129 'find':102 'generat':82 'get':147 'good':1,61 'happen':27 'hour':14 'idea':62 'imag':65,158 'improv':239 'inod':40 'interv':90 'know':232 'l':86 'layout':78 'learn':11 'let':230 'll':219 'lost':38 'man':56 'mega':152 'metadata':157 'minut':174 'morn':2 'onlin':108 'partit':77 'play':17 'point':48 'post':220 'prebuilt':104 'quick':46 'raid':182,200 'raid1':187 'realis':22 'realli':30 'recoveri':35 'regular':89 'resili':190 'rsync':150 'run':130 'save':75,123 'say':53 'script':226 'servic':114,222 'solut':105 'somehow':197 'someth':25 'spot':236 'struggl':31 'system':70,73 'systemd':113 'tabl':41 'take':171 'text':128 'time':93 'timer':116,223 'today':5 'togeth':140 'unfortun':175 'upload':148 'use':83 'via':149 'week':96 'work':13,179 'would':29 'wrote':111 'wxhexeditor':20"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701374984
+visibility: "visible "
+apId: "https://lemmy.nz/post/3898548"
+editedAt: DateTimeImmutable @1702307273 {#1793
date: 2023-12-11 16:07:53.0 +01:00
}
+createdAt: DateTimeImmutable @1701288584 {#2402
date: 2023-11-29 21:09:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
> e2image\n
\n
There’s a good reason for the 2 in the name.\n
\n
Today we have ext4, and ZFS of course.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1702250269 {#4153
date: 2023-12-11 00:17:49.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#4159 …}
+nested: Doctrine\ORM\PersistentCollection {#4161 …}
+votes: Doctrine\ORM\PersistentCollection {#4163 …}
+reports: Doctrine\ORM\PersistentCollection {#4165 …}
+favourites: Doctrine\ORM\PersistentCollection {#4167 …}
+notifications: Doctrine\ORM\PersistentCollection {#4169 …}
-id: 178908
-bodyTs: "'2':9 'cours':20 'e2image':1 'ext4':16 'good':5 'name':12 'reason':6 'today':13 'zfs':18"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5682708"
+editedAt: null
+createdAt: DateTimeImmutable @1701300888 {#4154
date: 2023-11-30 00:34:48.0 +01:00
}
} |
|
Show voter details
|
16 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4158
+user: App\Entity\User {#4171 …}
+entry: App\Entity\Entry {#2400
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1889 …}
+slug: "Automatic-backups-of-inode-tables-and-partition-info-for-easier"
+title: "Automatic backups of inode tables and partition info for easier data recovery"
+url: null
+body: """
Good morning all, in today’s episode of “What I learned during work hours”…\n
\n
I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive.\n
\n
A quick duckle pointed me to e2image, which says in the man:\n
\n
> It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals — at boot time, and/or every week or so.\n
\n
I couldn’t find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc.\n
\n
The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes.\n
\n
Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.\n
\n
Apparently I was being a derp somehow. …Anyways,\n
\n
My RAID drives are 16TB, e2image of this is 125gb, and 7z’d it comes down to just 63mb.\n
\n
I’ll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 16
+favouriteCount: 25
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701340910 {#2414
date: 2023-11-30 11:41:50.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1688 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1965 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 18292
-titleTs: "'automat':1 'backup':2 'data':11 'easier':10 'info':8 'inod':4 'partit':7 'recoveri':12 'tabl':5"
-bodyTs: "'125gb':208 '16tb':203 '40mb':169 '500gb':161 '63mb':217 '7z':144,210 '8gb':164 'alreadi':189 'and/or':94 'anyway':198 'anywher':237 'appar':191 'around':18 'backup':170,225 'boot':92 'catastroph':26 'come':213 'command':87 'comment':229 'compress':137,166 'couldn':100 'coupl':134,173 'creat':64 'd':211 'data':34 'date':143 'derp':196 'drive':44,135,162,183,201 'dropbox':154 'duckl':47 'e2image':51,131,204 'episod':7 'etc':155 'everi':95 'fdisk':85,125 'file':66,69,129 'find':102 'generat':82 'get':147 'good':1,61 'happen':27 'hour':14 'idea':62 'imag':65,158 'improv':239 'inod':40 'interv':90 'know':232 'l':86 'layout':78 'learn':11 'let':230 'll':219 'lost':38 'man':56 'mega':152 'metadata':157 'minut':174 'morn':2 'onlin':108 'partit':77 'play':17 'point':48 'post':220 'prebuilt':104 'quick':46 'raid':182,200 'raid1':187 'realis':22 'realli':30 'recoveri':35 'regular':89 'resili':190 'rsync':150 'run':130 'save':75,123 'say':53 'script':226 'servic':114,222 'solut':105 'somehow':197 'someth':25 'spot':236 'struggl':31 'system':70,73 'systemd':113 'tabl':41 'take':171 'text':128 'time':93 'timer':116,223 'today':5 'togeth':140 'unfortun':175 'upload':148 'use':83 'via':149 'week':96 'work':13,179 'would':29 'wrote':111 'wxhexeditor':20"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701374984
+visibility: "visible "
+apId: "https://lemmy.nz/post/3898548"
+editedAt: DateTimeImmutable @1702307273 {#1793
date: 2023-12-11 16:07:53.0 +01:00
}
+createdAt: DateTimeImmutable @1701288584 {#2402
date: 2023-11-29 21:09:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
> e2image\n
\n
There’s a good reason for the 2 in the name.\n
\n
Today we have ext4, and ZFS of course.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1702250269 {#4153
date: 2023-12-11 00:17:49.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#4159 …}
+nested: Doctrine\ORM\PersistentCollection {#4161 …}
+votes: Doctrine\ORM\PersistentCollection {#4163 …}
+reports: Doctrine\ORM\PersistentCollection {#4165 …}
+favourites: Doctrine\ORM\PersistentCollection {#4167 …}
+notifications: Doctrine\ORM\PersistentCollection {#4169 …}
-id: 178908
-bodyTs: "'2':9 'cours':20 'e2image':1 'ext4':16 'good':5 'name':12 'reason':6 'today':13 'zfs':18"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5682708"
+editedAt: null
+createdAt: DateTimeImmutable @1701300888 {#4154
date: 2023-11-30 00:34:48.0 +01:00
}
} |
|
Show voter details
|
17 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
18 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4307
+user: App\Entity\User {#4320 …}
+entry: App\Entity\Entry {#2400
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1889 …}
+slug: "Automatic-backups-of-inode-tables-and-partition-info-for-easier"
+title: "Automatic backups of inode tables and partition info for easier data recovery"
+url: null
+body: """
Good morning all, in today’s episode of “What I learned during work hours”…\n
\n
I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive.\n
\n
A quick duckle pointed me to e2image, which says in the man:\n
\n
> It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals — at boot time, and/or every week or so.\n
\n
I couldn’t find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc.\n
\n
The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes.\n
\n
Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.\n
\n
Apparently I was being a derp somehow. …Anyways,\n
\n
My RAID drives are 16TB, e2image of this is 125gb, and 7z’d it comes down to just 63mb.\n
\n
I’ll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 16
+favouriteCount: 25
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701340910 {#2414
date: 2023-11-30 11:41:50.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1688 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1965 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 18292
-titleTs: "'automat':1 'backup':2 'data':11 'easier':10 'info':8 'inod':4 'partit':7 'recoveri':12 'tabl':5"
-bodyTs: "'125gb':208 '16tb':203 '40mb':169 '500gb':161 '63mb':217 '7z':144,210 '8gb':164 'alreadi':189 'and/or':94 'anyway':198 'anywher':237 'appar':191 'around':18 'backup':170,225 'boot':92 'catastroph':26 'come':213 'command':87 'comment':229 'compress':137,166 'couldn':100 'coupl':134,173 'creat':64 'd':211 'data':34 'date':143 'derp':196 'drive':44,135,162,183,201 'dropbox':154 'duckl':47 'e2image':51,131,204 'episod':7 'etc':155 'everi':95 'fdisk':85,125 'file':66,69,129 'find':102 'generat':82 'get':147 'good':1,61 'happen':27 'hour':14 'idea':62 'imag':65,158 'improv':239 'inod':40 'interv':90 'know':232 'l':86 'layout':78 'learn':11 'let':230 'll':219 'lost':38 'man':56 'mega':152 'metadata':157 'minut':174 'morn':2 'onlin':108 'partit':77 'play':17 'point':48 'post':220 'prebuilt':104 'quick':46 'raid':182,200 'raid1':187 'realis':22 'realli':30 'recoveri':35 'regular':89 'resili':190 'rsync':150 'run':130 'save':75,123 'say':53 'script':226 'servic':114,222 'solut':105 'somehow':197 'someth':25 'spot':236 'struggl':31 'system':70,73 'systemd':113 'tabl':41 'take':171 'text':128 'time':93 'timer':116,223 'today':5 'togeth':140 'unfortun':175 'upload':148 'use':83 'via':149 'week':96 'work':13,179 'would':29 'wrote':111 'wxhexeditor':20"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701374984
+visibility: "visible "
+apId: "https://lemmy.nz/post/3898548"
+editedAt: DateTimeImmutable @1702307273 {#1793
date: 2023-12-11 16:07:53.0 +01:00
}
+createdAt: DateTimeImmutable @1701288584 {#2402
date: 2023-11-29 21:09:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Fantastic. I’m following!"
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1701289796 {#4302
date: 2023-11-29 21:29:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#4308 …}
+nested: Doctrine\ORM\PersistentCollection {#4310 …}
+votes: Doctrine\ORM\PersistentCollection {#4312 …}
+reports: Doctrine\ORM\PersistentCollection {#4314 …}
+favourites: Doctrine\ORM\PersistentCollection {#4316 …}
+notifications: Doctrine\ORM\PersistentCollection {#4318 …}
-id: 178116
-bodyTs: "'fantast':1 'follow':4 'm':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5678908"
+editedAt: null
+createdAt: DateTimeImmutable @1701289796 {#4303
date: 2023-11-29 21:29:56.0 +01:00
}
} |
|
Show voter details
|
19 |
DENIED
|
edit
|
App\Entity\EntryComment {#4307
+user: App\Entity\User {#4320 …}
+entry: App\Entity\Entry {#2400
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1889 …}
+slug: "Automatic-backups-of-inode-tables-and-partition-info-for-easier"
+title: "Automatic backups of inode tables and partition info for easier data recovery"
+url: null
+body: """
Good morning all, in today’s episode of “What I learned during work hours”…\n
\n
I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive.\n
\n
A quick duckle pointed me to e2image, which says in the man:\n
\n
> It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals — at boot time, and/or every week or so.\n
\n
I couldn’t find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc.\n
\n
The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes.\n
\n
Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.\n
\n
Apparently I was being a derp somehow. …Anyways,\n
\n
My RAID drives are 16TB, e2image of this is 125gb, and 7z’d it comes down to just 63mb.\n
\n
I’ll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 16
+favouriteCount: 25
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701340910 {#2414
date: 2023-11-30 11:41:50.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1688 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1965 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 18292
-titleTs: "'automat':1 'backup':2 'data':11 'easier':10 'info':8 'inod':4 'partit':7 'recoveri':12 'tabl':5"
-bodyTs: "'125gb':208 '16tb':203 '40mb':169 '500gb':161 '63mb':217 '7z':144,210 '8gb':164 'alreadi':189 'and/or':94 'anyway':198 'anywher':237 'appar':191 'around':18 'backup':170,225 'boot':92 'catastroph':26 'come':213 'command':87 'comment':229 'compress':137,166 'couldn':100 'coupl':134,173 'creat':64 'd':211 'data':34 'date':143 'derp':196 'drive':44,135,162,183,201 'dropbox':154 'duckl':47 'e2image':51,131,204 'episod':7 'etc':155 'everi':95 'fdisk':85,125 'file':66,69,129 'find':102 'generat':82 'get':147 'good':1,61 'happen':27 'hour':14 'idea':62 'imag':65,158 'improv':239 'inod':40 'interv':90 'know':232 'l':86 'layout':78 'learn':11 'let':230 'll':219 'lost':38 'man':56 'mega':152 'metadata':157 'minut':174 'morn':2 'onlin':108 'partit':77 'play':17 'point':48 'post':220 'prebuilt':104 'quick':46 'raid':182,200 'raid1':187 'realis':22 'realli':30 'recoveri':35 'regular':89 'resili':190 'rsync':150 'run':130 'save':75,123 'say':53 'script':226 'servic':114,222 'solut':105 'somehow':197 'someth':25 'spot':236 'struggl':31 'system':70,73 'systemd':113 'tabl':41 'take':171 'text':128 'time':93 'timer':116,223 'today':5 'togeth':140 'unfortun':175 'upload':148 'use':83 'via':149 'week':96 'work':13,179 'would':29 'wrote':111 'wxhexeditor':20"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701374984
+visibility: "visible "
+apId: "https://lemmy.nz/post/3898548"
+editedAt: DateTimeImmutable @1702307273 {#1793
date: 2023-12-11 16:07:53.0 +01:00
}
+createdAt: DateTimeImmutable @1701288584 {#2402
date: 2023-11-29 21:09:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Fantastic. I’m following!"
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1701289796 {#4302
date: 2023-11-29 21:29:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#4308 …}
+nested: Doctrine\ORM\PersistentCollection {#4310 …}
+votes: Doctrine\ORM\PersistentCollection {#4312 …}
+reports: Doctrine\ORM\PersistentCollection {#4314 …}
+favourites: Doctrine\ORM\PersistentCollection {#4316 …}
+notifications: Doctrine\ORM\PersistentCollection {#4318 …}
-id: 178116
-bodyTs: "'fantast':1 'follow':4 'm':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5678908"
+editedAt: null
+createdAt: DateTimeImmutable @1701289796 {#4303
date: 2023-11-29 21:29:56.0 +01:00
}
} |
|
Show voter details
|
20 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4307
+user: App\Entity\User {#4320 …}
+entry: App\Entity\Entry {#2400
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1889 …}
+slug: "Automatic-backups-of-inode-tables-and-partition-info-for-easier"
+title: "Automatic backups of inode tables and partition info for easier data recovery"
+url: null
+body: """
Good morning all, in today’s episode of “What I learned during work hours”…\n
\n
I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive.\n
\n
A quick duckle pointed me to e2image, which says in the man:\n
\n
> It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals — at boot time, and/or every week or so.\n
\n
I couldn’t find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc.\n
\n
The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes.\n
\n
Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.\n
\n
Apparently I was being a derp somehow. …Anyways,\n
\n
My RAID drives are 16TB, e2image of this is 125gb, and 7z’d it comes down to just 63mb.\n
\n
I’ll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 16
+favouriteCount: 25
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701340910 {#2414
date: 2023-11-30 11:41:50.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1688 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1965 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 18292
-titleTs: "'automat':1 'backup':2 'data':11 'easier':10 'info':8 'inod':4 'partit':7 'recoveri':12 'tabl':5"
-bodyTs: "'125gb':208 '16tb':203 '40mb':169 '500gb':161 '63mb':217 '7z':144,210 '8gb':164 'alreadi':189 'and/or':94 'anyway':198 'anywher':237 'appar':191 'around':18 'backup':170,225 'boot':92 'catastroph':26 'come':213 'command':87 'comment':229 'compress':137,166 'couldn':100 'coupl':134,173 'creat':64 'd':211 'data':34 'date':143 'derp':196 'drive':44,135,162,183,201 'dropbox':154 'duckl':47 'e2image':51,131,204 'episod':7 'etc':155 'everi':95 'fdisk':85,125 'file':66,69,129 'find':102 'generat':82 'get':147 'good':1,61 'happen':27 'hour':14 'idea':62 'imag':65,158 'improv':239 'inod':40 'interv':90 'know':232 'l':86 'layout':78 'learn':11 'let':230 'll':219 'lost':38 'man':56 'mega':152 'metadata':157 'minut':174 'morn':2 'onlin':108 'partit':77 'play':17 'point':48 'post':220 'prebuilt':104 'quick':46 'raid':182,200 'raid1':187 'realis':22 'realli':30 'recoveri':35 'regular':89 'resili':190 'rsync':150 'run':130 'save':75,123 'say':53 'script':226 'servic':114,222 'solut':105 'somehow':197 'someth':25 'spot':236 'struggl':31 'system':70,73 'systemd':113 'tabl':41 'take':171 'text':128 'time':93 'timer':116,223 'today':5 'togeth':140 'unfortun':175 'upload':148 'use':83 'via':149 'week':96 'work':13,179 'would':29 'wrote':111 'wxhexeditor':20"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701374984
+visibility: "visible "
+apId: "https://lemmy.nz/post/3898548"
+editedAt: DateTimeImmutable @1702307273 {#1793
date: 2023-12-11 16:07:53.0 +01:00
}
+createdAt: DateTimeImmutable @1701288584 {#2402
date: 2023-11-29 21:09:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: "Fantastic. I’m following!"
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1701289796 {#4302
date: 2023-11-29 21:29:56.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#4308 …}
+nested: Doctrine\ORM\PersistentCollection {#4310 …}
+votes: Doctrine\ORM\PersistentCollection {#4312 …}
+reports: Doctrine\ORM\PersistentCollection {#4314 …}
+favourites: Doctrine\ORM\PersistentCollection {#4316 …}
+notifications: Doctrine\ORM\PersistentCollection {#4318 …}
-id: 178116
-bodyTs: "'fantast':1 'follow':4 'm':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5678908"
+editedAt: null
+createdAt: DateTimeImmutable @1701289796 {#4303
date: 2023-11-29 21:29:56.0 +01:00
}
} |
|
Show voter details
|
21 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
22 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4381
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+entry: App\Entity\Entry {#2400
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1889 …}
+slug: "Automatic-backups-of-inode-tables-and-partition-info-for-easier"
+title: "Automatic backups of inode tables and partition info for easier data recovery"
+url: null
+body: """
Good morning all, in today’s episode of “What I learned during work hours”…\n
\n
I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive.\n
\n
A quick duckle pointed me to e2image, which says in the man:\n
\n
> It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals — at boot time, and/or every week or so.\n
\n
I couldn’t find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc.\n
\n
The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes.\n
\n
Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.\n
\n
Apparently I was being a derp somehow. …Anyways,\n
\n
My RAID drives are 16TB, e2image of this is 125gb, and 7z’d it comes down to just 63mb.\n
\n
I’ll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 16
+favouriteCount: 25
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701340910 {#2414
date: 2023-11-30 11:41:50.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1688 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1965 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 18292
-titleTs: "'automat':1 'backup':2 'data':11 'easier':10 'info':8 'inod':4 'partit':7 'recoveri':12 'tabl':5"
-bodyTs: "'125gb':208 '16tb':203 '40mb':169 '500gb':161 '63mb':217 '7z':144,210 '8gb':164 'alreadi':189 'and/or':94 'anyway':198 'anywher':237 'appar':191 'around':18 'backup':170,225 'boot':92 'catastroph':26 'come':213 'command':87 'comment':229 'compress':137,166 'couldn':100 'coupl':134,173 'creat':64 'd':211 'data':34 'date':143 'derp':196 'drive':44,135,162,183,201 'dropbox':154 'duckl':47 'e2image':51,131,204 'episod':7 'etc':155 'everi':95 'fdisk':85,125 'file':66,69,129 'find':102 'generat':82 'get':147 'good':1,61 'happen':27 'hour':14 'idea':62 'imag':65,158 'improv':239 'inod':40 'interv':90 'know':232 'l':86 'layout':78 'learn':11 'let':230 'll':219 'lost':38 'man':56 'mega':152 'metadata':157 'minut':174 'morn':2 'onlin':108 'partit':77 'play':17 'point':48 'post':220 'prebuilt':104 'quick':46 'raid':182,200 'raid1':187 'realis':22 'realli':30 'recoveri':35 'regular':89 'resili':190 'rsync':150 'run':130 'save':75,123 'say':53 'script':226 'servic':114,222 'solut':105 'somehow':197 'someth':25 'spot':236 'struggl':31 'system':70,73 'systemd':113 'tabl':41 'take':171 'text':128 'time':93 'timer':116,223 'today':5 'togeth':140 'unfortun':175 'upload':148 'use':83 'via':149 'week':96 'work':13,179 'would':29 'wrote':111 'wxhexeditor':20"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701374984
+visibility: "visible "
+apId: "https://lemmy.nz/post/3898548"
+editedAt: DateTimeImmutable @1702307273 {#1793
date: 2023-12-11 16:07:53.0 +01:00
}
+createdAt: DateTimeImmutable @1701288584 {#2402
date: 2023-11-29 21:09:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
`The script takes the drives as arguments:`\n
\n
```\n
\n
<span style="color:#323232;">$ pwd\n
</span><span style="color:#323232;">/usr/lib/systemd/system\n
</span><span style="color:#323232;">$ cat drive_backup.service \n
</span><span style="color:#323232;">[Unit]\n
</span><span style="color:#323232;">Description=backup fdisk + e2image\n
</span><span style="color:#323232;">Wants=drive_backup.timer\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">[Service]\n
</span><span style="color:#323232;">Type=oneshot\n
</span><span style="color:#323232;">ExecStart=/usr/bin/backup_meta_data.sh /dev/sdc1 /dev/sdb1\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">[Install]\n
</span><span style="color:#323232;">WantedBy=multi-user.target\n
</span>\n
```\n
\n
`Set to run at 3:40am every day, but probably could be once weekly really.`\n
\n
```\n
\n
<span style="color:#323232;">$ cat drive_backup.timer \n
</span><span style="color:#323232;">[Unit]\n
</span><span style="color:#323232;">Description=timer to run drive backup\n
</span><span style="color:#323232;">Requires=drive_backup.service\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">[Timer]\n
</span><span style="color:#323232;">Unit=drive_backup.service\n
</span><span style="color:#323232;">OnCalendar=*-*-* 03:40:00\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">[Install]\n
</span><span style="color:#323232;">WantedBy=timers.target\n
</span>\n
```\n
\n
`Should be fairly self-explanatory. `\n
\n
```\n
\n
<span style="color:#323232;">$ cat /usr/bin/backup_meta_data.sh\n
</span><span style="color:#323232;">#!/bin/bash\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">working_dir=/home/st/drive_recovery/working\n
</span><span style="color:#323232;">backup_dir=/home/st/drive_recovery\n
</span><span style="color:#323232;">backup_date=$(date +%Y%m%d-%H%M)\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">mkdir -p $working_dir\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">sudo fdisk -x > $working_dir/$backup_date.fdisk\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">for var in "$@"\n
</span><span style="color:#323232;">do\n
</span><span style="color:#323232;">\tclean=$(echo $var | sed 's;/;-;g')\n
</span><span style="color:#323232;">\tsudo e2image $var $working_dir/$backup_date.$clean\n
</span><span style="color:#323232;">done\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">sudo 7z a $backup_dir/$backup_date.archive $working_dir/"$backup_date"*\n
</span><span style="color:#323232;">sudo rm $working_dir/"$backup_date"*\n
</span>\n
```
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1701288876 {#4375
date: 2023-11-29 21:14:36.0 +01:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#4382 …}
+nested: Doctrine\ORM\PersistentCollection {#4384 …}
+votes: Doctrine\ORM\PersistentCollection {#4386 …}
+reports: Doctrine\ORM\PersistentCollection {#4388 …}
+favourites: Doctrine\ORM\PersistentCollection {#4390 …}
+notifications: Doctrine\ORM\PersistentCollection {#4392 …}
-id: 178058
-bodyTs: "'/bin/bash':73 '/dev/sdb1':25 '/dev/sdc1':24 '/home/st/drive_recovery':79 '/home/st/drive_recovery/working':76 '/usr/bin/backup_meta_data.sh':23,72 '/usr/lib/systemd/system':9 '00':61 '03':59 '3':33 '40':60 '40am':34 '7z':118 'argument':7 'backup':14,52,77,80,113,120,125,131 'backup_date.archive':122 'backup_date.fdisk':97 'cat':10,44,71 'clean':102,115 'could':39 'd':85 'date':81,82,114,126,132 'day':36 'descript':13,47 'dir':75,78,91,96,112,121,124,130 'done':116 'drive':5,51 'drive_backup.service':11,54,57 'drive_backup.timer':18,45 'e2image':16,109 'echo':103 'everi':35 'execstart':22 'explanatori':70 'fair':67 'fdisk':15,93 'g':107 'h':86 'instal':26,62 'm':84,87 'mkdir':88 'multi-user.target':28 'oncalendar':58 'oneshot':21 'p':89 'probabl':38 'pwd':8 'realli':43 'requir':53 'rm':128 'run':31,50 'script':2 'sed':105 'self':69 'self-explanatori':68 'servic':19 'set':29 'sudo':92,108,117,127 'take':3 'timer':48,55 'timers.target':64 'type':20 'unit':12,46,56 'var':99,104,110 'want':17 'wantedbi':27,63 'week':42 'work':74,90,95,111,123,129 'x':94 'y':83"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.nz/comment/4098853"
+editedAt: DateTimeImmutable @1702210211 {#4376
date: 2023-12-10 13:10:11.0 +01:00
}
+createdAt: DateTimeImmutable @1701288876 {#4377
date: 2023-11-29 21:14:36.0 +01:00
}
} |
|
Show voter details
|
23 |
DENIED
|
edit
|
App\Entity\EntryComment {#4381
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+entry: App\Entity\Entry {#2400
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1889 …}
+slug: "Automatic-backups-of-inode-tables-and-partition-info-for-easier"
+title: "Automatic backups of inode tables and partition info for easier data recovery"
+url: null
+body: """
Good morning all, in today’s episode of “What I learned during work hours”…\n
\n
I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive.\n
\n
A quick duckle pointed me to e2image, which says in the man:\n
\n
> It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals — at boot time, and/or every week or so.\n
\n
I couldn’t find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc.\n
\n
The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes.\n
\n
Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.\n
\n
Apparently I was being a derp somehow. …Anyways,\n
\n
My RAID drives are 16TB, e2image of this is 125gb, and 7z’d it comes down to just 63mb.\n
\n
I’ll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 16
+favouriteCount: 25
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701340910 {#2414
date: 2023-11-30 11:41:50.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1688 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1965 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 18292
-titleTs: "'automat':1 'backup':2 'data':11 'easier':10 'info':8 'inod':4 'partit':7 'recoveri':12 'tabl':5"
-bodyTs: "'125gb':208 '16tb':203 '40mb':169 '500gb':161 '63mb':217 '7z':144,210 '8gb':164 'alreadi':189 'and/or':94 'anyway':198 'anywher':237 'appar':191 'around':18 'backup':170,225 'boot':92 'catastroph':26 'come':213 'command':87 'comment':229 'compress':137,166 'couldn':100 'coupl':134,173 'creat':64 'd':211 'data':34 'date':143 'derp':196 'drive':44,135,162,183,201 'dropbox':154 'duckl':47 'e2image':51,131,204 'episod':7 'etc':155 'everi':95 'fdisk':85,125 'file':66,69,129 'find':102 'generat':82 'get':147 'good':1,61 'happen':27 'hour':14 'idea':62 'imag':65,158 'improv':239 'inod':40 'interv':90 'know':232 'l':86 'layout':78 'learn':11 'let':230 'll':219 'lost':38 'man':56 'mega':152 'metadata':157 'minut':174 'morn':2 'onlin':108 'partit':77 'play':17 'point':48 'post':220 'prebuilt':104 'quick':46 'raid':182,200 'raid1':187 'realis':22 'realli':30 'recoveri':35 'regular':89 'resili':190 'rsync':150 'run':130 'save':75,123 'say':53 'script':226 'servic':114,222 'solut':105 'somehow':197 'someth':25 'spot':236 'struggl':31 'system':70,73 'systemd':113 'tabl':41 'take':171 'text':128 'time':93 'timer':116,223 'today':5 'togeth':140 'unfortun':175 'upload':148 'use':83 'via':149 'week':96 'work':13,179 'would':29 'wrote':111 'wxhexeditor':20"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701374984
+visibility: "visible "
+apId: "https://lemmy.nz/post/3898548"
+editedAt: DateTimeImmutable @1702307273 {#1793
date: 2023-12-11 16:07:53.0 +01:00
}
+createdAt: DateTimeImmutable @1701288584 {#2402
date: 2023-11-29 21:09:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
`The script takes the drives as arguments:`\n
\n
```\n
\n
<span style="color:#323232;">$ pwd\n
</span><span style="color:#323232;">/usr/lib/systemd/system\n
</span><span style="color:#323232;">$ cat drive_backup.service \n
</span><span style="color:#323232;">[Unit]\n
</span><span style="color:#323232;">Description=backup fdisk + e2image\n
</span><span style="color:#323232;">Wants=drive_backup.timer\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">[Service]\n
</span><span style="color:#323232;">Type=oneshot\n
</span><span style="color:#323232;">ExecStart=/usr/bin/backup_meta_data.sh /dev/sdc1 /dev/sdb1\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">[Install]\n
</span><span style="color:#323232;">WantedBy=multi-user.target\n
</span>\n
```\n
\n
`Set to run at 3:40am every day, but probably could be once weekly really.`\n
\n
```\n
\n
<span style="color:#323232;">$ cat drive_backup.timer \n
</span><span style="color:#323232;">[Unit]\n
</span><span style="color:#323232;">Description=timer to run drive backup\n
</span><span style="color:#323232;">Requires=drive_backup.service\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">[Timer]\n
</span><span style="color:#323232;">Unit=drive_backup.service\n
</span><span style="color:#323232;">OnCalendar=*-*-* 03:40:00\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">[Install]\n
</span><span style="color:#323232;">WantedBy=timers.target\n
</span>\n
```\n
\n
`Should be fairly self-explanatory. `\n
\n
```\n
\n
<span style="color:#323232;">$ cat /usr/bin/backup_meta_data.sh\n
</span><span style="color:#323232;">#!/bin/bash\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">working_dir=/home/st/drive_recovery/working\n
</span><span style="color:#323232;">backup_dir=/home/st/drive_recovery\n
</span><span style="color:#323232;">backup_date=$(date +%Y%m%d-%H%M)\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">mkdir -p $working_dir\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">sudo fdisk -x > $working_dir/$backup_date.fdisk\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">for var in "$@"\n
</span><span style="color:#323232;">do\n
</span><span style="color:#323232;">\tclean=$(echo $var | sed 's;/;-;g')\n
</span><span style="color:#323232;">\tsudo e2image $var $working_dir/$backup_date.$clean\n
</span><span style="color:#323232;">done\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">sudo 7z a $backup_dir/$backup_date.archive $working_dir/"$backup_date"*\n
</span><span style="color:#323232;">sudo rm $working_dir/"$backup_date"*\n
</span>\n
```
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1701288876 {#4375
date: 2023-11-29 21:14:36.0 +01:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#4382 …}
+nested: Doctrine\ORM\PersistentCollection {#4384 …}
+votes: Doctrine\ORM\PersistentCollection {#4386 …}
+reports: Doctrine\ORM\PersistentCollection {#4388 …}
+favourites: Doctrine\ORM\PersistentCollection {#4390 …}
+notifications: Doctrine\ORM\PersistentCollection {#4392 …}
-id: 178058
-bodyTs: "'/bin/bash':73 '/dev/sdb1':25 '/dev/sdc1':24 '/home/st/drive_recovery':79 '/home/st/drive_recovery/working':76 '/usr/bin/backup_meta_data.sh':23,72 '/usr/lib/systemd/system':9 '00':61 '03':59 '3':33 '40':60 '40am':34 '7z':118 'argument':7 'backup':14,52,77,80,113,120,125,131 'backup_date.archive':122 'backup_date.fdisk':97 'cat':10,44,71 'clean':102,115 'could':39 'd':85 'date':81,82,114,126,132 'day':36 'descript':13,47 'dir':75,78,91,96,112,121,124,130 'done':116 'drive':5,51 'drive_backup.service':11,54,57 'drive_backup.timer':18,45 'e2image':16,109 'echo':103 'everi':35 'execstart':22 'explanatori':70 'fair':67 'fdisk':15,93 'g':107 'h':86 'instal':26,62 'm':84,87 'mkdir':88 'multi-user.target':28 'oncalendar':58 'oneshot':21 'p':89 'probabl':38 'pwd':8 'realli':43 'requir':53 'rm':128 'run':31,50 'script':2 'sed':105 'self':69 'self-explanatori':68 'servic':19 'set':29 'sudo':92,108,117,127 'take':3 'timer':48,55 'timers.target':64 'type':20 'unit':12,46,56 'var':99,104,110 'want':17 'wantedbi':27,63 'week':42 'work':74,90,95,111,123,129 'x':94 'y':83"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.nz/comment/4098853"
+editedAt: DateTimeImmutable @1702210211 {#4376
date: 2023-12-10 13:10:11.0 +01:00
}
+createdAt: DateTimeImmutable @1701288876 {#4377
date: 2023-11-29 21:14:36.0 +01:00
}
} |
|
Show voter details
|
24 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4381
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+entry: App\Entity\Entry {#2400
+user: Proxies\__CG__\App\Entity\User {#1978 …}
+magazine: App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1889 …}
+slug: "Automatic-backups-of-inode-tables-and-partition-info-for-easier"
+title: "Automatic backups of inode tables and partition info for easier data recovery"
+url: null
+body: """
Good morning all, in today’s episode of “What I learned during work hours”…\n
\n
I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive.\n
\n
A quick duckle pointed me to e2image, which says in the man:\n
\n
> It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals — at boot time, and/or every week or so.\n
\n
I couldn’t find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc.\n
\n
The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes.\n
\n
Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.\n
\n
Apparently I was being a derp somehow. …Anyways,\n
\n
My RAID drives are 16TB, e2image of this is 125gb, and 7z’d it comes down to just 63mb.\n
\n
I’ll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 16
+favouriteCount: 25
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701340910 {#2414
date: 2023-11-30 11:41:50.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1688 …}
+votes: Doctrine\ORM\PersistentCollection {#1966 …}
+reports: Doctrine\ORM\PersistentCollection {#1965 …}
+favourites: Doctrine\ORM\PersistentCollection {#1368 …}
+notifications: Doctrine\ORM\PersistentCollection {#2426 …}
+badges: Doctrine\ORM\PersistentCollection {#2439 …}
+children: []
-id: 18292
-titleTs: "'automat':1 'backup':2 'data':11 'easier':10 'info':8 'inod':4 'partit':7 'recoveri':12 'tabl':5"
-bodyTs: "'125gb':208 '16tb':203 '40mb':169 '500gb':161 '63mb':217 '7z':144,210 '8gb':164 'alreadi':189 'and/or':94 'anyway':198 'anywher':237 'appar':191 'around':18 'backup':170,225 'boot':92 'catastroph':26 'come':213 'command':87 'comment':229 'compress':137,166 'couldn':100 'coupl':134,173 'creat':64 'd':211 'data':34 'date':143 'derp':196 'drive':44,135,162,183,201 'dropbox':154 'duckl':47 'e2image':51,131,204 'episod':7 'etc':155 'everi':95 'fdisk':85,125 'file':66,69,129 'find':102 'generat':82 'get':147 'good':1,61 'happen':27 'hour':14 'idea':62 'imag':65,158 'improv':239 'inod':40 'interv':90 'know':232 'l':86 'layout':78 'learn':11 'let':230 'll':219 'lost':38 'man':56 'mega':152 'metadata':157 'minut':174 'morn':2 'onlin':108 'partit':77 'play':17 'point':48 'post':220 'prebuilt':104 'quick':46 'raid':182,200 'raid1':187 'realis':22 'realli':30 'recoveri':35 'regular':89 'resili':190 'rsync':150 'run':130 'save':75,123 'say':53 'script':226 'servic':114,222 'solut':105 'somehow':197 'someth':25 'spot':236 'struggl':31 'system':70,73 'systemd':113 'tabl':41 'take':171 'text':128 'time':93 'timer':116,223 'today':5 'togeth':140 'unfortun':175 'upload':148 'use':83 'via':149 'week':96 'work':13,179 'would':29 'wrote':111 'wxhexeditor':20"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701374984
+visibility: "visible "
+apId: "https://lemmy.nz/post/3898548"
+editedAt: DateTimeImmutable @1702307273 {#1793
date: 2023-12-11 16:07:53.0 +01:00
}
+createdAt: DateTimeImmutable @1701288584 {#2402
date: 2023-11-29 21:09:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#265}
+image: null
+parent: null
+root: null
+body: """
`The script takes the drives as arguments:`\n
\n
```\n
\n
<span style="color:#323232;">$ pwd\n
</span><span style="color:#323232;">/usr/lib/systemd/system\n
</span><span style="color:#323232;">$ cat drive_backup.service \n
</span><span style="color:#323232;">[Unit]\n
</span><span style="color:#323232;">Description=backup fdisk + e2image\n
</span><span style="color:#323232;">Wants=drive_backup.timer\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">[Service]\n
</span><span style="color:#323232;">Type=oneshot\n
</span><span style="color:#323232;">ExecStart=/usr/bin/backup_meta_data.sh /dev/sdc1 /dev/sdb1\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">[Install]\n
</span><span style="color:#323232;">WantedBy=multi-user.target\n
</span>\n
```\n
\n
`Set to run at 3:40am every day, but probably could be once weekly really.`\n
\n
```\n
\n
<span style="color:#323232;">$ cat drive_backup.timer \n
</span><span style="color:#323232;">[Unit]\n
</span><span style="color:#323232;">Description=timer to run drive backup\n
</span><span style="color:#323232;">Requires=drive_backup.service\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">[Timer]\n
</span><span style="color:#323232;">Unit=drive_backup.service\n
</span><span style="color:#323232;">OnCalendar=*-*-* 03:40:00\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">[Install]\n
</span><span style="color:#323232;">WantedBy=timers.target\n
</span>\n
```\n
\n
`Should be fairly self-explanatory. `\n
\n
```\n
\n
<span style="color:#323232;">$ cat /usr/bin/backup_meta_data.sh\n
</span><span style="color:#323232;">#!/bin/bash\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">working_dir=/home/st/drive_recovery/working\n
</span><span style="color:#323232;">backup_dir=/home/st/drive_recovery\n
</span><span style="color:#323232;">backup_date=$(date +%Y%m%d-%H%M)\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">mkdir -p $working_dir\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">sudo fdisk -x > $working_dir/$backup_date.fdisk\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">for var in "$@"\n
</span><span style="color:#323232;">do\n
</span><span style="color:#323232;">\tclean=$(echo $var | sed 's;/;-;g')\n
</span><span style="color:#323232;">\tsudo e2image $var $working_dir/$backup_date.$clean\n
</span><span style="color:#323232;">done\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">sudo 7z a $backup_dir/$backup_date.archive $working_dir/"$backup_date"*\n
</span><span style="color:#323232;">sudo rm $working_dir/"$backup_date"*\n
</span>\n
```
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1701288876 {#4375
date: 2023-11-29 21:14:36.0 +01:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#4382 …}
+nested: Doctrine\ORM\PersistentCollection {#4384 …}
+votes: Doctrine\ORM\PersistentCollection {#4386 …}
+reports: Doctrine\ORM\PersistentCollection {#4388 …}
+favourites: Doctrine\ORM\PersistentCollection {#4390 …}
+notifications: Doctrine\ORM\PersistentCollection {#4392 …}
-id: 178058
-bodyTs: "'/bin/bash':73 '/dev/sdb1':25 '/dev/sdc1':24 '/home/st/drive_recovery':79 '/home/st/drive_recovery/working':76 '/usr/bin/backup_meta_data.sh':23,72 '/usr/lib/systemd/system':9 '00':61 '03':59 '3':33 '40':60 '40am':34 '7z':118 'argument':7 'backup':14,52,77,80,113,120,125,131 'backup_date.archive':122 'backup_date.fdisk':97 'cat':10,44,71 'clean':102,115 'could':39 'd':85 'date':81,82,114,126,132 'day':36 'descript':13,47 'dir':75,78,91,96,112,121,124,130 'done':116 'drive':5,51 'drive_backup.service':11,54,57 'drive_backup.timer':18,45 'e2image':16,109 'echo':103 'everi':35 'execstart':22 'explanatori':70 'fair':67 'fdisk':15,93 'g':107 'h':86 'instal':26,62 'm':84,87 'mkdir':88 'multi-user.target':28 'oncalendar':58 'oneshot':21 'p':89 'probabl':38 'pwd':8 'realli':43 'requir':53 'rm':128 'run':31,50 'script':2 'sed':105 'self':69 'self-explanatori':68 'servic':19 'set':29 'sudo':92,108,117,127 'take':3 'timer':48,55 'timers.target':64 'type':20 'unit':12,46,56 'var':99,104,110 'want':17 'wantedbi':27,63 'week':42 'work':74,90,95,111,123,129 'x':94 'y':83"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.nz/comment/4098853"
+editedAt: DateTimeImmutable @1702210211 {#4376
date: 2023-12-10 13:10:11.0 +01:00
}
+createdAt: DateTimeImmutable @1701288876 {#4377
date: 2023-11-29 21:14:36.0 +01:00
}
} |
|
Show voter details
|
25 |
DENIED
|
edit
|
App\Entity\Magazine {#265
+icon: Proxies\__CG__\App\Entity\Image {#246 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#275
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#237 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
+entries: Doctrine\ORM\PersistentCollection {#180 …}
+posts: Doctrine\ORM\PersistentCollection {#138 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
+bans: Doctrine\ORM\PersistentCollection {#117 …}
+reports: Doctrine\ORM\PersistentCollection {#103 …}
+badges: Doctrine\ORM\PersistentCollection {#81 …}
+logs: Doctrine\ORM\PersistentCollection {#71 …}
+awards: Doctrine\ORM\PersistentCollection {#1346 …}
+categories: Doctrine\ORM\PersistentCollection {#1823 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#269
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#271
date: 2023-11-02 13:51:08.0 +01:00
}
} |
|
Show voter details
|