izzy/Adebar
9
73
Fork
You've already forked Adebar
7

Implement external data backup and restore #73

Open
Nemris wants to merge 4 commits from Nemris/Adebar:backup-extdata into master
pull from: Nemris/Adebar:backup-extdata
merge into: izzy:master
izzy:master
izzy:devel
Contributor
Copy link

This data lives in the shared internal storage and isn't guaranteed to
exist for every app, therefore it's not mandatory to have an
extdata-*.tar file when restoring.

The logic in this PR will likely have to be reviewed when #72 is addressed.

This data lives in the shared internal storage and isn't guaranteed to exist for every app, therefore it's not mandatory to have an extdata-*.tar file when restoring. The logic in this PR will likely have to be reviewed when #72 is addressed.
Author
Contributor
Copy link

The external data backup/restore is now opt-in, based on a new command-line flag.

The external data backup/restore is now opt-in, based on a new command-line flag.
First-time contributor
Copy link

"Fix fallback package check" is a somewhat unrelated fix and possibly deserves a separate MR.
the other commits should be squashed.

"Fix fallback package check" is a somewhat unrelated fix and possibly deserves a separate MR. the other commits should be squashed.
Owner
Copy link

Uh-oh... looks like some notification didn't reach me...

@Nemris is this ready to be merged? What's your thought on the suggestions by @ossilator? I'm fine keeping it together in one MR (now that's already in), going for "rebase + fast-forward". Haven't tested the changes yet, though. You've mentioned (still open) issue 72 for review; that still valid? It's been some time...

Uh-oh... looks like some notification didn't reach me... @Nemris is this ready to be merged? What's your thought on the suggestions by @ossilator? I'm fine keeping it together in one MR (now that's already in), going for "rebase + fast-forward". Haven't tested the changes yet, though. You've mentioned (still open) issue 72 for review; that still valid? It's been some time...
Author
Contributor
Copy link

Uh-oh... looks like some notification didn't reach me...

@Nemris is this ready to be merged? What's your thought on the suggestions by @ossilator? I'm fine keeping it together in one MR (now that's already in), going for "rebase + fast-forward". Haven't tested the changes yet, though. You've mentioned (still open) issue 72 for review; that still valid? It's been some time...

To be honest, it's been quite a bit already - and I've lost touch with this MR. Is there enough demand to have this feature be implemented, or can we do without it?

Either way, it should still work as expected, but we should likely see whether it impacts #72 if you do merge it.

> Uh-oh... looks like some notification didn't reach me... > > @Nemris is this ready to be merged? What's your thought on the suggestions by @ossilator? I'm fine keeping it together in one MR (now that's already in), going for "rebase + fast-forward". Haven't tested the changes yet, though. You've mentioned (still open) issue 72 for review; that still valid? It's been some time... To be honest, it's been quite a bit already - and I've lost touch with this MR. Is there enough demand to have this feature be implemented, or can we do without it? Either way, it should still work as expected, but we should likely see whether it impacts #72 if you do merge it.
Owner
Copy link

Thanks @Nemris! And yes, it was quite a while ago. To me it was not clear if the PR was ready for merge ("The logic in this PR will likely have to be reviewed when #72 is addressed"), so I waited for a signal – and then forgot 🙈 So what is the status now? Testing needed – or ready for merge? Maybe @ossilator wants to try if it works as expected before we merge?

Thanks @Nemris! And yes, it was quite a while ago. To me it was not clear if the PR was ready for merge ("The logic in this PR will likely have to be reviewed when #72 is addressed"), so I waited for a signal – and then forgot 🙈 So what is the status now? Testing needed – or ready for merge? Maybe @ossilator wants to try if it works as expected before we merge?
Owner
Copy link

@Nemris it seems we get lost here again... There was nothing implemented yet for adopted storage, so this should at least not break that. Maybe we can finalize this before addressing the other one? @ossilator what do you think?

@Nemris it seems we get lost here again... There was nothing implemented yet for adopted storage, so this should at least not break that. Maybe we can finalize this **before** addressing the other one? @ossilator what do you think?
First-time contributor
Copy link

upon a quick look i'd say i stand by my comment, because i find good commit hygiene important.

i've lost interest beyond that; my current rom comes with seedvault, which seems adequate.

upon a quick look i'd say i stand by my comment, because i find good commit hygiene important. i've lost interest beyond that; my current rom comes with seedvault, which seems adequate.
Author
Contributor
Copy link

@izzy It's been a fair while and I myself have not much use for this feature, as it seems it targets what's pretty much an edge case. I've seen only one app store its actual data in /sdcard/Android, so I wonder if the MR is necessary.

(Regarding the fix @ossilator pointed out, I might look into working on a separate MR as time allows and then rebase this one on top of the main branch if it needs to be kept open.)

@izzy It's been a fair while and I myself have not much use for this feature, as it seems it targets what's pretty much an edge case. I've seen only one app store its actual data in `/sdcard/Android`, so I wonder if the MR is necessary. (Regarding the fix @ossilator pointed out, I might look into working on a separate MR as time allows and then rebase this one on top of the main branch if it needs to be kept open.)
Owner
Copy link

Thanks @Nemris! Then let's leave this one open for now. I'll leave it to you two to decide if it shall be rebased and merged later, or simply closed.

@ossilator speaking about Seedvault, out of curiosity: is it meanwhile possible to restore a single app and/or its data "on demand"? That was what I missed when I looked into it the last time (which admittedly is quite a while ago).

Thanks @Nemris! Then let's leave this one open for now. I'll leave it to you two to decide if it shall be rebased and merged later, or simply closed. @ossilator speaking about Seedvault, out of curiosity: is it meanwhile possible to restore a single app and/or its data "on demand"? That was what I missed when I looked into it the last time (which admittedly is quite a while ago).
First-time contributor
Copy link

yes, you can select it from the list.
the whole process was a bit flubbed, though - it didn't accumulate the incremental backups, and apps not installed through the play store needed an extra step. i also had to set up a web(-dav) server on my pc to get the data back to the blank phone. so a bit disappointing overall, but adequate for me.

yes, you can select it from the list. the whole process was a bit flubbed, though - it didn't accumulate the incremental backups, and apps not installed through the play store needed an extra step. i also had to set up a web(-dav) server on my pc to get the data back to the blank phone. so a bit disappointing overall, but adequate for me.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u backup-extdata:Nemris-backup-extdata
git switch Nemris-backup-extdata

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff Nemris-backup-extdata
git switch Nemris-backup-extdata
git rebase master
git switch master
git merge --ff-only Nemris-backup-extdata
git switch Nemris-backup-extdata
git rebase master
git switch master
git merge --no-ff Nemris-backup-extdata
git switch master
git merge --squash Nemris-backup-extdata
git switch master
git merge --ff-only Nemris-backup-extdata
git switch master
git merge Nemris-backup-extdata
git push origin master
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
izzy/Adebar!73
Reference in a new issue
izzy/Adebar
No description provided.
Delete branch "Nemris/Adebar:backup-extdata"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?