Want to subscribe to topics you're interested in?
Become a Member

Time variable

Discussion in 'System Administration' started by pamamolf, Nov 9, 2014.

  1. pamamolf

    pamamolf Well-Known Member

    4,022
    421
    83
    May 31, 2014
    Ratings:
    +816
    Local Time:
    7:21 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Hi
    I use on my script for backup this variable:

    Code:
    DATE="$(/bin/date +%d-%m-%Y)"
    and then on my command the $DATE and is working great for one backup per day...


    Now i need to get two backups per day and i am thinking to use the time variable so i can avoid overwriting as i don't know any other way for it :(

    How can i add the time on my DATE= ?

    Thanks you !
     
    Last edited: Nov 9, 2014