Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i would like to do a full os drive backup image, and was wanting recommendations on making sure i did it right so if for some reason i should need it i won't have problems. first image is my os drive just the two partitions. the second image is of the drive that i want to free up enough space on to create a 150 partition on for the image. i just redid and tested all my usb media, so i should have all the tools i will need. mint 19.1 live, makulu live, gandalf's win 10 pe, and parted magic.
Just a wee note that you should always aim to have at least two copies of any data, preferably on different devices in different locations.
So, if you're going to clone a drive before deleting something off that drive, you would be best making a second copy too so that after the deletion you still have 2 copies of the data left.
Just a wee note that you should always aim to have at least two copies of any data, preferably on different devices in different locations.
So, if you're going to clone a drive before deleting something off that drive, you would be best making a second copy too so that after the deletion you still have 2 copies of the data left.
I hope that makes sense.
yea currently i have my files on 8 different partitions not counting vm's and the two partitions on the os drive. i have a large additional drive with folders named after each of those partitions, and once a week i backup all 8 of those to the master backup. like you i don't like to take chances. i could creat another 150 gig partition on that drive and keep a second os drive image there.
with that said i'd just as well boot into the live environment and use disk to create the images. unless i'm missing something i don't see why i can't do it that way.
You can do it that way - surely the simplest.
Like everything, caveats apply - it appears to indeed image the entire disk, including all that unused space. So you'd be copying the entire 110G for 51G (currently) of useful data. But with a modicum of work you should be able to mount the partitions contained in that image to recover individual files - you would not necessarily have to restore the lot for a single file recovery. clonezilla has smarts that only backs up the used data and compresses it IIRC - so it's faster and smaller, but you can't directly recover individual files without a full restore first.
Both of those solutions require you to copy all the data every time - no ability to only process the changed data (differential backup). Apparently not a concern in this case. FWIW I use fsarchiver in situations like this - it also produces a compressed image of the used portions of a filesystem, but CRC checks each file. Also requires a full restore to get at the files, but I only use it in exceptional cases.
Lots of other choices as well, but none are simpler than disks if that is your primary aim.
yea i just want to run a full image while i sleep via the live environment, get up copy that to the master backup, same routine a week later replacing the old images. this is more for if something goes wrong with a program install or update and i can't log back,or simply won't boot.
I've been backing up everything for at least 15 years. In my experience, it is extremely rare to have to restore Linux OS images. Windows I restore the original tweaked installation a couple times a year, apply all updates and clean off all backups from those updates out of the WinSxS with DISM, delete all downloaded updates in C:\Windows\SoftwareDistribution\Downloads, then create a new image. Only after the latest image is created do I install software I typically use on an as needed basis from the Data drive.
My Windows without personal software installed uses around 50GB. I do as recommended in earlier posts, I do compressed images of used space only with BootitBM, the image size for Windows is around 20GB, which is a tenth of the partition size of 200GB, Debian Testing with all software is 3.34GB. I have never had a need to try and and retrieve anything from OS images as personal data is in the data drive only, never in OS partitions.
I much prefer this approach as it's much faster to create the images, much faster to restore the images, much faster to back them up (original written into the data drive, backed up on removable drive). And helps extend the life of the drives, If you intend on writing a 111GB file to two drives once a week, you will shorten their life spans. Drives won't get as hot writing a 20GB file versus a 200GB file (in my case). And when you are writing a file close to the size of the partition, you are writing over the same spot every time, when you write to a partition with lots of free space, you are typically writing to the oldest free space which is more efficient and again, extends the life of the drive.
If you have Mint 19, you'd be better off looking at Timeshift.
simply no. i can't trust a program that's not setup to recognize the default partitioning. long story short. i wiped the os drive after i was comfortable enough in mint to finally drop win 10 altogether. i let the install chose how to partition. it created a boot partition, and a partition for everything else. first thing right out of the gate upon landing on the desktop was to use timeshift, got told that it did not like my ext4 partition and i needed the newer partition type to use timeshift. can't and won't trust a program that will not except the standard os file system.
"BootitBM" is a thought but i would really rather do it from the live environment than create another book disk.
simply no. i can't trust a program that's not setup to recognize the default partitioning. long story short. i wiped the os drive after i was comfortable enough in mint to finally drop win 10 altogether. i let the install chose how to partition. it created a boot partition, and a partition for everything else. first thing right out of the gate upon landing on the desktop was to use timeshift, got told that it did not like my ext4 partition and i needed the newer partition type to use timeshift. can't and won't trust a program that will not except the standard os file system.
That's an interesting one. I use TimeShift successfully on ext4 partitions (older-style MBR rather than GPT too, if that was the issue).
Couldnt you could do this using a script, cp command and tools like mksquashfs etc?
I had to move my whole slackware install from sda6 to larger sda5 the other day and after looking at all options- dd, clonezilla, etc I decided on just using
Code:
cp -avf /* /mnt/sda5
using mksquashfs, xz or whatever?
Make the script automatic, etc?
then compress whatever
OK so heres simple script I made for my system on sda5 20gb to backup my install of slack 14.2 which is about 7gb
I have my storage/vista partition mounted and will back up everything except dev, mnt, media, proc, sys you know.
my script
Code:
#!/bin/sh
cd /
mksquashfs bin boot etc home lib lib64 opt root tmp usr var /run/media/bz/OS/SlackBackUp/slack-02162019.squashfs -no-duplicates
Probably could add more options just issue "mksquashfs" and itll print out info
And resulting squashfs file is 1.8gb
You can mount it and look in it with
Code:
mkdir /mnt/sqfs
mount -o loop slack-02162019.squashfs /mnt/sqfs
ls /mnt/sqfs
boot etc home lib lib64 opt root tmp usr var
With yours on differing partitions I suppose youd just mount them all and direct mksquashfs to compress them either all together or single for each idk?
Just a thought hope it helps
think you mis read my op. all a want to do is backup the entire os drive. another user suggested making two backups of it and i agreed. i think after doing some more extensive reading on various sites i am going to go wioth the mint live environment and disk, no compression for either backup, and just replace them every 3 to 6 months. most things that would keep one from being able to boot or login can be fixed via the live media, so the os clones would only be a last resort instead of needing to rebuild from scratch.
pk no neon now and for my needs loving it far better than mint because of plasma and not having to have 2 desktops installed to get plasma. however one problem after i made the back of the os drive, and that was i found out several days later i was actually booting into it and not the original. i guess i need a way to make it nonbootable til i actually need it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.