Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to restore from split backups (if all of them are together) #47

Closed
aveao opened this issue Jul 11, 2018 · 7 comments
Closed

Ability to restore from split backups (if all of them are together) #47

aveao opened this issue Jul 11, 2018 · 7 comments
Labels
enhancement New feature or request

Comments

@aveao
Copy link

aveao commented Jul 11, 2018

So, recently I took a backup to a 16GB microSD card. It split them into 15 parts due to size limitations, I had to swap the card around and reboot to hekate various times etc, and when I wanted to restore them using a 64GB microSD card today (on exFAT ofc), I simply copied all 15 files to the microSD card, but found out that hekate doesn't support just reading them all.

This would be pretty nice to have so that other people can avoid what I am forced to do right now (which is removing 32gb of backups from microSD, combining them and then copying again, wasting a couple hours in the process due to my laptop's lack of sdxc support).

If you want I can try to write support for this and send a PR.

@CTCaer
Copy link
Owner

CTCaer commented Jul 11, 2018

Yeah, this is not supported for now.
I wanted to make sure that restore is ok first.

But right now the top priority is payload launching which I want to implement since a couple of weeks.

@CTCaer CTCaer added the enhancement New feature or request label Jul 11, 2018
@emvym3two
Copy link
Contributor

I have started writing a version of this since I wanted the same..

The version is working but I had to cut out the verification code with #if's for now since it makes this condition no longer true

Max size is 126296 Bytes

I'm re-factoring the code a bit to try to cut down on the size by putting code which does the same thing into functions.

The tag for what I've done is here
https://github.com/emvym3two/hekate/tree/v4.6svcsplitprerelease

And a compiled release version of it is here.

https://github.com/emvym3two/hekate/releases/tag/v4.6svcsplitprerelease

I'll have to have a look at splitting it out into a module which can be loaded so that the size won't be an issue (especially since I noticed the main branch is now only a few bytes off what I'm assuming the size limitation is)

@emvym3two
Copy link
Contributor

The version is working but I had to cut out the verification code with #if's for now since it makes this condition no longer true

Max size is 126296 Bytes

When I build the 4.8 tag it's actually saying

Payload size is 127607
Max size is 126296 Bytes.

Rather than the 126283 bytes you have managed.

Do you know what would be making the file size larger for this.
(Sorry c skills haven't been used in about 10 years)

@CTCaer
Copy link
Owner

CTCaer commented Feb 25, 2019

I used latest gcc which fixes a bug that was introduced around October or September and lowers the size again on -O2.
Btw if you want to work on it and PR, use the dev branch here.
And I can fix the sizes.

@CTCaer
Copy link
Owner

CTCaer commented Mar 6, 2019

@emvym3two any news on that?
Only this is left for a new release.

I can work on it if you don't have time.

@fennectech
Copy link

fennectech commented Mar 7, 2019

This would be amazing. Then we dont have to find a 32 gig card to format to expat for a restore.

@CTCaer
Copy link
Owner

CTCaer commented Mar 8, 2019

50eff41

Thanks @emvym3two

@CTCaer CTCaer closed this as completed Mar 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants