I'm looking for an if statement. So when I run my script it brings me a list of the backups with the date. The if statement is for if there no backup of the last 2 days echo " No recent backup"
for when I ls -lrth: -rw-r--r--. 1 nfsnobody nfsnobody 1.5G Aug 15 12:02 -rw-r--r--. 1 nfsnobody nfsnobody 1.5G Aug 16 01:30
If the date is older than 2 days echo " "
Aucun commentaire:
Enregistrer un commentaire