Results 1 to 3 of 3

Thread: Synchronize data help - one way sync

  1. #1
    Join Date
    Sep 2008
    Beans
    57
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Synchronize data help - one way sync

    Hi,
    I've been googling my issue but I can not find the easiest/safest way to do this.

    I have a folder(say /media/A/folderA) which contains very important information that I need to backup to another folder(say /media/B/folderB).

    I need to do an ONE-WAY sync, for example:
    If I delete something from folderA, it will also be deleted on folderB.
    If something though gets deleted from folderB, I want it to be re-copied from folderA instead of being also deleted in folderA.

    I am looking for an effective rsync command, which has lots of options and I am not sure which ones to use without messing up. Alternatives are also welcome.

    Thanks!

  2. #2
    Join Date
    Dec 2009
    Beans
    27
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Synchronize data help - one way sync

    Rsync is pretty versatile. You need to go through the manpage for it...these were buried in there:
    Quote Originally Posted by man rsync
    --existing skip creating new files on receiver
    --ignore-existing skip updating files that exist on receiver
    --remove-source-files sender removes synchronized files (non-dir)
    --del an alias for --delete-during
    --delete delete extraneous files from dest dirs
    --delete-before receiver deletes before transfer (default)
    --delete-during receiver deletes during xfer, not before
    --delete-delay find deletions during, delete after
    --delete-after receiver deletes after transfer, not before
    --delete-excluded also delete excluded files from dest dirs
    Why not make a couple of test directories, and try out some command combos? A decent GUI frontend for it is Grsync, which is in the repos, although it doesn't explain every single commandline-equivalent option. Unison is another file sync tool in the repos. Never tried it myself, but perhaps this would do the trick for you.

  3. #3
    Join Date
    Sep 2008
    Beans
    57
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Synchronize data help - one way sync

    Thanks, I'll try a couple of those and see if it works the way I need it to.

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
  •