Backups corrupted?


(PJH) #1
[postgres@dellxps-pjh ~]$ export BU=2014-09-20
[postgres@dellxps-pjh ~]$ mkdir -p ~/restores/$BU
[postgres@dellxps-pjh ~]$ tar -C ~/restores/$BU/ -xf /tmp/what-the-daily-wtf-$BU-*.tar.gz dump.sql

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
[postgres@dellxps-pjh ~]$ tar -tf /tmp/what-the-daily-wtf-2014-09-20-030000.tar.gz 
[...]
uploads/default/4081/ba2be03559e3959c.png
uploads/default/1856/
uploads/default/1856/f6f37e719dff048f.png
uploads/default/5750/
uploads/default/5750/eb24f19d4dac6c0f.png
uploads/default/4058/
uploads/default/4058/1735e7ca0324bce0.png

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
[postgres@dellxps-pjh ~]$ ls -lart /tmp/what-the-daily-wtf-2014-09-20-030000.tar.gz 
-rw-rw-r-- 1 pjh pjh 1088794624 Sep 20 12:33 /tmp/what-the-daily-wtf-2014-09-20-030000.tar.gz
[postgres@dellxps-pjh ~]$ ls -lh /tmp/what-the-daily-wtf-2014-09-20-030000.tar.gz 
-rw-rw-r-- 1 pjh pjh 1.1G Sep 20 12:33 /tmp/what-the-daily-wtf-2014-09-20-030000.tar.gz

This has happened for the last couple of backups I’ve looked at, but I don’t know when it started - it’s previously worked without error.


(PJH) #2

Incidentally, the file (the sql backup) in the tarball I’m extracting appears fine.


(Jeff Atwood) #3

Are they truncated at 1GB? We have another report of that and I suspect this is a duplicate.


(Sam Saffron) #4

Yeah, looks like a dupe of

Having a look


(Sam Saffron) #5