Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Should I use a CoW filesystem on my PC if I only wanted snapshot capabilities ? Post 303045040 by sreyan32 on Wednesday 11th of March 2020 05:30:17 AM
Old 03-11-2020
Quote:
Originally Posted by stomp
Encryption makes the backup task more difficult.
Unfortunately I need it, I can't avoid it.

Quote:
Originally Posted by stomp
Since you're a beginner, a CloneZilla can be a fallback solution until you're famillar enough with your linux os. With CloneZilla you can save and restore the os partition without knowing very much about linux.
Okay Clonezilla is not an option for me. Simply because I don't have that much of space to spare. It seems I am not getting the answer that I want because I am not asking the right questions.

So let me apologize for that, and let me ask if the following workflow is possible on Linux.
  1. I have a single 1 TB SATA hard disk.
  2. I will be using an encrypted LVM with ext4 formatting.
  3. Now lets say before an update or a dist-upgrade I take a snapshot of the root partition and store that snapshot in the root partition itself.
  4. The upgrade or update fails or is causing problems, and the system is no longer bootable to my desktop.
  5. I boot into a live CD.
  6. Mount my encrypted partitions, and /proc, /sys and /dev from the live CD.
  7. Chroot into my system.
  8. Find the saved snapshot.
  9. Revert it.
  10. Exit from Live CD environment and boot back to the reverted system.

Main Challenges:
  1. Will the backup process work ?
  2. Will the Live CD of my OS contain CLI tools to decrypt encrypted partitions ?

As you can see, I cannot forego full-disk encryption nor do I have that much space or time for a full cold boot snapshot of a partition.

So is the above workflow possible ?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix Capabilities?

We are looking into buying a new software, billing software that is, and want to know if you can run that on the same UNIX server as another major software? Is there a limit to the different types of software Unix can run, or is it like windows where you can install as many as you like? ... (2 Replies)
Discussion started by: hoz
2 Replies

2. UNIX for Advanced & Expert Users

p570 Capabilities

Hi there. I've been tasked with making a new design for our Unix systems :eek: Now the question I have is; How many LPARs can a p570 hold WITHOUT using a VIO Server. Many Thanks Kees (1 Reply)
Discussion started by: KeesH
1 Replies

3. Red Hat

Adding capabilities to an RPM

Hi. I downloaded a package that could only be installed on RHEL5, and not 4 or 3, so I got the source in order to compile it on RHEL 3 so hopefully it will work on all versions. So I have the source for a working package, but when I build it in RHEL 3 and then try to install it in RHEL 5, it... (6 Replies)
Discussion started by: Boaz
6 Replies

4. Filesystems, Disks and Memory

Wanted: Geographically distributed filesystem solution

I'm looking for a means to ensure that servers in the two or three datacenters, connected in a ring via IP through two ISPs, can distribute load and/or replicate data among at least two SAN-class disk devices. I want to evaluate several solutions, and I'm open to solutions ranging from free,... (6 Replies)
Discussion started by: otheus
6 Replies

5. Solaris

Cannot use filesystem while sending a snapshot

I've got a Solaris 11 Express installed on my machine. I have created a raidz2 zpool named shares and a simple one-disc zpool named backup. I have made a script that would send a daily snapshot of shares to backup. I use these commands zfs snapshot shares@DDMMRRRRHHMM zfs send -i shares@....... (10 Replies)
Discussion started by: RychnD
10 Replies

6. UNIX for Advanced & Expert Users

Use of Capabilities

I wonder if anyone could assist with some problems I'm having with Linux Capabilities and their use when using the commands "nice" and "schedtool". I run a couple of PCs, one is an elderly AMD Sempron 2800+ (32-bit, 2GHz clock and 3GB memory) that is used as a family multimedia system running... (3 Replies)
Discussion started by: MikeGM
3 Replies

7. Linux

Broadcom under Fedora 18 (Spherical Cow)

So I'm having a problem getting a Broadcom BCM4312 wireless controller to work under the broadcom-wl module $uname Linux 3.8.11-200.fc18.x86_64 #1 SMP Wed May 1 19:44:27 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux lspci -v 05:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g... (2 Replies)
Discussion started by: Skrynesaver
2 Replies

8. UNIX for Advanced & Expert Users

Linux capabilities discussion

Hi I'm trying to compile my linux kernel with CONFIG_SECURITY_CAPABILITIES=y. any idea what this thing does ?? Also another question , If I compile the kernel that I'm currently using , what'll happen ? ~cheers (3 Replies)
Discussion started by: leghorn
3 Replies

9. What is on Your Mind?

Anybody want to talk about Dirty Cow?

Hi All, How worried is everyone about the Dirty Cow Linux exploit? Has anybody experienced attacks yet? From the research I've done it seems that the exploit is "reliable" (that is it works nearly every time on vulverable systems) which is not good news. We all believe that Unix/Linux... (3 Replies)
Discussion started by: hicksd8
3 Replies
btextract(8)						      System Manager's Manual						      btextract(8)

NAME
btextract - Extracts the file systems from tape in single-user mode in memory SYNOPSIS
/usr/sys/bin/btextract DESCRIPTION
The btextract utility is a shell script that restores file systems from tapes that contain the bootable Standalone System (SAS) kernel. The SAS kernel is created using the btcreate utility. You can perform a DEFAULT restore or an ADVANCED restore operation. A DEFAULT restore is used by system administrators who want to duplicate the customized system on more than one machine of the same hard- ware platform type. When you perform a DEFAULT restore, you cannot specify which disk partitions to use for the restore operation. Instead, the btextract utility restores file systems using the disk partition information gathered during the btcreate session; all exist- ing information is overwritten. Note To perform a DEFAULT restore, the disk configuration of the system you backed up must be the same as the system you are restoring. During an ADVANCED restore, you are prompted to enter the name of the disk partition where the file systems are to be restored. Note During an ADVANCED restore, the btextract utility assigns the b partition of the root disk as the swap partition. A file system which is more than 100% full cannot be restored in a partition of the same size as the original partition. During the restore of the UFS file system, the /sbin/restore command adds a new file named restoresymtable. The presence of this restoresymtable file can make the restored file system larger than the source partition size listed in the /sbin/disklabel output. For example, on the source system, the disklabel shows the target h partition to be: h: 86758 1212416 4.2BSD And the ufs file system is as follows: Filesystem 512-blocks Used Available Capacity Mounted on /dev/dsk8h 83812 83786 0 112% /bootable The file system is 112% full. This file system cannot be restored on the target file system of 86758 (512-blocks), as the following file is created by the /sbin/restore command. -rw-r--r-- 1 root system 27368 Jul 2 09:33 restoresymtable The command /sbin/restore creates a restoresymtable file that exceeds the 112% range. The solution is to use a partition of about 86996 (512-blocks), about 3.8% larger than the actual file size. USING btextract To use the btextract utility, place the system in a halt state, initialize the system, then boot from the tape as follows: >>> init >>> show dev >>> boot -fl "nc" MKA500 In the previous example, the show dev command provides the device name under BOOTDEV and MKA500 is the BOOTDEV. Once the initial boot is complete, the shell invokes the btextract utility. If you created a /usr/lib/sabt/sbin/custom_install.sh script during the btcreate session, the btextract utility invokes the custom_install.sh script before exiting. See the btcreate reference page for more information. You also have the option to label disks using your own disklabel script. If a customized disklabel script is not present, the btextract command will label the disks in the usual manner. A customized disklabel script has the following restrictions: It must be located in the /usr/lib/sabt/etc directory. It must be named custom_disklabel_file. After the btextract utility completes, you must shut down the system, then reboot the system from the restored disk as follows: # shutdown -h now >>> boot DKA100 In the previous example, DKA100 is the BOOTDEV. RETURN VALUES
Success. An error occurred. FILES
Log of the btextract process in memory Copy of the btextract process on the restored root file system Script used to customize the restored image A custom disklabel file read by btextract SEE ALSO
Commands: addvol(8), btcreate(8), df(1), disklabel(8), lmf(8), mkfdmn(8), mkfset(8), newfs(8), restore(8), sh(1), vrestore(8) btextract(8)
All times are GMT -4. The time now is 07:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy