Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- DOWNLOADSPATH=`echo ~/Downloads`
- BKUP_TODAY=`date '+bkup%Y-%m-%d'`
- #echo ${DOWNLOADSPATH}/${BKUP_TODAY}
- if [ ! -d ${DOWNLOADSPATH}/${BKUP_TODAY} ]; then
- mkdir ${DOWNLOADSPATH}/${BKUP_TODAY}
- fi
- cd ${DOWNLOADSPATH}
- mv * ${BKUP_TODAY} 2>/dev/null
- mv ${BKUP_TODAY}/bkup* . 2>/dev/null
- echo back up downloads files to ${BKUP_TODAY}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement