Compare commits

..

2 Commits

Author SHA1 Message Date
oleg a58f15d9d9 version 2024-02-10 21:29:49 -05:00
oleg 81a1db39e3 fix move_archives 2024-02-10 21:29:19 -05:00
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
0.5.3
0.5.4
+3 -2
View File
@@ -30,7 +30,8 @@ fi
DateCriteria="${Days} days ago"
TargeHost=cloudstore.cvtt.vpn
TargetHost=cloud21.cvtt.vpn
TargetRootDir=/opt/store/cvtt/archive
Oldest=$(date -d "${DateCriteria}" '+%Y-%m-%d')
Now=$(date '+%Y%m%d_%H%M%S')
@@ -53,7 +54,7 @@ if [ "$files" == "" ]
then
echo "No files found older than ${Oldest} in ${ArchiveDir}"
else
Target="${TargetHost}:/home/cvtt/Archive/${FromHost}/"
Target="${TargetHost}:${TargetRootDir}/${FromHost}/"
echo "Moving files to ${Target}:"
echo -----------------
for f in ${files}