{"action":"created","issue":{"url":"https://api.github.com/repos/backup/backup/issues/684","labels_url":"https://api.github.com/repos/backup/backup/issues/684/labels{/name}","comments_url":"https://api.github.com/repos/backup/backup/issues/684/comments","events_url":"https://api.github.com/repos/backup/backup/issues/684/events","html_url":"https://github.com/backup/backup/issues/684","id":96248342,"number":684,"title":"Can't unpack gzipped archive","user":{"login":"noff","id":937186,"avatar_url":"https://avatars.githubusercontent.com/u/937186?v=3","gravatar_id":"","url":"https://api.github.com/users/noff","html_url":"https://github.com/noff","followers_url":"https://api.github.com/users/noff/followers","following_url":"https://api.github.com/users/noff/following{/other_user}","gists_url":"https://api.github.com/users/noff/gists{/gist_id}","starred_url":"https://api.github.com/users/noff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noff/subscriptions","organizations_url":"https://api.github.com/users/noff/orgs","repos_url":"https://api.github.com/users/noff/repos","events_url":"https://api.github.com/users/noff/events{/privacy}","received_events_url":"https://api.github.com/users/noff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-21T07:23:42Z","updated_at":"2015-07-22T19:42:36Z","closed_at":null,"body":"Using \r\n```\r\ncompress_with Gzip\r\n``` \r\nin model config.\r\n\r\nArchive uploads to storage with filename \"database.tar\".\r\n\r\nWhen trying to untar it got error:\r\n```\r\n$ tar -zxf dbdump.tar \r\n\r\ngzip: stdin: not in gzip format\r\ntar: Child returned status 1\r\ntar: Error is not recoverable: exiting now\r\n```\r\n\r\nTrying to untar without -z:\r\n```\r\n$ tar -vxf dbdump.tar \r\ndbdump/\r\ndbdump/databases/\r\ndbdump/databases/PostgreSQL.sql.gz\r\ntar: Skipping to next header\r\ntar: Exiting with failure status due to previous errors\r\n```\r\n\r\nBut in folder dbdump archive created:\r\n```\r\n$ ls -la dbdump/databases/PostgreSQL.sql.gz \r\n-rw-r--r-- 1 rails rails 5799851450 Jul 21 04:39 dbdump/databases/PostgreSQL.sql.gz\r\n```\r\n\r\nTrying to unpack it:\r\n```\r\n$ cd dbdump/databases/\r\nrails@api:~/dbdump/databases$ gunzip PostgreSQL.sql.gz \r\ngzip: PostgreSQL.sql.gz: invalid compressed data--format violated\r\n```\r\n\r\nHow to unpack backup packed with gem backup?\r\n\r\n\r\nUsing OS Debian 7. Versions of software:\r\n\r\n```\r\n$ tar --version\r\ntar (GNU tar) 1.26\r\nCopyright (C) 2011 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.\r\nWritten by John Gilmore and Jay Fenlason.\r\n\r\n\r\n$ gzip --version\r\ngzip 1.5\r\nCopyright (C) 2007, 2010, 2011 Free Software Foundation, Inc.\r\nCopyright (C) 1993 Jean-loup Gailly.\r\nThis is free software.  You may redistribute copies of it under the terms of\r\nthe GNU General Public License <http://www.gnu.org/licenses/gpl.html>.\r\nThere is NO WARRANTY, to the extent permitted by law.\r\nWritten by Jean-loup Gailly.\r\n\r\n$ gunzip --version\r\ngunzip (gzip) 1.5\r\nCopyright (C) 2007, 2011-2012 Free Software Foundation, Inc.\r\nThis is free software.  You may redistribute copies of it under the terms of\r\nthe GNU General Public License <http://www.gnu.org/licenses/gpl.html>.\r\nThere is NO WARRANTY, to the extent permitted by law.\r\nWritten by Paul Eggert.\r\n\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/backup/backup/issues/comments/123840265","html_url":"https://github.com/backup/backup/issues/684#issuecomment-123840265","issue_url":"https://api.github.com/repos/backup/backup/issues/684","id":123840265,"user":{"login":"tombruijn","id":282402,"avatar_url":"https://avatars.githubusercontent.com/u/282402?v=3","gravatar_id":"","url":"https://api.github.com/users/tombruijn","html_url":"https://github.com/tombruijn","followers_url":"https://api.github.com/users/tombruijn/followers","following_url":"https://api.github.com/users/tombruijn/following{/other_user}","gists_url":"https://api.github.com/users/tombruijn/gists{/gist_id}","starred_url":"https://api.github.com/users/tombruijn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombruijn/subscriptions","organizations_url":"https://api.github.com/users/tombruijn/orgs","repos_url":"https://api.github.com/users/tombruijn/repos","events_url":"https://api.github.com/users/tombruijn/events{/privacy}","received_events_url":"https://api.github.com/users/tombruijn/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T19:42:36Z","updated_at":"2015-07-22T19:42:36Z","body":"Hi @noff, I'm having no problems unpacking my backups?\r\n\r\nI'm on OSX and my versions are:\r\n\r\n```\r\n$ tar --version\r\nbsdtar 2.8.3 - libarchive 2.8.3\r\n\r\n$ gzip --version\r\nApple gzip 242\r\n```\r\n\r\nIs the OS you run backup on different from the one you're unpacking it on? Try unpacking it on the server the backup was made. See if it's using the latest versions of the tools there.\r\n\r\nBackup only uses the tools installed on your system, not any special thing we ship along with backup. You can see which tool it uses by running `which gzip` under the same user and shell as backup is configured under.\r\n\r\nLet me know if you find out anything new."}}