Giter Site home page Giter Site logo

wpress-extractor's Introduction

Wpress-Extractor Windows/Mac

A simple windows app that allows you to extract .wpress files created by the awesome All-in-one-Wp-Migration Wordpress plugin

Credits

The extractor source code : https://github.com/yani-/wpress. I had to make a tiny modification to their reader.go file to allow it to run on Windows systems.

Download link

Windows - Download now

Mac - Download now *IMPORTANT FOR MAC: Don't forget to make the binary executable by running a chmod +x wpress_extractor on the downloaded file via the Terminal.

How to extract/open .wpress files ?

Simply provide a path to your downloaded .wpress file as the first commandline argument to the program. ./wpress_extractor /path/to/my/backup.wpress

I'm not very technical - How to use this thing?

Windows Instructions

Simply download the extractor then drop your.wpress file onto the executable (Wpress-extractor.exe). (Thanks hughc!)

OR

  1. Download the extractor
  2. Create a directory where you wish your files to be extracted to
  3. Copy the downloaded extractor to that directory
  4. Copy your .wpress file to that directory as well
  5. Open up a command prompt
  6. CD into the directory you just created, let's say its C:\Wordpress-Backup. The command you'll run would be cd C:\Wordpress-Backup
  7. Now run the following command wpress-extractor <name-of-your.wpress file>. For example my .wpress file was fifthsegment.wpress so the command I ran was wpress-extractor fifthsegment.wpress.
  8. You'll find your files extracted into the same directory where the extractor was run. In my case it was C:\Wordpress-Backup

wpress-extractor's People

Contributors

antonk52 avatar fifthsegment avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wpress-extractor's Issues

Doesn't exit cleanly?

Been sitting like this for a few hours, I'm pretty certain in uncompressed everything. I was only after the /upload directory. It doesn't appear to exit cleanly and give me back the command prompt?

Screenshot: http://take.ms/u8d6P

OS Sierra 10.12.3

No Clue on Mac OS Sierra

I've tried for a long hour to use the Mac version but have no clue how to get it working.
My back up file is on: "/Users/cisco/Desktop/e"

So am I supposed to open the terminal app and paste this:
"./wpress_extractor /Users/cisco/Desktop/e/backup.wpress" ?

All I see is the "No such file or directory" message

Can some please tell me in simple step by step instructions how to open this on a Mac?

Mac -bash: wpress_extractor: command not found

Downloaded the raw wpress_extractor file and placed it in sen folder, also placed my backup.wpress file in the same folder, cd'ed into the folder and ran cmod +x wpress_extracor, now the file is executable, now when I run wpress_extractor backup.wpress I get -bash: wpress_extractor: command not found

Compress it Back

After the extraction is it possible to compress it back to .WPRESS format.

Runtime error on mac

fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0x6f98e254ea9 pc=0x1df19]

runtime stack:
runtime.throw(0x13e800, 0x2a)
/usr/local/go/src/runtime/panic.go:527 +0x90
runtime.sigpanic()
/usr/local/go/src/runtime/sigpanic_unix.go:12 +0x5a
runtime.(*gcWork).put(0xc82001c720, 0xc820494060)
/usr/local/go/src/runtime/mgcwork.go:87 +0x49
runtime.greyobject(0xc820494060, 0x0, 0x0, 0xc81ffdb5fc, 0x0, 0x3c0500, 0xc82001c720)
/usr/local/go/src/runtime/mgcmark.go:1015 +0x2f1
runtime.shade(0xc820494060)
/usr/local/go/src/runtime/mgcmark.go:953 +0x9a
runtime.gcmarkwb_m(0xc8200001d8, 0xc820494060)
/usr/local/go/src/runtime/mbarrier.go:91 +0xc1
runtime.writebarrierptr_nostore1.func1()
/usr/local/go/src/runtime/mbarrier.go:117 +0x134
runtime.systemstack(0xc82003ddd8)
/usr/local/go/src/runtime/asm_amd64.s:278 +0xab
runtime.writebarrierptr_nostore1(0xc8200001d8, 0xc820494060)
/usr/local/go/src/runtime/mbarrier.go:118 +0x71
runtime.writebarrierptr_nostore(0xc8200001d8, 0xc820494060)
/usr/local/go/src/runtime/mbarrier.go:150 +0x47
runtime.newstack()
/usr/local/go/src/runtime/stack1.go:760 +0x8d9
runtime.morestack()
/usr/local/go/src/runtime/asm_amd64.s:330 +0x7f

goroutine 1 [stack growth]:
bytes.makeCutsetFunc.func1(0x0, 0x1)
/usr/local/go/src/bytes/bytes.go:572 fp=0xc820041b18 sp=0xc820041b10
bytes.lastIndexFunc(0xc8204bc119, 0x1000, 0x1000, 0xc820494060, 0xc8204bc100, 0x1000)
/usr/local/go/src/bytes/bytes.go:564 +0xb3 fp=0xc820041b68 sp=0xc820041b18
bytes.TrimRightFunc(0xc8204bc119, 0x1000, 0x1000, 0xc820494060, 0x0, 0x0, 0x0)
/usr/local/go/src/bytes/bytes.go:487 +0x5f fp=0xc820041bc0 sp=0xc820041b68
bytes.TrimFunc(0xc8204bc119, 0x1000, 0x1000, 0xc820494060, 0x0, 0x0, 0x0)
/usr/local/go/src/bytes/bytes.go:500 +0x95 fp=0xc820041c18 sp=0xc820041bc0
bytes.Trim(0xc8204bc119, 0x1000, 0x1000, 0x117eb8, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/bytes/bytes.go:585 +0x68 fp=0xc820041c58 sp=0xc820041c18
github.com/yani-/wpress.Reader.Extract(0x7ffeefbffc8b, 0xb, 0xc82002e028, 0x8a, 0x0, 0x0, 0x0)
/Users/abdullahirfan/go/src/github.com/yani-/wpress/reader.go:102 +0x3fb fp=0xc820041e60 sp=0xc820041c58
main.main()
/Users/abdullahirfan/godev/wpress_extractor.go:16 +0x193 fp=0xc820041f50 sp=0xc820041e60
runtime.main()
/usr/local/go/src/runtime/proc.go:111 +0x2b0 fp=0xc820041fa0 sp=0xc820041f50
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1721 +0x1 fp=0xc820041fa8 sp=0xc820041fa0

Getting segmentation fault

I got the error message, using the macOS binary that's behind the "download" link:

[1]    3623 segmentation fault  ./wpress_extractor foo.wpress

Im getting an invalid argument after 30 sec

screenshot_1
screenshot_2

Hi There! I hope someone reads this. I 've never used GitHub before. Anyway, I have used the .wpress extractor in the past successfully but this time I'm getting an invalid argument after it starts to unpack one of the plugins, the rev slider. Do you think there might be a fix to this? Thank you for your timely response.

Wpress extractor has only extracted wordpress files not the database.

Hello, I have used wpress-extractor to extract wordpress files and database from .wpress file. It became useful on extracting all the wordpress files but I didn't find database file inside any folder. Please help, because my wpress file contained both the files and the database. Suggest on how to find the database file.

Not an issue but a solution

So firstly thanks for this, hopefully it saves me some time finding an old page backup i need.

so windows cmd is old, long and boring lol.... DRAG REQUIRED FILE ONTO EXE worked perfectly on windows 10 x64

Stack Overflow on OSX

Not really familiar with Golang, but heres a stack trace of the tool not working on mac os 10.13.6

Wpress Extracter.
kushview.local-20190304-162814-885.wpress
runtime: newstack sp=0xc820032f40 stack=[0xb3a24ca69de, 0xc820032fe0]
	morebuf={pc:0x18271 sp:0xc820032f50 lr:0x0}
	sched={pc:0x1b910 sp:0xc820032f48 lr:0x0 ctxt:0x0}
runtime: gp=0xc820001b00, gp->status=0x4
 runtime: split stack overflow: 0xc820032f40 < 0xb3a24ca69de
fatal error: runtime: split stack overflow

runtime stack:
runtime.throw(0x135be0, 0x1d)
	/usr/local/go/src/runtime/panic.go:527 +0x90
runtime.newstack()
	/usr/local/go/src/runtime/stack1.go:752 +0x89f
runtime.morestack()
	/usr/local/go/src/runtime/asm_amd64.s:330 +0x7f

goroutine 7 [stack growth]:
runtime.gcDrain(0xc82001e720, 0x7d0)
	/usr/local/go/src/runtime/mgcmark.go:718 fp=0xc820032f50 sp=0xc820032f48
runtime.gcBgMarkWorker(0xc82001d500)
	/usr/local/go/src/runtime/mgc.go:1320 +0x281 fp=0xc820032fb8 sp=0xc820032f50
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1721 +0x1 fp=0xc820032fc0 sp=0xc820032fb8
created by runtime.gcBgMarkStartWorkers
	/usr/local/go/src/runtime/mgc.go:1239 +0x93

goroutine 1 [runnable]:
syscall.Syscall(0x4, 0x4, 0xc8204cc000, 0x200, 0x200, 0x0, 0x0)
	/usr/local/go/src/syscall/asm_darwin_amd64.s:16 +0x5
syscall.write(0x4, 0xc8204cc000, 0x200, 0x200, 0x3, 0x0, 0x0)
	/usr/local/go/src/syscall/zsyscall_darwin_amd64.go:1360 +0x5f
syscall.Write(0x4, 0xc8204cc000, 0x200, 0x200, 0xc8204cc000, 0x0, 0x0)
	/usr/local/go/src/syscall/syscall_unix.go:176 +0x4d
os.(*File).write(0xc8200341f8, 0xc8204cc000, 0x200, 0x200, 0x0, 0x0, 0x0)
	/usr/local/go/src/os/file_unix.go:232 +0xd0
os.(*File).Write(0xc8200341f8, 0xc8204cc000, 0x200, 0x200, 0x200, 0x0, 0x0)
	/usr/local/go/src/os/file.go:139 +0x8a
github.com/yani-/wpress.Reader.Extract(0x7ffeefbffb41, 0x29, 0xc820034028, 0x39, 0x0, 0x0, 0x0)
	/Users/abdullahirfan/go/src/github.com/yani-/wpress/reader.go:136 +0x8d3
main.main()
	/Users/abdullahirfan/godev/wpress_extractor.go:16 +0x193

Unexpected end of file error

Hi there,

Im trying to extract a .wpress file.
After a while i get an error in CMD.

"Error = EOF"

Anybody know how to fix this?

'file name too long'

Running the extractor on mac is giving me mkdir xxxxxxx > ' : file name too long' and seems to be aborting before spitting out the database.

I've moved the recovery folder to the root of drive just in case that helped but it didn't make a difference.

Permission denied

Hi and thanks for this tool. I am a Mac User and unfortunately unable to run the code in the terminal. The error message is "Permission denied". Do you have any ideas as to what I could do? Any hints would be greatly appreciated!

Screenshot 2020-11-03 at 11 50 25

Ease compilation

Go evolved and added support for go modules.

By adding a go.mod file the underlying dependency can be declared local to project and it won't be put into a global scope.

This also makes it easy to compile this code on any platform (I'm e.g.: using linux).

Fatal Error

Getting this every time I try to run, I'm on Mac OS High Sierra.

fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0xb01dfacedebac1e pc=0x1e15a]

runtime stack:
runtime.throw(0x13e800, 0x2a)
	/usr/local/go/src/runtime/panic.go:527 +0x90
runtime.sigpanic()
	/usr/local/go/src/runtime/sigpanic_unix.go:12 +0x5a
runtime.(*gcWork).dispose(0xc82001b220)
	/usr/local/go/src/runtime/mgcwork.go:164 +0x2a
runtime.gc.func2.1(0xc82001a000)
	/usr/local/go/src/runtime/mgc.go:1032 +0x30
runtime.handoffp(0xc82001a000)
	/usr/local/go/src/runtime/proc1.go:1229 +0x1bc
runtime.forEachP(0x14c5f8)
	/usr/local/go/src/runtime/proc1.go:786 +0x2fb
runtime.gc.func2()
	/usr/local/go/src/runtime/mgc.go:1033 +0x54
runtime.systemstack(0xc820484c40)
	/usr/local/go/src/runtime/asm_amd64.s:262 +0x79
runtime.mstart()
	/usr/local/go/src/runtime/proc1.go:668

goroutine 5 [running]:
runtime.systemstack_switch()
	/usr/local/go/src/runtime/asm_amd64.s:216 fp=0xc82002bc98 sp=0xc82002bc90
runtime.gc(0x0)
	/usr/local/go/src/runtime/mgc.go:1034 +0x234 fp=0xc82002bf90 sp=0xc82002bc98
runtime.backgroundgc()
	/usr/local/go/src/runtime/mgc.go:897 +0x3d fp=0xc82002bfc0 sp=0xc82002bf90
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1721 +0x1 fp=0xc82002bfc8 sp=0xc82002bfc0
created by runtime.startGC
	/usr/local/go/src/runtime/mgc.go:870 +0x186

goroutine 1 [syscall]:
syscall.Syscall(0x4, 0x4, 0xc820495400, 0x200, 0x200, 0x0, 0x0)
	/usr/local/go/src/syscall/asm_darwin_amd64.s:16 +0x5
syscall.write(0x4, 0xc820495400, 0x200, 0x200, 0x3, 0x0, 0x0)
	/usr/local/go/src/syscall/zsyscall_darwin_amd64.go:1360 +0x5f
syscall.Write(0x4, 0xc820495400, 0x200, 0x200, 0xc820495400, 0x0, 0x0)
	/usr/local/go/src/syscall/syscall_unix.go:176 +0x4d
os.(*File).write(0xc82002e038, 0xc820495400, 0x200, 0x200, 0x0, 0x0, 0x0)
	/usr/local/go/src/os/file_unix.go:232 +0xd0
os.(*File).Write(0xc82002e038, 0xc820495400, 0x200, 0x200, 0x200, 0x0, 0x0)
	/usr/local/go/src/os/file.go:139 +0x8a
github.com/yani-/wpress.Reader.Extract(0x7ffeefbffbfb, 0x27, 0xc82002e028, 0x1, 0x0, 0x0, 0x0)
	/Users/abdullahirfan/go/src/github.com/yani-/wpress/reader.go:136 +0x8d3
main.main()
	/Users/abdullahirfan/godev/wpress_extractor.go:16 +0x193

Invalid File Names in Archive

When attempting to extract a wpress file containing an upload file with an invalid file name the extractor fails and returns without completing, can the extractor be extended to simply ignore gracefully and continue the extract? The source wpress file was provided to me and I don't have much information regarding the specifics of the invalid file(s).

I'm running wpress-extractor.exe on a Windows 10 machine.

2016-01-05_8-34-12

I can provide a link to the *.wpress file if necessary.

I'd be happy to learn Go, update, and submit a pull request but at the moment I don't know how involved such a "fix" would be. This admittedly might not be relevant to most users.

any chance of an encoder?

I note on the source page you reference that there's source code there for an encoder too; any chance of compiling that into an executable?

Also, a documentation note: for the Windows exe, drag / dropping the archive onto the executable works too, for those that are command-line adverse.
cheers
Hugh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.