hard disk to hard disk backup

Posted on 2006-04-14
Last Modified: 2010-04-20

i'm running linux server. i want to backup the server everyday to another hard drive on the same machine. so that it transfers only the changes to the back up hard disk. how can i achieve this to create a robust backup solution.

Question by:ajo_fod
    LVL 19

    Accepted Solution

    Do you want to backup the entire server? Or just the data you store on it?

    If it's just data you want to backup, you could knock together a simple shell script and call it daily at say 2am from the crontab.

    right_now=$(date +"%d-%m-%y")
    tar -cvf /mnt/backupdrive/Docs.Backup.$right_now.tar /home/data
    gzip /mnt/backupdrive/Docs.Backup.$right_now.tar

    That will give you a nice compressed archive with the date in the filename. Plenty of more complex solutions if you want them. You could also incorporate a mysqldump into that aswell if you run any databases.
    LVL 19

    Expert Comment

    Failure to RTFM. Only the CHANGES, so incremental backup.

    Sounds like a job for rsync!

    Author Comment

    thanks. i think the solution with tar might work for me.

    what is RTFM? how can i use rsync?

    LVL 7

    Expert Comment

    I think, this link might be very helpful for what you want to achieve:


    LVL 16

    Expert Comment


    Why not setup software RAID?
    LVL 7

    Expert Comment

    hmm, software RAID isn't really a substitute for a backup solution. Or do you think of implementing RAID1, detaching the mirror and reattaching it once a day for syncing, then detaching it again?
    LVL 22

    Expert Comment

    FYI, RTFM is Read the f******** manual ;)

    rsync is an excellent tool for incremental backups:

    man rsync

    for more info.

    rsync -Cavz source destination

    or even tunnelled via ssh (-e ssh) if the link is insecure, but as your drives are on the same system, the tunnelling is not necessary.

    HTH:)   (Hope that helps)
    LVL 14

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now