Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial support for block device cloning
- Loading branch information
Showing
13 changed files
with
48 additions
and
15 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
usr/share/rear/backup/BLOCKCLONE/default/100_mount_NETFS_path.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../NETFS/default/100_mount_NETFS_path.sh |
1 change: 1 addition & 0 deletions
1
usr/share/rear/backup/BLOCKCLONE/default/150_save_copy_of_prefix_dir.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../NETFS/default/150_save_copy_of_prefix_dir.sh |
1 change: 1 addition & 0 deletions
1
usr/share/rear/backup/BLOCKCLONE/default/200_make_prefix_dir.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../NETFS/default/200_make_prefix_dir.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../NETFS/default/250_create_lock.sh |
27 changes: 27 additions & 0 deletions
27
usr/share/rear/backup/BLOCKCLONE/default/500_start_clone.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# This file is part of Relax-and-Recover, licensed under the GNU General | ||
# Public License. Refer to the included COPYING for full text of license. | ||
# | ||
# 500_start_clone.sh | ||
|
||
local backup_directory=$BUILD_DIR/outputfs/$NETFS_PREFIX | ||
|
||
# BLOCKCLONE progs could be handled here | ||
case "$(basename ${BLOCKCLONE_PROG})" in | ||
(ntfsclone) | ||
ntfsclone -q --save-image $BLOCKCLONE_COMMAND_OPTS \ | ||
-O $backuparchive $BLOCKCLONE_SOURCE_DEV | ||
;; | ||
(dd) | ||
# This does not work yet, only a placeholder | ||
dd $BLOCKCLONE_COMMAND_OPTS | ||
;; | ||
esac | ||
|
||
# Save MBR data if $BLOCKCLONE_SAVE_MBR_DEV is set (non-empty) | ||
# ${BACKUP_PROG_ARCHIVE}_mbr.img will be used for partitioning (quick an dirty) | ||
# Dualboot on single disk DOES NOT YET WORK !!! | ||
if [ $BLOCKCLONE_SAVE_MBR_DEV ]; then | ||
Log "Creating MBR image" | ||
dd if=$BLOCKCLONE_SAVE_MBR_DEV of=$backup_directory/${BACKUP_PROG_ARCHIVE}_mbr.img bs=512 count=1 | ||
StopIfError "Failed to save MBR image" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../NETFS/default/970_remove_lock.sh |
1 change: 1 addition & 0 deletions
1
usr/share/rear/backup/BLOCKCLONE/default/980_umount_NETFS_dir.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../NETFS/default/980_umount_NETFS_dir.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
usr/share/rear/prep/BLOCKCLONE/default/050_check_NETFS_requirements.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../NETFS/default/050_check_NETFS_requirements.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../NETFS/default/060_mount_NETFS_path.sh |
1 change: 1 addition & 0 deletions
1
usr/share/rear/prep/BLOCKCLONE/default/070_set_backup_archive.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../NETFS/default/070_set_backup_archive.sh |
1 change: 1 addition & 0 deletions
1
usr/share/rear/prep/BLOCKCLONE/default/100_check_nfs_version.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../NETFS/default/100_check_nfs_version.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../NETFS/default/980_umount_NETFS_dir.sh |