MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

https://about.gitlab.com/releases/2022/01/11/security-release-gitlab-14-6-2-released/
https://about.gitlab.com/releases/2022/01/04/gitlab-14-6-1-released/

Commit 6b586ebf authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

server/backup.sh: -i, add option

See vdj#531.
parent f5af8ae0
#!/bin/sh #!/bin/sh
COMPLETE=0 COMPLETE=0
INCREMENTAL=0
DIR= DIR=
if [ $# -ge 1 -a "$1" = "-h" ]; then if [ $# -ge 1 -a "$1" = "-h" ]; then
echo "$0: [-c] [path] echo "$0: [-c] [-i] [path]
-c: Backup everything -c: Backup everything
-i: Incremental backup, since the first of the month
path: Where to save the file" >&2 path: Where to save the file" >&2
exit 1 exit 1
fi fi
if [ $# -ge 1 -a "$1" = "-i" ]; then
INCREMENTAL=1
shift
fi
if [ $# -ge 1 -a "$1" = "-c" ]; then if [ $# -ge 1 -a "$1" = "-c" ]; then
COMPLETE=1 COMPLETE=1
shift shift
...@@ -40,8 +47,11 @@ if [ $COMPLETE -eq 1 ]; then ...@@ -40,8 +47,11 @@ if [ $COMPLETE -eq 1 ]; then
filename="${DIR}backup_"$now filename="${DIR}backup_"$now
zip -r $filename web2py/applications/vidjil/databases/ "$DIR_SEQUENCES" "$DIR_RESULTS" $db_backup_file zip -r $filename web2py/applications/vidjil/databases/ "$DIR_SEQUENCES" "$DIR_RESULTS" $db_backup_file
else else
if [ $INCREMENTAL -eq 1 ]; then
else
filename="${DIR}backup_essentials_"$now filename="${DIR}backup_essentials_"$now
zip -r $filename web2py/applications/vidjil/databases/ "$DIR_RESULTS" $db_backup_file zip -r $filename web2py/applications/vidjil/databases/ "$DIR_RESULTS" $db_backup_file
fi
fi fi
rm -f "$db_backup_file" rm -f "$db_backup_file"
ls -lh $filename ls -lh $filename
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment