Results 1 to 5 of 5

Thread: What is best backup tool for my situation?

  1. #1
    Join Date
    Jul 2006
    Beans
    261

    What is best backup tool for my situation?

    Hello, I have done some searching on back up solutions and I found plenty of tools. However I do not know which is the best one for my particular situation. I have a machine with three drives. Two of these drives are software raided. I would like to use the other drive to store files from the raided drives as a backup just in case something happens to these two. I have Ubuntu Server 12.3 installed.

    In other words all I would like is a tool that will automatically move files from one drive to another only if there are changes to these drives. The tool I am looking for ideally would allow me to add new directories to be backed up.

  2. #2
    Join Date
    Apr 2007
    Beans
    3,114
    Distro
    Ubuntu

    Re: What is best backup tool for my situation?

    rsync automatically run at regular intervals using a cron job?

  3. #3
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    incron?

    Yes, rsync would do that. If you are just watching a few directories, then incron can be used instead of cron. It works about the same but initiates scripts when files or directories are modified or otherwise manipulated. However, it won't work recursively to monitor a hierarchy all at once.

  4. #4
    Join Date
    Jul 2006
    Beans
    261

    Re: incron?

    Ok I will have another look at rsync. I did not look too much into it because I thought this was meant to back up with a remote repository which is not my case. All I would like is to backup on another drive keeping folder structure if possible (maybe compress too?)

  5. #5
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: What is best backup tool for my situation?

    rsync does that nicely, it can also do snapshots, but it cannot compress. For compression, you could use tar or dump but then you're looking at re-copying the contents of the entire hierarchy fresh each time the script is run. That is probably undesirable.

    Basic rsync is from source to destination. The first time will be slow. Then any subsequent runs will copy only the changes.

    Code:
    rsync -av /home/foo/ /mnt/backup/foo/
    If you want to remove files from the destination that no longer exist on the source, then use the --delete option in addition. See also --dry-run. Check the manual page for the full description of what those do and for a complete list of all features. There may be some others that you find useful.

    If you want incremental backups using rsync, there are quite a few tutorials so you have a choice in finding one that makes sense to you or is close to the results you want.

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
  •