backup iso

zapeador

Member
Joined
Jan 15, 2022
Messages
44
Reaction score
13
Credits
401
Hello

Do you know any tool (command line) to create an .iso of your system like this and then be installable? with your users, configuration files... everything

In summary, to be able to make backups and in case of loss of data or configurations, install the latest version from an .iso file.
 


Brickwizard

Well-Known Member
Joined
Apr 28, 2021
Messages
2,863
Reaction score
1,855
Credits
21,369
You can use Timeshift via the terminal, I believe @captain-sensible knows a bit more about this method than I.
 

captain-sensible

Well-Known Member
Joined
Jun 14, 2019
Messages
2,913
Reaction score
1,970
Credits
18,126
thankyou @brickwizard i'm no expert on timeshift; one of the experts is Chris probably a few others on here ! To me there is a bit of a cross over between getting an OS back up and running when some of its system files get borked or an update somehow causes a problem , cloning of the OS and lastly mass storeage of files which are not system files.

I've done back ups in several ways depending on my mood , memory and last thing i was researching.

Probably one of the most important is a means of getting your OS back up and running if some update causes problems. For that I use Timeshift from the command line ,with a one off use of GUI wizard for where backups are going to be installed.

if i enter into a snapshot i used timeshift to create i can give you an idea of whats saved:
Code:
[[email protected]:2022-02-20_14-52-23/localhost]$ ls                                                                                                           (03-02 15:18)
[email protected]  boot/  dev/  etc/  home/  [email protected]  [email protected]  LICENSE  media/  mnt/  opt/  proc/  recordaScript  root/  run/  [email protected]  srv/  sys/  tmp/  usr/  var/
[[email protected]:2022-02-20_14-52-23/localhost]$

So i think put simply Timeshift might be considered similar to Microsofts "restore" or whatever it was called.


Now for specific backing up of say directories such as specific directories in Apache web server running local host located at /srv/http (im on Arch) I like to use the gui of rsync . I can do i quick dry run then back a whole web site in dev to an external hard drive. When i was on slackware and wanted to backup /etc/ files i just used "ls" and piped through tar i think it was. Thats was so i could refer back to from working files if i messed up on editing something like /etc/httpd/conf/ httpd.conf


I've also played with fsarchiver to save whole partitions and you can use ddrescue to save a whole partition as an .img file

you can also use dd command , i havent done it but :

Code:
so this should be possible to a usb (big enough) :

# dd if=/dev/sda of=/mnt/point/sdaimage.img
 
Last edited:

kc1di

Well-Known Member
Joined
May 14, 2021
Messages
1,146
Reaction score
958
Credits
8,203
This page tells you how to remaster the .iso to include what you want. If that is the route you choose to go.
 
OP
Z

zapeador

Member
Joined
Jan 15, 2022
Messages
44
Reaction score
13
Credits
401
Code:
# dd if=/dev/sda of=/mnt/point/sdaimage.img
Currently I use dd and pass a disk to an .img file (or tar.gz) what happens is that to restore it later I have to use a cdlive, mount the share and do another dd of the .img file to the sda partition... .and it works calro but it's a bit confusing,

my idea was to create an iso of the sda and then loading it from the file to be restored, I don't know if you have ever seen that
 

captain-sensible

Well-Known Member
Joined
Jun 14, 2019
Messages
2,913
Reaction score
1,970
Credits
18,126
to be honest @zapeador i get next to no problems; what is your setup that you seem to have to keep backing and restoring ?
 

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
6,756
Reaction score
5,896
Credits
54,422
An ancient ninja secret:

You can use Gnome Disks to make an .img of a drive/partition. The .img can be used just like a .iso, including burning it as an image. However, it doesn't have an installer, so you'd have to extract it to your drive. I seem to recall that it's possible to make an installer - but you can just use a Live USB to restore the .img file where ever you want.
 
OP
Z

zapeador

Member
Joined
Jan 15, 2022
Messages
44
Reaction score
13
Credits
401
An ancient ninja secret:

You can use Gnome Disks to make an .img of a drive/partition. The .img can be used just like a .iso, including burning it as an image. However, it doesn't have an installer, so you'd have to extract it to your drive. I seem to recall that it's possible to make an installer - but you can just use a Live USB to restore the .img file where ever you want.


yes, Currently I use dd and pass a disk to an .img file (or tar.gz) what happens is that to restore it later I have to use a cdlive, mount the share and do another dd of the .img file to the sda partition... .and it works calro but it's a bit confusing,

which I think is something similar to what you say
 
OP
Z

zapeador

Member
Joined
Jan 15, 2022
Messages
44
Reaction score
13
Credits
401
OP
Z

zapeador

Member
Joined
Jan 15, 2022
Messages
44
Reaction score
13
Credits
401
to be honest @zapeador i get next to no problems; what is your setup that you seem to have to keep backing and restoring ?

It is not a very complicated configuration, but they are machines that must stop for the shortest possible time, that is why I am looking for the fastest and easiest solution so that someone without much knowledge can do it too
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,900
Reaction score
3,527
Credits
35,667
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top