Skip to content

Comments

Improve instructions#4

Open
Marcono1234 wants to merge 3 commits intoRob--W:mainfrom
Marcono1234:instructions-improvements
Open

Improve instructions#4
Marcono1234 wants to merge 3 commits intoRob--W:mainfrom
Marcono1234:instructions-improvements

Conversation

@Marcono1234
Copy link

@Marcono1234 Marcono1234 commented Jan 12, 2025

This tries to improve the instructions a bit by:

  • Converting instructions to numbered lists
  • Mentioning more clearly what to perform in the app and what on the PC
  • Adding hints for when nc is not available

Any feedback or improvement suggestions are welcome though, or feel free to directly make the changes if you want, or apply only some of these changes.

If possible please double check that the steps are still correct and I did not make any mistake.

- Convert instructions to numbered lists
- Mention more clearly what to perform in the app and what on the PC
- Add hints for when `nc` is not available
nc -l -s 127.0.0.1 -p 12101 > firefox-android-backup.tar.gz
```

On MacOS you might have to use `nc -l 127.0.0.1 12101 > ...` ([issue #3](https://github.com/Rob--W/firefox-android-backup-restore/issues/3)).\
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I haven't and cannot verify the MacOS command; I took it from the linked issue.

Copy link

@Benjamin-Loison Benjamin-Loison Jan 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case you don't know, you can legally rent a macOS computer, for instance at Scaleway.

Personal notes: Benjamin_Loison/MacOS/issues/1

```

On MacOS you might have to use `nc -l 127.0.0.1 12101 > ...` ([issue #3](https://github.com/Rob--W/firefox-android-backup-restore/issues/3)).\
On Windows you can use [ncat](https://nmap.org/ncat/) with `ncat -l 127.0.0.1 -p 12101 > ...`.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea to use ncat (and also to clear the cache before the backup) is from this Reddit comment.

README.md Outdated
If the script fails, saying it cannot find `nc`, see [issue #2](https://github.com/Rob--W/firefox-android-backup-restore/issues/2).
11. Close the reverse connection you opened earlier for the transfer:
```sh
adb reverse –-remove tcp:12101

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with my linux adb version 35.0.2-android-tools:

$ adb reverse –-remove tcp:12101
adb: error: cannot bind listener: unknown socket specification:–-remove

but it works with

$ adb reverse tcp:12101 --remove

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for mentioning this! It looks like I accidentally used an "en dash" (, U+2013) instead of a regular hyphen here in the documentation. Maybe that was the issue.

Could you please check again?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When debugging, I re-typed in reverse order, accidentally fixing the copy-pasted en-dash. I wrongly assumed the issue was the args order.
I can't test presently, but your fix of en-dash does make totally sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants