You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 2, 2023. It is now read-only.
Welcome to rockpi-toolkit, the repository will collect tools that can be used on officially supported ubuntu and debian.
4
+
5
+
## 1. rockpi-backup.sh
6
+
7
+
This script allows you to back up your system using Rockpi4 or RockpiS. It is currently possible to back up each other between uSD and eMMC. I haven't tested it on NVMe, because I don't have it yet.
-m specify model, rockpi4 or rockpis, default is rockpi4
26
+
-t specify target, backup or expand, default is backup
27
+
-u unattended backup image, no confirmations asked
28
+
linaro@rockpi:~ $
29
+
```
30
+
31
+
If you run it without any arguments, the script will work with the default values and will confirm you.
32
+
33
+
```bash
34
+
linaro@rockpi:~ $ sudo ./rockpi-backup.sh
35
+
Welcome to use rockpi-backup.sh, part of the Rockpi toolbox.
36
+
37
+
Enter rockpi-backup.sh -h to view help.
38
+
For a description and example usage, see the README.md at:
39
+
https://rock.sh/rockpi-toolbox
40
+
41
+
--------------------
42
+
Warning: The resulting partition is not properly aligned for best performance.
43
+
--------------------
44
+
The backup file will be saved at /home/linaro/rockpi-backup-190725-1004.img
45
+
After this operation, 4656 MB of additional disk space will be used.
46
+
47
+
Do you want to continue? [Y/n]
48
+
```
49
+
50
+
You can specify output path with provide -o argument, if it is a directory, the output file will be directory+date.img, if it is a .img ending file, the output file will be the file.
Welcome to use rockpi-backup.sh, part of the Rockpi toolbox.
55
+
56
+
Enter rockpi-backup.sh -h to view help.
57
+
For a description and example usage, see the README.md at:
58
+
https://rock.sh/rockpi-toolbox
59
+
60
+
--------------------
61
+
Warning: The resulting partition is not properly aligned for best performance.
62
+
--------------------
63
+
The backup file will be saved at /home/linaro/debian.img
64
+
After this operation, 4656 MB of additional disk space will be used.
65
+
66
+
Do you want to continue? [Y/n]
67
+
```
68
+
69
+
### Tips
70
+
71
+
1. If you want to use dd to restore your image, and your uSD or eMMC has GPT partitions and is mounted, please umount before dd.
72
+
73
+
2. If you are using debian, want to backup and restore from uSD to eMMC, or from eMMC to uSD, you need to edit the boot line in /etc/fstab, mmcblk0 for uSD and mmcblk1 for eMMC.
0 commit comments