Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fuss-backup
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
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
FUSS
fuss-backup
Commits
24d918f9
Commit
24d918f9
authored
7 months ago
by
Simone Piccardi
Browse files
Options
Downloads
Patches
Plain Diff
Cadenza giornaliera per i backup, alle 00:15 da martedì a sabato
parent
20322046
Branches
master
Tags
fuss/2.7
No related merge requests found
Pipeline
#1701
passed with stage
Stage:
in 32 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/changelog
+9
-3
9 additions, 3 deletions
debian/changelog
debian/fuss-backup.cron.d
+1
-1
1 addition, 1 deletion
debian/fuss-backup.cron.d
fuss-backup
+2
-2
2 additions, 2 deletions
fuss-backup
with
12 additions
and
6 deletions
debian/changelog
+
9
−
3
View file @
24d918f9
fuss-backup (2.
6
)
UNRELEASED
; urgency=medium
fuss-backup (2.
7
)
bookworm
; urgency=medium
* C
orrezioni alle cancellazioni (mancate) di vecchi dum
p
* C
adenza giornaliera (da martedi a sabato) per i backu
p
-- Simone Piccardi <piccardi@truelite.it> Thu, 19 Sep 2024 16:50:28 +0200
-- Simone Piccardi <piccardi@truelite.it> Wed, 25 Sep 2024 09:35:51 +0200
fuss-backup (2.6) bookworm; urgency=medium
* Correzioni alle cancellazioni (mancate) di vecchi dump, nuova retention
-- Simone Piccardi <piccardi@truelite.it> Tue, 24 Sep 2024 10:14:17 +0200
fuss-backup (2.5) bookworm; urgency=medium
...
...
This diff is collapsed.
Click to expand it.
debian/fuss-backup.cron.d
+
1
−
1
View file @
24d918f9
...
...
@@ -4,4 +4,4 @@
#
MAILTO
=
"root,backup@fuss.bz.it"
PATH
=
"/usr/sbin:/usr/bin:/sbin:/bin"
15
00
*
*
0
root
/
usr
/
sbin
/
fuss
-
backup
15
00
*
*
2
-
6
root
/
usr
/
sbin
/
fuss
-
backup
This diff is collapsed.
Click to expand it.
fuss-backup
+
2
−
2
View file @
24d918f9
...
...
@@ -276,7 +276,7 @@ if which mysqld_safe > /dev/null; then
grep
-v
information_schema
$ERRLOG
>>
$TMPLOG
echo
"* database
${
i
}
dumped in
$FILEBACK
"
if
[
$(
ls
${
i
}
-
*
.sql.gz|wc
-l
)
-gt
$MINCOPIES
]
;
then
find
.
-name
"
${
i
}
-*.sql.gz"
-mtime
+
$MAXDAYS
-
exec
rm
-f
\{\}
\;
find
.
-name
"
${
i
}
-*.sql.gz"
-mtime
+
$MAXDAYS
-
delete
fi
done
DUMPFILE
=
mysql_user_grants-
$DAY
.sql
...
...
@@ -301,7 +301,7 @@ if which pg_dumpall > /dev/null; then
su postgres
-c
"pg_dumpall"
|
$GZ
>
$FILEBACK
echo
"* pg_dumpall dump in
$FILEBACK
"
if
[
$(
ls
dumpall-
*
.sql.gz|wc
-l
)
-gt
$MINCOPIES
]
;
then
find
.
-name
"dumpall-*.sql.gz"
-mtime
+
$MAXDAYS
-
exec
rm
-f
\{\}
\;
find
.
-name
"dumpall-*.sql.gz"
-mtime
+
$MAXDAYS
-
delete
fi
echo
"PostgreSQL dump completed at
$(
date
+%R
)
"
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