Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
187bf571
Commit
187bf571
authored
Jun 15, 2008
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
keep maximum of $BACKUP_LIMIT backups
parent
0e96ae68
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
lbu
lbu
+10
-0
No files found.
lbu
View file @
187bf571
...
@@ -360,6 +360,16 @@ cmd_commit() {
...
@@ -360,6 +360,16 @@ cmd_commit() {
die
"Problems creating archive. aborting"
die
"Problems creating archive. aborting"
fi
fi
#
delete
old
backups
if
needed
#
poor
mans
'head -n -N'
done
with
awk
.
ls
"$mnt"
/$(
hostname
).[
0
-
9
][
0
-
9
][
0
-
9
][
0
-
9
]*[
0
-
9
].
tar
.
gz
\
|
awk
'{ a[++i] = $0; } END {
print a[0];
while (i-- > '
"${BACKUP_LIMIT:-0}"
') {
print a[++j]
}
}'
|
xargs
rm
2
>/
dev
/
null
#
remove
obsolete
file
.
some
older
version
of
alpine
needs
this
#
remove
obsolete
file
.
some
older
version
of
alpine
needs
this
#
to
be
ble
to
upgrade
#
to
be
ble
to
upgrade
if
[
-
z
"$DRYRUN"
]
&&
[
-
f
$
mnt
/
packages
.
list
];
then
if
[
-
z
"$DRYRUN"
]
&&
[
-
f
$
mnt
/
packages
.
list
];
then
...
...
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