Saturday, May 15, 2010

Project: Getting Ready For Ubuntu 10.04 - Part 4a

After some experiments and benchmarking, I have modified the usb_backup_ntfs script presented in the last installment to remove compression.  This cuts the time needed to perform the backup using this script by roughly half.  The previous script works, but this one is better:


# usb_backup_ntfs # backup system to external disk drive

SOURCE="/etc /usr/local /home"

if [[ -d $NTFS_DESTINATION ]]; then
    for i in $SOURCE ; do
        sudo tar -cv \
            --exclude '/home/*/.gvfs' \
            -f $NTFS_DESTINATION/$fn.tar $i

Further Reading
Other installments in this series: 1 2 3 4 4a 5