Making automatic backups of home directories to a rewritable DVD

Posted on 2005-04-26
Last Modified: 2013-12-15
I want to install a DVD burner to make backup copies of my home directories at 10:00 pm.
What do I need to erase and make automaticly Full and Incremental backup of data in those directories to DVD/CD media?
Is it safe?
Question by:jclobocar
    LVL 11

    Expert Comment

    You can use tar utility to make full backups. For icremental backups a timestamp usually is created. It shouldnt be that hard to accomplish
    LVL 2

    Accepted Solution

    M using growisofs for crearting DVDs, edit the script as per your need and put in cron to execute at required time

    DATE=$(date +%Y-%m-%d)

    #NOTE: These two paths must end in a / in
    #order to correctly build up the other paths


    #These directories shouldn't end in a / although
    #I don't think it will cause any problems if
    #they do. There should be a space at the end though
    #to ensure the database file gets concatenated correctly.
    SOURCE="/a/location /other/locations " $DATABASE_FILE

    echo Removing old backup directories
    rm -rf $BACKUP_DIR

    echo Creating new backup directories
    mkdir $BACKUP_DIR

    echo Creating database backup
    pg_dump -U username -f $DATABASE_FILE databaseName

    echo Backing up $SOURCE to file $BACKUP_FILE
    /bin/tar -cpf $BACKUP_FILE $SOURCE

    #This is not necessary and possibly harmful for DVD+RW media
    echo Quick blanking media
    dvd+rw-format -blank /dev/hdc

    echo Burning backup
    growisofs -dvd-compat -Z /dev/hdc -r -J $BACKUP_FILE
    LVL 1

    Author Comment


    how much time does it take to do a 2GB backup?

    LVL 2

    Expert Comment

    Shd not take more then 10 mins to complete the script, provided u have sufficent HW to handle this...
    LVL 1

    Author Comment

    where can I get the rpm for RedHat 9?
    LVL 2

    Expert Comment

    LVL 11

    Expert Comment

    You can get visit for all possible RPM's

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    779 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

    16 Experts available now in Live!

    Get 1:1 Help Now