diff --git a/backup.sh b/backup.sh index 7cb7a18..d3afeff 100644 --- a/backup.sh +++ b/backup.sh @@ -4,3 +4,9 @@ if [ $UID -ne 0 ] ; then echo "need root" exit 1 fi + +for dir in "$@" ; do + test -d $dir || { echo $dir dont exist ; continue ; } + echo cp -a $dir bkpdir/ +done +