From 9309c372bfa3cb47d5f24dd955485c44b8bd300a Mon Sep 17 00:00:00 2001 From: Pavel Dmitriev <90725813+PavelMXFox@users.noreply.github.com> Date: Sun, 12 Dec 2021 14:19:30 +0300 Subject: [PATCH] Updated stamps in backup names --- backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index d937672..981b08c 100755 --- a/backup.sh +++ b/backup.sh @@ -6,7 +6,7 @@ DIRECTORY=`dirname "$ABSOLUTE_FILENAME"` source ${DIRECTORY}/config uuid=`uuid` -stamp=`date +"%Y%m%d-%H%M%S-I"` +stamp=`date +%s`-`date +"%Y%m%d-%H%M%S-I"` do_full="" do_quet=0 @@ -27,7 +27,7 @@ then echo "Full backup started" fi - stamp=`date +"%Y%m%d-%H%M%S-F"` + stamp=`date +%s`-`date +"%Y%m%d-%H%M%S-F"` rm -f ${prefix}/incremental/* fi