#!/bin/bash 
# x
# selective $HOME backer-upper
# cron-able
# configurable
# defaults:
    # doesn't backup dot-files
    # backs up non-dot-files
# logs each attempted backup
# appends to archive in same day
# takes arguments of files and directories that are exceptions to policy

#LOGFILE=$HOME/backup/logs/

while [ "$#" -gt 0 ]; do
    echo "num_remaining_args=$#"
    echo cp -rip "$1"
# if echo cp -rip "$1";
# then echo "Something went right" >> $LOGFILE.stdout
# else echo "Something went wrong" 1>&2 >> $LOGFILE.stderr; exit 0
# fi    
    shift
done

file_count=0
for file in $( ls -a | grep -Ev '^(.|..)$' ); do
    file_count=$(( $file_count+1 ))
    echo $file_count: $file
done
