I'm looking to make an external backup HDD that can be used to backup multiple machines.
I'd like both Clonezilla and the images to be on the same HDD, it looks like this can be done by booting to RAM then mounting it.
I want it to image everything except the clonezilla drive automatically but from what I understand, depending on how many HDDs are on the PC the mountpoint (I.E. SDx) can change meaning mounting it as a specific SDx could mean it trying to mount the wrong drive on some systems.
The command:
lsblk -o mountpoint,label
Returns the drives label and mountpoint, is there a way I can use this result in a shell script, label the backup drive "backupdrive" and write some code to say something like:
Where label = a,'backupdrive'
mount a /home/partimag
TLDR:
Only input is selecting take backup or restore backup
Boot to ram then use same drive as image repository
Find the image drive based on its label
I would appreciate any advice on this,
Sam
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please give Clonezilla live 2.5.3-1 a try: http://clonezilla.org/downloads.php
You can use the boot parameter ocs_repository to do that, like:
ocs_repository="dev:///LABEL='clonezilla img repo'"
Please make sure there is only one such label existing on your machine. Otherwise it might go wrong.
For more details, please check the changelog for 2.5.3-1: http://clonezilla.org/downloads/testing/changelog.php
Steven
Last edit: Steven Shiau 2017-09-19
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Great work! This works just as I want to, I can now use this function in combination with savedisk autoname all and restoredisk ask_user ask_user meaning the backup is taken by simply restarting on any system with the singular USB plugged in!
Many thanks,
Sam
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
I'm looking to make an external backup HDD that can be used to backup multiple machines.
I'd like both Clonezilla and the images to be on the same HDD, it looks like this can be done by booting to RAM then mounting it.
I want it to image everything except the clonezilla drive automatically but from what I understand, depending on how many HDDs are on the PC the mountpoint (I.E. SDx) can change meaning mounting it as a specific SDx could mean it trying to mount the wrong drive on some systems.
The command:
lsblk -o mountpoint,label
Returns the drives label and mountpoint, is there a way I can use this result in a shell script, label the backup drive "backupdrive" and write some code to say something like:
Where label = a,'backupdrive'
mount a /home/partimag
TLDR:
Only input is selecting take backup or restore backup
Boot to ram then use same drive as image repository
Find the image drive based on its label
I would appreciate any advice on this,
Sam
Thanks for this idea. Will try to have this feature in the future release. We will keep you posted when it's ready for you to test. Thanks.
Steven
Please give Clonezilla live 2.5.3-1 a try:
http://clonezilla.org/downloads.php
You can use the boot parameter ocs_repository to do that, like:
ocs_repository="dev:///LABEL='clonezilla img repo'"
Please make sure there is only one such label existing on your machine. Otherwise it might go wrong.
For more details, please check the changelog for 2.5.3-1:
http://clonezilla.org/downloads/testing/changelog.php
Steven
Last edit: Steven Shiau 2017-09-19
Hi Steven,
Great work! This works just as I want to, I can now use this function in combination with savedisk autoname all and restoredisk ask_user ask_user meaning the backup is taken by simply restarting on any system with the singular USB plugged in!
Many thanks,
Sam
Cool! Thanks for your feedback.
Steven