Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.raspberry-pi > #10320 > unrolled thread
| Started by | Russell Gadd <russ.mail.lists@gmail.com> |
|---|---|
| First post | 2016-01-07 20:09 +0000 |
| Last post | 2016-01-17 15:44 +0000 |
| Articles | 14 on this page of 54 — 16 participants |
Back to article view | Back to comp.sys.raspberry-pi
Failure to clone SD card with compression Russell Gadd <russ.mail.lists@gmail.com> - 2016-01-07 20:09 +0000
Re: Failure to clone SD card with compression Roger Bell_West <roger+csrp201601@nospam.firedrake.org> - 2016-01-08 00:05 +0000
Re: Failure to clone SD card with compression The Natural Philosopher <tnp@invalid.invalid> - 2016-01-08 00:49 +0000
Re: Failure to clone SD card with compression Adam Funk <a24061@ducksburg.com> - 2016-01-08 11:17 +0000
Re: Failure to clone SD card with compression The Natural Philosopher <tnp@invalid.invalid> - 2016-01-08 12:58 +0000
Re: Failure to clone SD card with compression Adam Funk <a24061@ducksburg.com> - 2016-01-11 14:14 +0000
Re: Failure to clone SD card with compression ray carter <ray@zianet.com> - 2016-01-08 17:19 +0000
Re: Failure to clone SD card with compression Rob Morley <nospam@ntlworld.com> - 2016-01-08 17:30 +0000
Re: Failure to clone SD card with compression ray carter <ray@zianet.com> - 2016-01-08 01:31 +0000
Re: Failure to clone SD card with compression "A. Dumas" <alexandre@dumas.fr.invalid> - 2016-01-08 03:00 +0100
Re: Failure to clone SD card with compression Russell Gadd <russ.mail.lists@gmail.com> - 2016-01-09 10:17 +0000
Re: Failure to clone SD card with compression Dom <domafp@blueyonder.co.uk> - 2016-01-09 11:31 +0000
Re: Failure to clone SD card with compression "A. Dumas" <alexandre@dumas.fr.invalid> - 2016-01-09 14:02 +0100
Re: Failure to clone SD card with compression The Natural Philosopher <tnp@invalid.invalid> - 2016-01-09 12:07 +0000
Re: Failure to clone SD card with compression Russell Gadd <russ.mail.lists@gmail.com> - 2016-01-09 20:10 +0000
Re: Failure to clone SD card with compression The Natural Philosopher <tnp@invalid.invalid> - 2016-01-09 20:34 +0000
Re: Failure to clone SD card with compression Russell Gadd <russ.mail.lists@gmail.com> - 2016-01-10 18:52 +0000
Re: Failure to clone SD card with compression Dom <domafp@blueyonder.co.uk> - 2016-01-10 21:25 +0000
Re: Failure to clone SD card with compression Russell Gadd <russ.mail.lists@gmail.com> - 2016-01-09 20:09 +0000
Re: Failure to clone SD card with compression Dom <domafp@blueyonder.co.uk> - 2016-01-09 20:27 +0000
Re: Failure to clone SD card with compression CPMDude <nospam@somewhere.net> - 2016-01-10 01:40 -0800
Re: Failure to clone SD card with compression Russell Gadd <russ.mail.lists@gmail.com> - 2016-01-10 15:37 +0000
Re: Failure to clone SD card with compression Russell Gadd <russ.mail.lists@gmail.com> - 2016-01-10 15:41 +0000
Re: Failure to clone SD card with compression CPMDude <nospam@somewhere.net> - 2016-01-10 09:18 -0800
Re: Failure to clone SD card with compression Russell Gadd <russ.mail.lists@gmail.com> - 2016-01-10 18:51 +0000
Re: Failure to clone SD card with compression Anssi Saari <as@sci.fi> - 2016-01-12 11:46 +0200
Re: Failure to clone SD card with compression Rob <nomail@example.com> - 2016-01-13 12:18 +0000
Re: Failure to clone SD card with compression The Natural Philosopher <tnp@invalid.invalid> - 2016-01-13 13:31 +0000
Re: Failure to clone SD card with compression CPMDude <nospam@somewhere.net> - 2016-01-13 11:19 -0800
Re: Failure to clone SD card with compression Rob <nomail@example.com> - 2016-01-13 19:33 +0000
Re: Failure to clone SD card with compression The Natural Philosopher <tnp@invalid.invalid> - 2016-01-13 20:55 +0000
Re: Failure to clone SD card with compression CPMDude <nospam@somewhere.net> - 2016-01-13 21:48 -0800
Re: Failure to clone SD card with compression CPMDude <nospam@somewhere.net> - 2016-01-13 21:58 -0800
Re: Failure to clone SD card with compression The Natural Philosopher <tnp@invalid.invalid> - 2016-01-14 06:44 +0000
Re: Failure to clone SD card with compression Rob <nomail@example.com> - 2016-01-14 09:24 +0000
Re: Failure to clone SD card with compression Rob <nomail@example.com> - 2016-01-14 09:40 +0000
Re: Failure to clone SD card with compression The Natural Philosopher <tnp@invalid.invalid> - 2016-01-14 10:35 +0000
Re: Failure to clone SD card with compression Russell Gadd <russ.mail.lists@gmail.com> - 2016-01-14 21:58 +0000
Re: Failure to clone SD card with compression Martin Gregorie <martin@address-in-sig.invalid> - 2016-01-15 00:29 +0000
Re: Failure to clone SD card with compression fruit <fruit@invalid.org.uk> - 2016-01-15 06:25 +0000
Re: Failure to clone SD card with compression Russell Gadd <russ.mail.lists@gmail.com> - 2016-01-15 07:46 +0000
Re: Failure to clone SD card with compression Rob Morley <nospam@ntlworld.com> - 2016-01-15 08:34 +0000
Re: Failure to clone SD card with compression Rob <nomail@example.com> - 2016-01-15 09:47 +0000
Re: Failure to clone SD card with compression Russell Gadd <russ.mail.lists@gmail.com> - 2016-01-15 16:53 +0000
Re: Failure to clone SD card with compression CPMDude <nospam@somewhere.net> - 2016-01-16 01:03 -0800
Re: Failure to clone SD card with compression Rob <nomail@example.com> - 2016-01-16 10:00 +0000
Re: Failure to clone SD card with compression Russell Gadd <russ.mail.lists@gmail.com> - 2016-01-16 20:10 +0000
Re: Failure to clone SD card with compression druck <news@druck.org.uk> - 2016-01-17 11:52 +0000
Re: Failure to clone SD card with compression Ahem A Rivet's Shot <steveo@eircom.net> - 2016-01-17 12:16 +0000
Re: Failure to clone SD card with compression Martin Gregorie <martin@address-in-sig.invalid> - 2016-01-17 13:49 +0000
Re: Failure to clone SD card with compression The Natural Philosopher <tnp@invalid.invalid> - 2016-01-17 14:22 +0000
Re: Failure to clone SD card with compression Alan Adams <alan@adamshome.org.uk> - 2016-01-17 15:00 +0000
Re: Failure to clone SD card with compression Martin Gregorie <martin@address-in-sig.invalid> - 2016-01-17 16:00 +0000
Re: Failure to clone SD card with compression Ahem A Rivet's Shot <steveo@eircom.net> - 2016-01-17 15:44 +0000
Page 3 of 3 — ← Prev page 1 2 [3]
| From | Russell Gadd <russ.mail.lists@gmail.com> |
|---|---|
| Date | 2016-01-15 07:46 +0000 |
| Message-ID | <n7a7ur$ges$1@dont-email.me> |
| In reply to | #10377 |
On 15/01/16 00:29, Martin Gregorie wrote: > On Thu, 14 Jan 2016 21:58:41 +0000, Russell Gadd wrote: > >> A further thought is to use tee when reading the initial file to create >> the checksum while creating the gz file. >> > Alternatively: use rsync to maintain uncompressed backups. > > This is fast because rsync only does the minimum work needed to make the > backup an exact copy of the filing system being backed up. This means > that the first backup is slower than making a dd copy or using tar, but > subsequent backups are a lot faster because unchanged files are not > copied: deleted files are removed from the backup and added or changed > files are backed up again. > > My main backups, which are kept off line are done this way - I back up > all my systems (all Linux - house server, laptop and RPI) to a USB drive > mounted on the house server and kept offline on a firesafe. There are two > backup disks which are used alternately, so there is a backup copy in the > firesafe at all times. If you're just backing up an RPi, the same trick > will work just as well with two or more SD cards and a USB SD card reader. > > rsync is a standard Linux utility program and is part of the Raspbian > distro. You can use it 'bare', but backups are easier if you run it from > a bash script which mounts the SD card, runs rsync configured as you want > it [*] and then unmounts the SD card. > > [*] rsync has a lot of potions for excluding files, etc. You may also > want to use separate rsync runs for each partition on the main SD card. > > I use rsync to back up data using a script, and as you say it is very efficient. I have a NAS which uses 2 2TB drives Raid 0 and I back this up once a day to a 2TB drive on my PC. Might sound a** about face but the NAS is also used by other machines. I also back up online to Amazon S3 using a set of bash scripts I wrote. But for my PC systems I use system images - I like to make a complete image and keep it intact as a historic copy, not updating it. I figure systems only change gradually so occasional copies are fine. Restoration from a backup doesn't need much updating and it's an automatic process anyway, whereas for personal files, updating old copies is a manual operation and damn near impossible to find the incremental source info anyway, so you do need very frequent updates, preferably with means to get back to any older version. I used SpiderOak for this for a while because they save older versions, but their Linux support was non-existent when I had an issue. Wuala was even worse. Which is why I wrote my own. If an old version isn't on my current local backup I can find it online.
[toc] | [prev] | [next] | [standalone]
| From | Rob Morley <nospam@ntlworld.com> |
|---|---|
| Date | 2016-01-15 08:34 +0000 |
| Message-ID | <20160115083430.3ae93b46@ntlworld.com> |
| In reply to | #10377 |
On Fri, 15 Jan 2016 00:29:00 -0000 (UTC) Martin Gregorie <martin@address-in-sig.invalid> wrote: > Alternatively: use rsync to maintain uncompressed backups. Not useful when your backup is a drive image, which is what we were discussing here (and, I suspect, how Pi users normally roll).
[toc] | [prev] | [next] | [standalone]
| From | Rob <nomail@example.com> |
|---|---|
| Date | 2016-01-15 09:47 +0000 |
| Message-ID | <slrnn9hg1n.nkn.nomail@xs9.xs4all.nl> |
| In reply to | #10376 |
Russell Gadd <russ.mail.lists@gmail.com> wrote: > Rather than using par2 error correction techniques, I would create the > uncompressed image then checksum it before gzipping. I can then unzip it > and recheck which would validate the gzipping. gzip already does that internally...
[toc] | [prev] | [next] | [standalone]
| From | Russell Gadd <russ.mail.lists@gmail.com> |
|---|---|
| Date | 2016-01-15 16:53 +0000 |
| Message-ID | <n7b81p$4og$1@dont-email.me> |
| In reply to | #10382 |
On 15/01/16 09:47, Rob wrote: > Russell Gadd <russ.mail.lists@gmail.com> wrote: >> Rather than using par2 error correction techniques, I would create the >> uncompressed image then checksum it before gzipping. I can then unzip it >> and recheck which would validate the gzipping. > > gzip already does that internally... > I guess the advantage is that you can re-read the restored card to check you get the same checksum. Then you're just relying on the first read which created the gz file not to be in error.
[toc] | [prev] | [next] | [standalone]
| From | CPMDude <nospam@somewhere.net> |
|---|---|
| Date | 2016-01-16 01:03 -0800 |
| Message-ID | <n7d11l$kug$1@gioia.aioe.org> |
| In reply to | #10376 |
On 1/14/2016 1:58 PM, Russell Gadd wrote: > On 12/01/16 09:46, Anssi Saari wrote: > > I am with Rob in not wanting an almost correct file. > > Rather than using par2 error correction techniques, I would create the > uncompressed image then checksum it before gzipping. I can then unzip it > and recheck which would validate the gzipping. [...] You miss the point entirely. Once gzipped, if the file THEN becomes corrupted, you CANNOT RECOVER IT. The decompression algorithm cannot handle errors. The ENTIRE file is lost, rather than just a small portion of it (perhaps a single byte). We're not talking about compressing already corrupted data - we're talking about the ability to recover corrupted compressed data.
[toc] | [prev] | [next] | [standalone]
| From | Rob <nomail@example.com> |
|---|---|
| Date | 2016-01-16 10:00 +0000 |
| Message-ID | <slrnn9k560.c4i.nomail@xs9.xs4all.nl> |
| In reply to | #10394 |
CPMDude <nospam@somewhere.net> wrote: > On 1/14/2016 1:58 PM, Russell Gadd wrote: >> On 12/01/16 09:46, Anssi Saari wrote: >> >> I am with Rob in not wanting an almost correct file. >> >> Rather than using par2 error correction techniques, I would create the >> uncompressed image then checksum it before gzipping. I can then unzip it >> and recheck which would validate the gzipping. > [...] > > You miss the point entirely. Once gzipped, if the file THEN becomes > corrupted, you CANNOT RECOVER IT. The decompression algorithm > cannot handle errors. The ENTIRE file is lost, rather than just a > small portion of it (perhaps a single byte). > > We're not talking about compressing already corrupted data - we're > talking about the ability to recover corrupted compressed data. But as already mentioned, it is often better to have a lost file and not be able to recover it, than to have a file with a bit error and not knowing where it is (or that it even exists). Especially when talking about images, program files, etc. (rather than a dissertation typed in plain text)
[toc] | [prev] | [next] | [standalone]
| From | Russell Gadd <russ.mail.lists@gmail.com> |
|---|---|
| Date | 2016-01-16 20:10 +0000 |
| Message-ID | <n7e7tr$6if$1@dont-email.me> |
| In reply to | #10395 |
On 16/01/16 10:00, Rob wrote: > CPMDude <nospam@somewhere.net> wrote: >> On 1/14/2016 1:58 PM, Russell Gadd wrote: >>> On 12/01/16 09:46, Anssi Saari wrote: >>> >>> I am with Rob in not wanting an almost correct file. >>> >>> Rather than using par2 error correction techniques, I would create the >>> uncompressed image then checksum it before gzipping. I can then unzip it >>> and recheck which would validate the gzipping. >> [...] >> >> You miss the point entirely. Once gzipped, if the file THEN becomes >> corrupted, you CANNOT RECOVER IT. The decompression algorithm >> cannot handle errors. The ENTIRE file is lost, rather than just a >> small portion of it (perhaps a single byte). >> >> We're not talking about compressing already corrupted data - we're >> talking about the ability to recover corrupted compressed data. > > But as already mentioned, it is often better to have a lost file and > not be able to recover it, than to have a file with a bit error and > not knowing where it is (or that it even exists). > > Especially when talking about images, program files, etc. > (rather than a dissertation typed in plain text) > Indeed.
[toc] | [prev] | [next] | [standalone]
| From | druck <news@druck.org.uk> |
|---|---|
| Date | 2016-01-17 11:52 +0000 |
| Message-ID | <n7fv4t$mj7$1@dont-email.me> |
| In reply to | #10395 |
On 16/01/2016 10:00, Rob wrote: > CPMDude <nospam@somewhere.net> wrote: >> You miss the point entirely. Once gzipped, if the file THEN becomes >> corrupted, you CANNOT RECOVER IT. The decompression algorithm >> cannot handle errors. The ENTIRE file is lost, rather than just a >> small portion of it (perhaps a single byte). > > But as already mentioned, it is often better to have a lost file and > not be able to recover it, than to have a file with a bit error and > not knowing where it is (or that it even exists). But if you use a block compression it will identify the block that is corrupted, but recovery everything else correctly. That can be the difference between recovering a particular file which only exists in that backup, and losing it forever. ---druck
[toc] | [prev] | [next] | [standalone]
| From | Ahem A Rivet's Shot <steveo@eircom.net> |
|---|---|
| Date | 2016-01-17 12:16 +0000 |
| Message-ID | <20160117121625.541bd92a2c50ad12b8cd080a@eircom.net> |
| In reply to | #10404 |
On Sun, 17 Jan 2016 11:52:32 +0000 druck <news@druck.org.uk> wrote: > On 16/01/2016 10:00, Rob wrote: > > CPMDude <nospam@somewhere.net> wrote: > >> You miss the point entirely. Once gzipped, if the file THEN becomes > >> corrupted, you CANNOT RECOVER IT. The decompression algorithm > >> cannot handle errors. The ENTIRE file is lost, rather than just a > >> small portion of it (perhaps a single byte). > > > > But as already mentioned, it is often better to have a lost file and > > not be able to recover it, than to have a file with a bit error and > > not knowing where it is (or that it even exists). > > But if you use a block compression it will identify the block that is > corrupted, but recovery everything else correctly. That can be the > difference between recovering a particular file which only exists in > that backup, and losing it forever. Yes it can, and it would be an object lesson in never allowing there to be only a single copy of data that matters. -- Steve O'Hara-Smith | Directable Mirror Arrays C:>WIN | A better way to focus the sun The computer obeys and wins. | licences available see You lose and Bill collects. | http://www.sohara.org/
[toc] | [prev] | [next] | [standalone]
| From | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| Date | 2016-01-17 13:49 +0000 |
| Message-ID | <n7g64c$cb2$1@dont-email.me> |
| In reply to | #10405 |
On Sun, 17 Jan 2016 12:16:25 +0000, Ahem A Rivet's Shot wrote: > On Sun, 17 Jan 2016 11:52:32 +0000 druck <news@druck.org.uk> wrote: > >> On 16/01/2016 10:00, Rob wrote: >> > CPMDude <nospam@somewhere.net> wrote: >> >> You miss the point entirely. Once gzipped, if the file THEN becomes >> >> corrupted, you CANNOT RECOVER IT. The decompression algorithm >> >> cannot handle errors. The ENTIRE file is lost, rather than just a >> >> small portion of it (perhaps a single byte). >> > >> > But as already mentioned, it is often better to have a lost file and >> > not be able to recover it, than to have a file with a bit error and >> > not knowing where it is (or that it even exists). >> >> But if you use a block compression it will identify the block that is >> corrupted, but recovery everything else correctly. That can be the >> difference between recovering a particular file which only exists in >> that backup, and losing it forever. > > Yes it can, and it would be an object lesson in never allowing > there to be only a single copy of data that matters. If you have one or fewer backup copies of any file you consider valuable, you probably haven't been around computers long enough to be properly paranoid. I have two offline uncompressed copies of everything on my computers, made with rsync for speed. These backups are made weekly in sequence, so that even if a nearby lightning strike or house fire should destroy the computers and the backup that's in progress, last week's backup is still safe. In addition, anything that I'm working on (development projects, web pages) has additional copies. I use source control (cvs or git depending on the project) to keep an immediate, up to date copy on my house server. This server's content is also partially protected by an overnight compressed backup, but this is more for recovery from finger trouble than for disaster recovery because its always online and so subject to destruction by fires or mains spikes. In addition, my external website content all exists as a local copy on the house server and on my web host's system, so it can also be retrieved from the web host. Although the offline backups include the content of /bin, /usr and /var these are really overkill because you only need to keep backups of /home[*], customised files in /etc, anything in /usr/local and /opt because everything else will be recovered by a clean reinstall of your Linux distro. [*] I've deliberately excluded the contents of /var although a few packages, e.g. PostgreSQL, may put their data in /var. However, this is easily fixed by moving those directory structures to /home and replacing them with symlinks so they get backed up along with the rest of /home. The only downside to doing this is that SELinux may force you to retag those files and directories and change the SELinux configuration to suit. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2016-01-17 14:22 +0000 |
| Message-ID | <n7g83r$5gu$2@news.albasani.net> |
| In reply to | #10406 |
On 17/01/16 13:49, Martin Gregorie wrote: > If you have one or fewer backup copies of any file you consider valuable, > you probably haven't been around computers long enough to be properly > paranoid. +1 -- Outside of a dog, a book is a man's best friend. Inside of a dog it's too dark to read. Groucho Marx
[toc] | [prev] | [next] | [standalone]
| From | Alan Adams <alan@adamshome.org.uk> |
|---|---|
| Date | 2016-01-17 15:00 +0000 |
| Message-ID | <66c9684355.Alan.Adams@iyonix.adamshome.org.uk> |
| In reply to | #10407 |
In message <n7g83r$5gu$2@news.albasani.net>
The Natural Philosopher <tnp@invalid.invalid> wrote:
> On 17/01/16 13:49, Martin Gregorie wrote:
>> If you have one or fewer backup copies of any file you consider valuable,
>> you probably haven't been around computers long enough to be properly
>> paranoid.
> +1
I wonder how many users of clouid storage fail to keep a local backup?
I recall reading about an NZ based cloud storage company that fell
foul of the US government, resulting in the legitimate users losing
access to their data for a long time - around a year?
--
Alan Adams, from Northamptonshire
alan@adamshome.org.uk
http://www.nckc.org.uk/
[toc] | [prev] | [next] | [standalone]
| From | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| Date | 2016-01-17 16:00 +0000 |
| Message-ID | <n7gdqh$dhn$1@dont-email.me> |
| In reply to | #10408 |
On Sun, 17 Jan 2016 15:00:09 +0000, Alan Adams wrote: > In message <n7g83r$5gu$2@news.albasani.net> > The Natural Philosopher <tnp@invalid.invalid> wrote: > >> On 17/01/16 13:49, Martin Gregorie wrote: >>> If you have one or fewer backup copies of any file you consider >>> valuable, >>> you probably haven't been around computers long enough to be properly >>> paranoid. > >> +1 > > I wonder how many users of clouid storage fail to keep a local backup? > I recall reading about an NZ based cloud storage company that fell foul > of the US government, resulting in the legitimate users losing access to > their data for a long time - around a year? If you mean MegaUpload, its not clear that even the users who weren't copyright violators have ever got access to their data. However, similar bad things have happened to users of other clouds. These were users who assumed that their data was replicated to other parts of the cloud to provide automatic failover and/or backup and found out the hard way that neither had been done and that their data had been lost. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
[toc] | [prev] | [next] | [standalone]
| From | Ahem A Rivet's Shot <steveo@eircom.net> |
|---|---|
| Date | 2016-01-17 15:44 +0000 |
| Message-ID | <20160117154405.33b6cf564cb314252fac0143@eircom.net> |
| In reply to | #10406 |
On Sun, 17 Jan 2016 13:49:00 -0000 (UTC) Martin Gregorie <martin@address-in-sig.invalid> wrote: > If you have one or fewer backup copies of any file you consider valuable, > you probably haven't been around computers long enough to be properly > paranoid. Yep, for me keeping my data *starts* with ZFS RAIDZ2 with a decent snapshot schedule. Finger trouble - pull from snapshot (I have several months to get round to it), dead drive - replace ASAP while there's still one drive of redundancy, silent corruption - ZFS block checksums catch and repair it, fading data - detected by weekly scrub, if needs be treat as dead drive, disaster - offsite copy or recover from original source (yes double redundant RAID, history and block checksums are not enough protection - usually they are but not always). I find git really handy for config files, just init a git repository in / and check in every changed config file as soon as you know you want to keep it. Clone each of the repositories to an archive spot (on redundant storage) and run a regular fetch on each one. -- Steve O'Hara-Smith | Directable Mirror Arrays C:>WIN | A better way to focus the sun The computer obeys and wins. | licences available see You lose and Bill collects. | http://www.sohara.org/
[toc] | [prev] | [standalone]
Page 3 of 3 — ← Prev page 1 2 [3]
Back to top | Article view | comp.sys.raspberry-pi
csiph-web