Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

clonezilla - restoring

Linux Kernel, Network, and Services configuration.
Message
Author
milomak
Posts: 2168
Joined: 2009-06-09 22:20
Been thanked: 2 times

clonezilla - restoring

#1 Post by milomak »

i apologise if i have chosen the wrong forum

i have a clonezilla iso. will burn to usb. boot it.

what should i note to actually be able to make a working restore point?
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

Re: clonezilla - restoring

#2 Post by RU55EL »

Clonezilla is good software, but this is the Debian forums. You should look at the Clonezilla website.

https://clonezilla.org/clonezilla-usage ... -usage.php

User avatar
sunrat
Administrator
Administrator
Posts: 6495
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 476 times

Re: clonezilla - restoring

#3 Post by sunrat »

milomak wrote:what should i note to actually be able to make a working restore point?
It doesn't make restore points, it makes clone images of disks or partitions. There are numerous guides on the interwebz and the one RU55EL posted is good.
Personally I've been using fsarchiver instead lately. Easier to use, faster, but has more limitations such as minimal (or no?) ntfs support.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

LE_746F6D617A7A69
Posts: 932
Joined: 2020-05-03 14:16
Has thanked: 7 times
Been thanked: 68 times

Re: clonezilla - restoring

#4 Post by LE_746F6D617A7A69 »

For Me, dd + gzip does the job - maximum flexibility, it's even possible to backup a running system.
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: clonezilla - restoring

#5 Post by Head_on_a_Stick »

LE_746F6D617A7A69 wrote:dd + gzip does the job - maximum flexibility
Nah, rsync is better because you can use it to change filesystems and partitions: https://wiki.archlinux.org/index.php/Rs ... tem_backup ← that can also be used on a running system.
deadbang

LE_746F6D617A7A69
Posts: 932
Joined: 2020-05-03 14:16
Has thanked: 7 times
Been thanked: 68 times

Re: clonezilla - restoring

#6 Post by LE_746F6D617A7A69 »

Head_on_a_Stick wrote:
LE_746F6D617A7A69 wrote:dd + gzip does the job - maximum flexibility
Nah, rsync is better because you can use it to change filesystems and partitions: https://wiki.archlinux.org/index.php/Rs ... tem_backup ← that can also be used on a running system.
... excluding compression ;)
rsync --compress just compresses the data during transfer ....
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed

Bulkley
Posts: 6387
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: clonezilla - restoring

#7 Post by Bulkley »

I use Clonezilla for monthly backups or when I plan on doing something risky. I have some spare drives (taken from old machines) and do local disk to local disk clones and I test them to make sure they work. There have been occasions when I have had to reverse the process and re-clone my daily driver. This is not my only backup but it is the most thorough. Most users would find this too cumbersome but I like it.

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 739
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 136 times
Been thanked: 65 times

Re: clonezilla - restoring

#8 Post by cds60601 »

Head_on_a_Stick wrote:
LE_746F6D617A7A69 wrote:dd + gzip does the job - maximum flexibility
Nah, rsync is better because you can use it to change filesystems and partitions: https://wiki.archlinux.org/index.php/Rs ... tem_backup ← that can also be used on a running system.
I like this idea! But, can this create an archive file such as a tarball opposed to an identical system on another drive?
Supercalifragilisticexpialidocious

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: clonezilla - restoring

#9 Post by p.H »

LE_746F6D617A7A69 wrote:For Me, dd + gzip does the job - maximum flexibility, it's even possible to backup a running system.
Using dd to make an image of a disk or partition in use may result in an inconsistent image.
How do you avoid it ? Or do you use dd another way ?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: clonezilla - restoring

#10 Post by Head_on_a_Stick »

cds60601 wrote:can this create an archive file such as a tarball opposed to an identical system on another drive?
Well you could tar up the system after using rsync but you would have to untar it before updating the backup, which is a faff. Why do you want an archive file?
deadbang

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: clonezilla - restoring

#11 Post by p.H »

Because it can be compressed, I guess.

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 739
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 136 times
Been thanked: 65 times

Re: clonezilla - restoring

#12 Post by cds60601 »

Head_on_a_Stick wrote:
cds60601 wrote:can this create an archive file such as a tarball opposed to an identical system on another drive?
Well you could tar up the system after using rsync but you would have to untar it before updating the backup, which is a faff. Why do you want an archive file?
To be honest, to gain the same outcome as one might have after imaging the system with clonezilla as I do now. I simply have a directory on a drive that for now, holds my cloned images.
The way I understand for rsync, I would be required to have a dedicated drive just for a backup only. I suppose in my scenario, rsync wouldn't be a viable solution. I guess the idea of a backup f the system while being live captured me and started the whole, what if question.

Thus ti difference between a cloned images and a backup I guess..
Supercalifragilisticexpialidocious

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: clonezilla - restoring

#13 Post by Head_on_a_Stick »

cds60601 wrote:The way I understand for rsync, I would be required to have a dedicated drive just for a backup only.
Not at all, you can rsync to a directory, in fact that's the only way to use it. If you want to rsync the backup to a different drive then you have to mount the drive under a directory and point rsync to that.

Another big advantage of rsync is that it only copies the differences between old and new so if you back up every week then rsync will be *much* quicker than CloneZilla, dd, tar or whatever (unless CloneZilla also offers incremental backups, I've never used it so I don't know how it works).
deadbang

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 739
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 136 times
Been thanked: 65 times

Re: clonezilla - restoring

#14 Post by cds60601 »

Head_on_a_Stick wrote:
cds60601 wrote:The way I understand for rsync, I would be required to have a dedicated drive just for a backup only.
Not at all, you can rsync to a directory, in fact that's the only way to use it. If you want to rsync the backup to a different drive then you have to mount the drive under a directory and point rsync to that.

Another big advantage of rsync is that it only copies the differences between old and new so if you back up every week then rsync will be *much* quicker than CloneZilla, dd, tar or whatever (unless CloneZilla also offers incremental backups, I've never used it so I don't know how it works).
HA! You are absolutely right! For S&G, I created a directory on my external drive, ran the command that is referenced in the wiki you posted. Didn't take long at all, faster than clonezilla for certain.
This could be my new replacement for how I'm dong nightly backups as it does the complete system opposed to what I'm doing now. Many times I when to a nightly tarball only to find that I intentionally did not include directories I should have for those once in a great while file changes that live outside of my normal locations.

This is perfect!
Supercalifragilisticexpialidocious

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: clonezilla - restoring

#15 Post by Head_on_a_Stick »

cds60601 wrote:Didn't take long at all, faster than clonezilla for certain.
The first run of rsync will take a while because it has to copy the entire system but subsequent runs are much quicker because only the differences between old & new are copied.
deadbang

mm3100
Posts: 337
Joined: 2020-10-21 21:39
Has thanked: 8 times
Been thanked: 14 times

Re: clonezilla - restoring

#16 Post by mm3100 »

It is possible to easily create snapshots with rsync. There is some good material for ideas about it here
http://www.mikerubel.org/computers/rsync_snapshots/

LE_746F6D617A7A69
Posts: 932
Joined: 2020-05-03 14:16
Has thanked: 7 times
Been thanked: 68 times

Re: clonezilla - restoring

#17 Post by LE_746F6D617A7A69 »

p.H wrote:
LE_746F6D617A7A69 wrote:For Me, dd + gzip does the job - maximum flexibility, it's even possible to backup a running system.
Using dd to make an image of a disk or partition in use may result in an inconsistent image.
How do you avoid it ? Or do you use dd another way ?
I've mislooked Your post, anyway: what do You mean by "(...) may result in an inconsistent image"?
Do You mean that taking a snapshot of a running system requires to f.e. remount the root File System as read-only? Or to stop all the services / programs?
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed

pcalvert
Posts: 1939
Joined: 2006-04-21 11:19
Location: Sol Sector
Has thanked: 1 time
Been thanked: 2 times

Re: clonezilla - restoring

#18 Post by pcalvert »

mm3100 wrote:It is possible to easily create snapshots with rsync. There is some good material for ideas about it here
http://www.mikerubel.org/computers/rsync_snapshots/
There is no longer any need for that. The functionality he describes is provided by rsnapshot:

https://packages.debian.org/stable/rsnapshot

Phil
Freespoke is a new search engine that respects user privacy and does not engage in censorship.

pcalvert
Posts: 1939
Joined: 2006-04-21 11:19
Location: Sol Sector
Has thanked: 1 time
Been thanked: 2 times

Re: clonezilla - restoring

#19 Post by pcalvert »

Consider also the value of using Btrfs along with snapper. If I were using Debian Sid (or testing), I would definitely be using that combination.

Phil
Freespoke is a new search engine that respects user privacy and does not engage in censorship.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: clonezilla - restoring

#20 Post by p.H »

LE_746F6D617A7A69 wrote:what do You mean by "(...) may result in an inconsistent image"?
I'll take an example. While dd is running and has copied the first half of the device, the system writes new data in the first half (already copied by dd) and in the second half (not yet copied by dd). The resulting image will contain the old data in the first half and the new data in the second half, making it inconsistent. This is like screen tearing when the framebuffer reads and writes are not synchronized.
LE_746F6D617A7A69 wrote:Do You mean that taking a snapshot of a running system requires to f.e. remount the root File System as read-only? Or to stop all the services / programs?
Stopping all services is not enough to prevent any write, and obviously you cannot stop all programs as some programs are needed to take the image. E.g. the bash shell writes each command in the history log. Remounting all filesystems (not only /) on the source device read-only prevent many services and programs from running properly, so I can hardly call this a "running system".

Post Reply