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
0
Merge Requests
0
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
c2e8f1c9
Commit
c2e8f1c9
authored
Apr 21, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update rsync_all to p8 support
parent
a33e1fe0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
rsync_all.sh
etersoft/rsync_all.sh
+16
-4
No files found.
etersoft/rsync_all.sh
View file @
c2e8f1c9
...
...
@@ -14,14 +14,24 @@ date > $LOGFILE
#exec > >(tee -a $LOGFILE)
# output stdout to file
# print stderr to screen and to file
exec
>>
$LOGFILE
exec
2>
>(
tee
-a
$LOGFILE
>
&2
)
if
[
"
$1
"
=
"c6"
]
;
then
#exec >> $LOGFILE
#exec 2> >(tee -a $LOGFILE >&2)
get_rsync_path
()
{
local
RSYNCPATH
if
[
"
$1
"
=
"c6/branch"
]
;
then
RSYNCPATH
=
rsync.altlinux.ru::ALTLinux
elif
[
"
$1
"
=
"p8/branch"
]
;
then
#RSYNCPATH=rsync://ftp.basealt.ru/pub/distributions/ALTLinux
RSYNCPATH
=
rsync://ftp.basealt.ru/ALTLinux
else
RSYNCPATH
=
rsync://mirror.yandex.ru/altlinux
fi
echo
"
$RSYNCPATH
"
}
RPMS
=
/var/ftp/pub/ALTLinux
TIMEOUT
=
5000
...
...
@@ -52,6 +62,7 @@ cd $RPMS/ || exit 1
sync_file
()
{
RSYNCPATH
=
$(
get_rsync_path
$1
)
echo
echo
"Start sync from
$RSYNCPATH
/
$1
to
$RPMS
/
$1
"
rsync
$DELETE
--fuzzy
--partial
--timeout
=
$TIMEOUT
--progress
--stats
-vbrlt
--copy-links
\
...
...
@@ -61,6 +72,7 @@ rsync $DELETE --fuzzy --partial --timeout=$TIMEOUT --progress --stats -vbrlt --c
sync_branches
()
{
RSYNCPATH
=
$(
get_rsync_path
$1
)
local
i
if
[
-n
"
$BASEONLY
"
]
;
then
for
i
in
$LISTARCH
;
do
...
...
@@ -93,7 +105,7 @@ fi
# we do not update 5.0
#for i in 4.0 4.1 p5 p6 c6 t6 p7 t7; do
for
i
in
p5 p6 t6 p7 t7
;
do
for
i
in
p5 p6 t6 p7 t7
p8
;
do
# move branches
#mkdir $i/branch/ || continue
#for a in i586 x86_64 x86_32 noarch ; do
...
...
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