Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Acqua
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LAGO
Software
Acqua
Commits
c83568b6
Commit
c83568b6
authored
9 years ago
by
Hernán Asorey
Browse files
Options
Downloads
Patches
Plain Diff
Some questions improved. Autodelete old files included
parent
2f84d419
No related branches found
Branches containing commit
Tags
acqua-v1r1
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
brc/lago/lago-configs.pl
+9
-5
9 additions, 5 deletions
brc/lago/lago-configs.pl
brc/lago/lago-proc.sh
+9
-3
9 additions, 3 deletions
brc/lago/lago-proc.sh
brc/lago/lago-trfs.sh
+5
-0
5 additions, 0 deletions
brc/lago/lago-trfs.sh
with
23 additions
and
8 deletions
brc/lago/lago-configs.pl
+
9
−
5
View file @
c83568b6
...
@@ -75,11 +75,11 @@ push @parameters,
...
@@ -75,11 +75,11 @@ push @parameters,
0
,
0
,
"",
"",
"
siteLat
",
"
siteLat
",
"
Site Latitude (+/- dec deg, <0 = South)
",
"
Site
Geographic
Latitude (+/- dec deg, <0 = South)
",
1
,
1
,
0
.
,
0
.
,
"
siteLong
",
"
siteLong
",
"
Site Longitude (+/- dec deg, <0 = West)
",
"
Site
Geographic
Longitude (+/- dec deg, <0 = West)
",
1
,
1
,
0
.
,
0
.
,
"
siteAlt
",
"
siteAlt
",
...
@@ -279,7 +279,7 @@ push @parameters,
...
@@ -279,7 +279,7 @@ push @parameters,
2
,
2
,
"
n
",
"
n
",
# TRANSFER 196-21
1
# TRANSFER 196-21
5
"
autoTransfer
",
"
autoTransfer
",
"
Should I automatically transfer data to the central repository?
",
"
Should I automatically transfer data to the central repository?
",
2
,
2
,
...
@@ -295,7 +295,11 @@ push @parameters,
...
@@ -295,7 +295,11 @@ push @parameters,
"
remoteIP
",
"
remoteIP
",
"
IP of the central repository (remote)
",
"
IP of the central repository (remote)
",
0
,
0
,
"
200.16.117.76
";
"
200.16.117.76
",
"
eraseOldFiles
",
"
WARNING: If yes, it will erase local data and metadata files older than 30 days
",
2
,
"
n
";
sub
get
{
sub
get
{
my
$question
=
$_
[
0
];
my
$question
=
$_
[
0
];
...
@@ -541,7 +545,7 @@ ask(168,193,$block,$blockN);
...
@@ -541,7 +545,7 @@ ask(168,193,$block,$blockN);
print
"
$parameters
[196]
";
print
"
$parameters
[196]
";
$blockN
=
5
;
# TRANSFER
$blockN
=
5
;
# TRANSFER
$block
=
"
# BLOCK
\t\t
DATA TRANSFER
";
$block
=
"
# BLOCK
\t\t
DATA TRANSFER
";
ask
(
196
,
21
1
,
$block
,
$blockN
);
ask
(
196
,
21
5
,
$block
,
$blockN
);
# not asking values (backward compatibility)
# not asking values (backward compatibility)
...
...
This diff is collapsed.
Click to expand it.
brc/lago/lago-proc.sh
+
9
−
3
View file @
c83568b6
...
@@ -26,7 +26,13 @@ for i in ${files}; do
...
@@ -26,7 +26,13 @@ for i in ${files}; do
fi
fi
fi
fi
bzip2
-1v
$i
bzip2
-1v
$i
if
(
$hasUSB
)
;
then
mv
-v
${
work
}
/
*
.bz2
${
usb
}
/
fi
done
done
files
=
$(
find
${
work
}
-iname
"*.mtd"
-type
f
-mmin
+30
)
for
i
in
${
files
}
;
do
echo
$i
bzip2
-1v
$i
done
if
(
$hasUSB
)
;
then
mv
-v
${
work
}
/
*
.bz2
${
usb
}
/
fi
This diff is collapsed.
Click to expand it.
brc/lago/lago-trfs.sh
+
5
−
0
View file @
c83568b6
...
@@ -6,3 +6,8 @@ if ($hasUSB); then
...
@@ -6,3 +6,8 @@ if ($hasUSB); then
datadir
=
${
usb
}
datadir
=
${
usb
}
fi
fi
rsync
-aPv
$datadir
/
*
.bz2
${
remoteUser
}
@
${
remoteIP
}
:~/lago/
rsync
-aPv
$datadir
/
*
.bz2
${
remoteUser
}
@
${
remoteIP
}
:~/lago/
if
(
${
eraseOldFiles
}
)
;
then
files
=
$(
find
${
work
}
-iname
"*.bz2"
-type
f
-mtime
+30
)
rm
${
files
}
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment