Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tetras-back
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
Tetras-back
Commits
9abae198
Unverified
Commit
9abae198
authored
8 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
fix fail on tar return 1
parent
8952e09c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/scripts/backup_nocloud.sh
+11
-0
11 additions, 0 deletions
src/scripts/backup_nocloud.sh
with
11 additions
and
0 deletions
src/scripts/backup_nocloud.sh
+
11
−
0
View file @
9abae198
...
@@ -70,10 +70,21 @@ sauvegarde_serveur(){
...
@@ -70,10 +70,21 @@ sauvegarde_serveur(){
if
[
-d
"
$backup_path
"
]
if
[
-d
"
$backup_path
"
]
then
then
/bin/ls
-dt
$backup_path
/
*
|
tail
-n
+11 | xargs
rm
-rf
/bin/ls
-dt
$backup_path
/
*
|
tail
-n
+11 | xargs
rm
-rf
else
do_log
"Dossier de sauvegarde gitlab non trouvé, pensez à supprimer manuellement les anciennes sauvegardes"
fi
fi
fi
fi
do_log
"Creation de l'archive configuration serveur"
do_log
"Creation de l'archive configuration serveur"
tar
czf
$vopt
$dest
/serveur.tgz
$srv_directories
tar
czf
$vopt
$dest
/serveur.tgz
$srv_directories
ret
=
$?
if
[
$ret
-eq
1
]
then
# only warn on tar return code 1
do_log
"Attention: des fichiers on été modifié durant la sauvegarde de l'archive serveur"
return
0
else
return
$ret
fi
}
}
sauvegarde_donnees
(){
sauvegarde_donnees
(){
...
...
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