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 and allow to not format the partitions with option -00 #749

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

Comments

@framps
Copy link
Owner

framps commented Apr 21, 2024

As of now the restore device is partitioned and all partitions are formatted and 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 *

Note: Default is to partition the restore device and format all partitions. If option -0 is used there is no partitioning done but the partitions which are restored are formatted. If the new option -00 is used the restored partitions are not formatted. If backup type rsync is used this will speed up the restore process because only updates and deletions on the restorepartition are updated.

Examples:

Target is a system with 5 partitions:

sudo raspiBackup -d /dev/sda will partition, format and restore the first two partitions only which is the default

sudo raspiBackup -d /dev/sda -T "1 2 3" will partition, format and restore the first two partitions and the third partition`

sudo raspiBackup -d /dev/sda -T "*" will partition, format and restore all 5 partitions`

sudo raspiBackup -d /dev/sda -T "1 2 3" -0 will format and restore the first two partitions and the third partition. All other partitions are not touched`

sudo raspiBackup -d /dev/sda -T "1 2 3" -00 will restore the first two partitions and the third partition. All other partitions are not touched. Option -00 is available only for backuptype rsync. The files are synchronized and the restore will be much faster because only deleted and updated files are restored

sudo raspiBackup -d /dev/sda -T "*" -00 will restore all 5 partitions. Option -00 is available only for backuptype rsync. The files are synchronized and the restore will be much faster because only deleted and updated files are restored

@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
@framps framps added this to the 0.6.10 milestone Aug 3, 2024
@framps framps modified the milestones: 0.7.0, 0.6.10 Oct 2, 2024
@framps framps closed this as completed Oct 5, 2024
@framps framps modified the milestones: 0.6.10, 0.7.0 Nov 10, 2024
@framps framps changed the title Allow to specify for partition oriented backup which partitions should be restored Allow to specify for partition oriented backup which partitions should be restored and don't format the partitions Dec 3, 2024
@framps framps changed the title Allow to specify for partition oriented backup which partitions should be restored and don't format the partitions Allow to specify for partition oriented backup which partitions should be restored and allow to not format the partitions with option -00 Dec 3, 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