Results 1 to 4 of 4

Thread: Backup with rsync

  1. #1
    Join Date
    Oct 2012
    Beans
    1

    Backup with rsync

    Hi guys,
    I want to make backup of files/directories and then restore it removing all present changes and new files and directories.

    example: make /home backup and after time restore how it was before

    How can I do it with command line: rsync, cp or with stomething else

    Sorry for my english

  2. #2
    Join Date
    Feb 2012
    Location
    el_GR
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Backup with rsync

    Hi ,

    with rsync

    Code:
    rsync -aS <target directory> <destination directory>
    Parameters -a -S
    from man rsync
    Code:
     -a = archive mode ; equals to -r # means recursively
    -S = handle sparse files efficiently
    above command will effectively copy ALL your files from "target directory" (including hidden files-configuration files) to the "destination directory" .
    Command is reversible for restore , although some users including other parameters for restore such
    Code:
    --ignore-existing = skip updating files that exist on receiver
    Take a look in manual page
    Code:
    man rsync
    and make some tests (in a testing folder) .

    Thanks
    # How to mark the Thread as [SOLVED] when done.
    # Ubuntu Greek Community
    # Gain 20GB of space on copy.com when sign up with my referral link.

  3. #3
    Join Date
    Sep 2006
    Beans
    7,019
    Distro
    Lubuntu Development Release

    Re: Backup with rsync

    There are some examples here:

    https://help.ubuntu.com/community/rsync

  4. #4
    Join Date
    Aug 2009
    Beans
    51

    Re: Backup with rsync

    Quote Originally Posted by nhpropwn View Post
    I want to make backup of files/directories and then restore it removing all present changes and new files and directories.

    How can I do it with command line: rsync, cp or with something else
    Take a look at Back In Time which is a graphical front end for rsync and works extremely well. See, for example:

    http://linuxnorth.wordpress.com/2012...to-the-future/

Tags for this Thread

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
  •