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

Add backup instructions #298

Merged
merged 3 commits into from
Apr 5, 2023

Conversation

eLtMosen
Copy link
Member

Draft that has

  • Manual backup instructions using adb and ssh

And misses:

  • Srcipted method describing berosets host-tools
  • Restore involving magenfires partition extraction script

@eLtMosen eLtMosen marked this pull request as draft March 18, 2023 23:30
#### 3.a Backup using SSH and `dd`
Navigate to a folder where you want to store the backup. Or add a full path before the image name (after `of=`) in the next command.

ssh root@192.168.2.15 "dd if=/dev/mmcblk0" | dd "of=watch-backup.img" bs=4096 status=progress
Copy link
Member

Choose a reason for hiding this comment

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

Ooc wouldn't scp root@192.168.2.15:/dev/mmcblk0 of-watch.backup.img work ? It feels like a more obvious parallel to adb pull but not sure what the tradeoffs are.

@beroset might know

Copy link
Member

Choose a reason for hiding this comment

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

It's not possible to use scp because it returns an error: scp: Cannot download non-regular file: /dev/mmcblk0.

Copy link
Member

@beroset beroset left a comment

Choose a reason for hiding this comment

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

I know it's still a draft, but maybe these comments are of some use to you.


### 2. Enable SSH or ADB

Open the settings app and the USB page. Select Developer mode to enable SSH. Or ADB mode to use ADB connection.
Copy link
Member

Choose a reason for hiding this comment

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

It might be helpful to note that Developer mode is the default, so if AsteroidOS has just been booted for the first time, it's already configured for ssh.

Copy link
Member Author

Choose a reason for hiding this comment

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

I know it's still a draft, but maybe these comments are of some use to you.

Thats exactly why its a draft :D
Was hoping for input. thank you.


adb pull /dev/mmcblk0/watch-backup.img

The copy process might take up to an hour on watches with 8GB storage.
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this true for either adb or ssh methods? The placement of this makes it look like it's only adb mode.

@eLtMosen eLtMosen marked this pull request as ready for review April 5, 2023 15:46
@eLtMosen eLtMosen requested a review from beroset April 5, 2023 15:46
Copy link
Member

@beroset beroset left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@eLtMosen eLtMosen merged commit 99b890d into AsteroidOS:master Apr 5, 2023
@FlorentRevest
Copy link
Member

Nice :) thanks! It would have been out of scope for this PR anyway but maybe we should have a dedicated page for all the asteroid-hosttools goodness and we could link to its backup paragraph from this page

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.

None yet

3 participants