This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
backup_script [2025/05/03 21:39] – today backup not by time (24 hrs) any more, but by date thilo | backup_script [2025/05/06 08:08] (current) – little typo thilo | ||
---|---|---|---|
Line 78: | Line 78: | ||
done | done | ||
- | | + | |
echo | echo | ||
echo " | echo " | ||
Line 135: | Line 135: | ||
DATE=`date +%Y%m%d_%H%M` | DATE=`date +%Y%m%d_%H%M` | ||
if ! [[ `find -cmin 5 | grep ${THIS_BACKUP_FILE}` ]] ; then | if ! [[ `find -cmin 5 | grep ${THIS_BACKUP_FILE}` ]] ; then | ||
- | # Date of the new files is more that 5 mind in the past => seems Tomato Router has no date (or date 1970-01-01) | + | # Date of the new files is more that 5 mins in the past => seems Tomato Router has no date (or date 1970-01-01) |
touch ${THIS_BACKUP_FILE} | touch ${THIS_BACKUP_FILE} | ||
fi | fi |