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

Allow to specify for partition oriented backup which partitions should be restored #749

Open
framps opened this issue Apr 21, 2024 · 0 comments

Comments

@framps
Copy link
Owner

framps commented Apr 21, 2024

As of now all partitions are restored. Similar to option -T (DEFAULT_PARTITIONS_TO_BACKUP) which is used to define the number of partitions which should be saved the same option should define the partitions to restore when a restore is executed.

Default will be to restore the first two partitions only (Option DEFAULT_PARTITIONS_TO_RESTORE="1 2") which is identical to DEFAULT_PARTITIONS_TO_BACKUP. All partitions will be restored with parameter *

Example: sudo raspiBackup -d /dev/sda -T "1 2 3" will restore the first two partitions and the third partition and will keep all other partitions untouched.

Note: If not all partitions are restored the partitions have to exist already on the restore device and no partitioning is done. The partitions are allocated if either parameter * is used or the partitions to restore match the partitions included in the backup.

If existing partitions are reused the partitions are formatted first to clean the partition.

@framps framps added the feature label Apr 21, 2024
@framps framps self-assigned this May 2, 2024
framps added a commit that referenced this issue May 4, 2024
@framps framps removed their assignment May 14, 2024
@framps framps self-assigned this May 22, 2024
@framps framps removed their assignment May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant