#! /bin/bash
# Backs up a drive of mine


    echo ""
    echo "                  ***** Enlightenment Config *****"
    echo "                       ***** Backup *****"
    echo ""

rsync -vurl --exclude='cached' --delete /home/snorri/.enlightenment/ /mnt/froody/files_linux/configs/e

# --delete only works in conjuction with -r, therefore the need for all the excludes above.

# Echos message to screen

    echo ""
    echo "                  ***** Transferring Froody to the *****"
    echo "                            ***** Backup *****"
    echo ""

rsync -vurl --exclude='lost+found' --delete /mnt/froody/ /mnt/backup

# / - trailing slash on first pathname doesn't copy win_d, just 
#     everything beneath it
# v - verbose
# u - update only (doesn't overwrite newer files)
# r - recurse subdirectories
# l - copies symlinks as symlinks
# --delete - Deletes files that dont exist on the sending side

# Sleep process momentarily to allow for a pause when run from E-term popup
sleep 3;
