Results 1 to 2 of 2

Thread: Clone partition using rsync

  1. #1
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    5,169
    Distro
    Kubuntu

    Clone partition using rsync

    On my laptop i intend to make a small partition on my hdd to backup my ssd to in case something happens during firmware updates
    so i want rsync to copy links as links and not follow them
    don't follow file system mounts (eg /home and /media)
    preserve file permissions and ownership
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Clone partition using rsync

    I include this as part of my rsync script so I know what I am doing.

    Code:
    #!/bin/bash
    # backup script - mybackup.sh
    # a - archive, retain file settings equals -rlptgoD (no -H,-A,-X)
    # r - recursive / subdirectories
    # u - update, only newer
    # v - verbose
    # P - keep partial files and report progress
    # -l, --links copy symlinks as symlinks
    # -i, --itemize-changes
    # -t, --times preserve modification times
    # --exclude option to prevent copying things
    I started simple like this one:
    Originally Posted by MountainX View Post #20 also other backup apps
    http://ubuntuforums.org/showthread.p...ghlight=backup

    Then I added an extract of installed files with dpkg, and a new run of bootinfoscript and some other system documentation files just to have them. The I found most of my copy was a lot of temporary files or cache and added an excludes file.

    Some files to exclude from /home backup - post by Paddy Landau
    http://ubuntuforums.org/showthread.php?t=1883834

    I do not do this as I manually copy any file I manually edit into another folder in /home for backup.

    More detail on /etc files to backup - post #3:
    http://ubuntuforums.org/showthread.php?t=1500559


    Some more examples:
    http://rsync.samba.org/examples.html

    Backup to external with check of mounted & email
    http://ubuntuforums.org/showthread.php?t=1701292
    rsync confirmation list:
    http://ubuntuforums.org/showthread.php?t=1692800
    Check for mount of backup partition
    http://ubuntuforums.org/showthread.php?t=1701292
    #http://ubuntuforums.org/showthread.php?t=1555647&page=4
    more scripts:
    http://ubuntuforums.org/showthread.php?t=1319155
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •