• Re: disk image

    From David Christensen@21:1/5 to William Torrez Corea on Sun Dec 1 19:40:01 2024
    On 12/1/24 10:19, William Torrez Corea wrote:
    I make a disk image but this makes a backup of free space and full space of the disk.

    I am using dd (Unix) and using gnome-disk-utility.

    How can I make a disk image of selected data?

    I don't want to make a backup of the entire disk.


    I use dd(1) for backup images:

    1. If you want to backup only one partition, specify the device node
    for that partition:

    # dd if=/dev/sda1 ...

    2. If you want specific blocks, such as the MBR, primary GPT header,
    secondary GPT header, etc., specific the starting block and the number
    of blocks to backup:

    # dd bs=512 skip=0 count=34 ...


    Related:

    3. Run zerofree(8), fstrim(8), or another utility to zero ununused
    blocks prior to taking the image. This implies #4.

    4. Enable compression of the backup stream. For command line usage:

    # dd ... | gzip ...


    David

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Thomas Schmitt@21:1/5 to William Torrez Corea on Sun Dec 1 20:00:01 2024
    Hi,

    William Torrez Corea wrote:
    I make a disk image but this makes a backup of free space and full space of the disk.
    I am using dd (Unix) and using gnome-disk-utility.
    How can I make a disk image of selected data?
    I don't want to make a backup of the entire disk.

    This is a wide topic. :))

    There are lots of backup tools and strategies.
    Some are mentioned in
    https://wiki.debian.org/BackupAndRecovery
    https://www.debian.org/doc/manuals/debian-reference/ch10.en.html#_backup_and_recovery

    I myself make backups on optical media by scdbackup and xorriso.
    Other backups of mine go to remote computers by rsync.


    Have a nice day :)

    Thomas

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)