SHARE
TWEET

Untitled

a guest Apr 25th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. DESKTOPPATH=`echo ~/Desktop`
  4. BKUP_TODAY=`date '+bkup%Y-%m-%d'`
  5.  
  6. #echo ${DESKTOPPATH}/${BKUP_TODAY}
  7. if [ ! -d ${DESKTOPPATH}/${BKUP_TODAY} ]; then
  8.         mkdir ${DESKTOPPATH}/${BKUP_TODAY}
  9. fi
  10.  
  11. cd ${DESKTOPPATH}
  12. mv * ${BKUP_TODAY} 2>/dev/null
  13. mv ${BKUP_TODAY}/bkup* .  2>/dev/null
  14.  
  15. echo back up desktop files to ${BKUP_TODAY}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top