chore: Upgrade Alpine to 3.12.3
This commit is contained in:
parent
e7dba6335a
commit
9b09bb7c91
|
@ -12,7 +12,7 @@ logs_backup() {
|
||||||
echo "📥 Sauvegarde les logs"
|
echo "📥 Sauvegarde les logs"
|
||||||
mkdir -p backups
|
mkdir -p backups
|
||||||
ssh $DOCKER_CONTEXT mkdir -p backups/${URL}
|
ssh $DOCKER_CONTEXT mkdir -p backups/${URL}
|
||||||
docker --context $DOCKER_CONTEXT run -t --rm -v $HOME/backups/${URL}:/backup -v ${NAME}-log:/logs alpine:3.12.2 ash -c "cd /logs && tar cvf /backup/${BACKUP_LOGS_FILENAME} ."
|
docker --context $DOCKER_CONTEXT run -t --rm -v $HOME/backups/${URL}:/backup -v ${NAME}-log:/logs alpine:3.12.3 ash -c "cd /logs && tar cvf /backup/${BACKUP_LOGS_FILENAME} ."
|
||||||
ssh $DOCKER_CONTEXT "sudo chown kosssi:docker $HOME/backups/${URL}/${BACKUP_LOGS_FILENAME}"
|
ssh $DOCKER_CONTEXT "sudo chown kosssi:docker $HOME/backups/${URL}/${BACKUP_LOGS_FILENAME}"
|
||||||
scp $DOCKER_CONTEXT:$HOME/backups/${URL}/${BACKUP_LOGS_FILENAME} backups
|
scp $DOCKER_CONTEXT:$HOME/backups/${URL}/${BACKUP_LOGS_FILENAME} backups
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ logs_restore() {
|
||||||
echo "📤 Restaure les logs"
|
echo "📤 Restaure les logs"
|
||||||
ssh $DOCKER_CONTEXT mkdir -p backups/${URL}
|
ssh $DOCKER_CONTEXT mkdir -p backups/${URL}
|
||||||
scp backups/${BACKUP_LOGS_FILENAME} $DOCKER_CONTEXT:$HOME/backups/${URL}/
|
scp backups/${BACKUP_LOGS_FILENAME} $DOCKER_CONTEXT:$HOME/backups/${URL}/
|
||||||
docker --context $DOCKER_CONTEXT run -t --rm -v $HOME/backups/${URL}:/backup -v ${NAME}-log:/logs alpine:3.12.2 ash -c "cd /logs && tar xvf /backup/${BACKUP_LOGS_FILENAME} --strip 1"
|
docker --context $DOCKER_CONTEXT run -t --rm -v $HOME/backups/${URL}:/backup -v ${NAME}-log:/logs alpine:3.12.3 ash -c "cd /logs && tar xvf /backup/${BACKUP_LOGS_FILENAME} --strip 1"
|
||||||
}
|
}
|
||||||
|
|
||||||
stats() {
|
stats() {
|
||||||
|
|
Loading…
Reference in New Issue