Tag: backup

  • Using rsync to sync files rsync avh source…

    chat para conocer gente en bogota Using rsync to sync files.

    rsync -avh source_folder/ target_folder/

    • -a: archive mode
    • -v: verbose
    • -h: human readable

    Additional options

    • -u: update only (preserve newer files)
    • -H: preserve the hard link
    • –progress: shows progress
    • -n: dry run (without actual copying)

    By the way, “/home/user/dir/” and “/home/usr/dir” are not the same thing to rsync. Without the final slash, rsync will copy the directory in its entirety. With the trailing slash, it will copy the contents of the directory but won’t recreate the directory.

    For more explanations, check this nice post.

    http://www.linux.com/news/enterprise/storage/8200-back-up-like-an-expert-with-rsync

  • Difference between hg clone and hg pull (Backing up Mercurial Repository)

    hg clone will make a new repository (.hg).
    hg pull will pull changeset from the depository to the current *existing* repository.

    So hg clone can be used at first if you want to backup your repository and afterthat, use hg pull to update the backup.