Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bin bash date save file

var=$(date +"%FORMAT_STRING")
now=$(date +"%m_%d_%Y")
printf "%s
" $now
today=$(date +"%Y-%m-%d")
printf "Today we are going to backup file to NFS server at AWS '%s'
" "/efs/my-blog-${today}.sql.tar.gz"
Source by www.cyberciti.biz #
 
PREVIOUS NEXT
Tagged: #bin #bash #date #save #file
ADD COMMENT
Topic
Name
7+5 =