Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
f306edc8
Commit
f306edc8
authored
Mar 08, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update-deferred: fix script and remove misspelled duplicate
Co-Authored-By:
Claude Opus 4.6
<
noreply@anthropic.com
>
parent
afb24b6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
43 deletions
+22
-43
update-deferred.sh
etersoft-cron/update-deferred.sh
+22
-7
update-deffered.sh
etersoft-cron/update-deffered.sh
+0
-36
No files found.
etersoft-cron/update-deferred.sh
View file @
f306edc8
#!/bin/sh
#
see ssh lav@spacerOC
#
TODO: использовать COW
exit
1
copy_base
()
{
local
from
=
"
$1
"
local
to
=
"
$2
"
for
i
in
$from
/
*
/base
;
do
arch
=
"
$(
basename
$(
dirname
$i
))
"
rm
-r
$to
/
$arch
/base
cp
-a
$i
$to
/
$arch
/base
done
}
crdate
()
{
shift
2
from
=
"
$1
/last"
to
=
"
$1
"
local
from
=
"
$1
"
local
to
=
"
$2
"
d
=
"
$(
date
"+%Y-%m-%d"
)
"
#d="2025-05-28"
[
-d
"
$to
/
$d
"
]
&&
return
1
cp
-la
"
$from
"
"
$to
/
$d
"
touch
"
$to
/
$d
"
copy_base
"
$from
"
"
$to
/
$d
"
ln
-s
"
$d
"
"
$to
/last-new"
||
return
1
# TODO: exchange
rm
"
$to
/last"
mv
"
$to
/last-new"
"
$to
/last"
}
# Создание и обновление архива
#etertimemachine update --link /var/ftp/pub/
Etersoft/Sisyphus/Deferred
/var/ftp/pub/Etersoft/Sisyphus/archive
crdate /var/ftp/pub/Etersoft/Sisyphus/archive
#etertimemachine update --link /var/ftp/pub/
ALTLinux/Sisyphus
/var/ftp/pub/Etersoft/Sisyphus/archive
crdate /var/ftp/pub/
ALTLinux/Sisyphus /var/ftp/pub/
Etersoft/Sisyphus/archive
# Откладывание даты
#etertimemachine rotate --link /var/ftp/pub/Etersoft/Sisyphus/archive
etersoft-cron/update-deffered.sh
deleted
100755 → 0
View file @
afb24b6b
#!/bin/sh
# TODO: использовать COW
copy_base
()
{
local
from
=
"
$1
"
local
to
=
"
$2
"
for
i
in
$from
/
*
/base
;
do
arch
=
"
$(
basename
$(
dirname
$i
))
"
rm
-r
$to
/
$arch
/base
cp
-a
$i
$to
/
$arch
/base
done
}
crdate
()
{
local
from
=
"
$1
"
local
to
=
"
$2
"
d
=
"
$(
date
"+%Y-%m-%d"
)
"
#d="2025-05-28"
[
-d
"
$to
/
$d
"
]
&&
return
1
cp
-la
"
$from
"
"
$to
/
$d
"
copy_base
"
$from
"
"
$to
/
$d
"
ln
-s
"
$d
"
"
$to
/last-new"
||
return
1
# TODO: exchange
rm
"
$to
/last"
mv
"
$to
/last-new"
"
$to
/last"
}
# Создание и обновление архива
#etertimemachine update --link /var/ftp/pub/ALTLinux/Sisyphus /var/ftp/pub/Etersoft/Sisyphus/archive
crdate /var/ftp/pub/ALTLinux/Sisyphus /var/ftp/pub/Etersoft/Sisyphus/archive
# Откладывание даты
#etertimemachine rotate --link /var/ftp/pub/Etersoft/Sisyphus/archive
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment