-
Notifications
You must be signed in to change notification settings - Fork 38
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
Conversation
#### 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
.
There was a problem hiding this 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. |
There was a problem hiding this comment.
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
.
There was a problem hiding this 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.
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. |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
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 |
Draft that has
And misses: