miroir de
https://github.com/PAPAMICA/Wiki-Tech.io.git
synchronisé 2025-02-25 08:01:01 +01:00
docs: update Cloud/IPC/Container
Cette révision appartient à :
Parent
2f944e3def
révision
79cf2f0579
1 fichiers modifiés avec 4 ajouts et 4 suppressions
|
@ -2,7 +2,7 @@
|
||||||
title: Infomaniak Public Cloud - Le stockage Swift
|
title: Infomaniak Public Cloud - Le stockage Swift
|
||||||
description: Créer et gérer ses container Swift et ses objects
|
description: Créer et gérer ses container Swift et ses objects
|
||||||
published: true
|
published: true
|
||||||
date: 2021-11-04T08:20:50.110Z
|
date: 2021-11-04T08:24:04.761Z
|
||||||
tags: infomaniak, public-cloud, cloud, ipc, swift
|
tags: infomaniak, public-cloud, cloud, ipc, swift
|
||||||
editor: markdown
|
editor: markdown
|
||||||
dateCreated: 2021-11-03T12:34:36.327Z
|
dateCreated: 2021-11-03T12:34:36.327Z
|
||||||
|
@ -83,11 +83,11 @@ FOLDER="$2"
|
||||||
FILESLIST=$(find $FOLDER -type f )
|
FILESLIST=$(find $FOLDER -type f )
|
||||||
for FILE in $FILESLIST
|
for FILE in $FILESLIST
|
||||||
do
|
do
|
||||||
openstack object create $CONTAINER $FILE
|
openstack object create $CONTAINER $FILE > /dev/null
|
||||||
if test $? -eq 0; then
|
if test $? -eq 0; then
|
||||||
echo "[$(date +%Y-%m-%d_%H:%M:%S)] SendFile ✅ $FILE has been successfully sent to $CONTAINER."
|
echo "[$(date +%Y-%m-%d_%H:%M:%S)] SendFolder ✅ $FILE has been successfully sent to $CONTAINER."
|
||||||
else
|
else
|
||||||
echo "[$(date +%Y-%m-%d_%H:%M:%S)] BackupScript ❌ ERROR : A problem was encountered during the upload of $FILE"
|
echo "[$(date +%Y-%m-%d_%H:%M:%S)] SendFolder ❌ ERROR : A problem was encountered during the upload of $FILE"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
```
|
```
|
||||||
|
|
Chargement…
Ajouter une table
Référencer dans un nouveau ticket