aboutsummaryrefslogtreecommitdiff
path: root/op_guide
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-04-14 17:50:17 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-04-14 17:50:17 +0200
commit9701b863fd2703450abe19eda0940ee2faf1ec15 (patch)
tree5c00a681c9e7c6be14a4a78d1e77d32f19d07e0c /op_guide
parent1183583fdf0a7b054b7da769bd92d53186ace3fe (diff)
downloadinfrastructure-9701b863fd2703450abe19eda0940ee2faf1ec15.tar.gz
infrastructure-9701b863fd2703450abe19eda0940ee2faf1ec15.zip
Create a backup script
Diffstat (limited to 'op_guide')
-rw-r--r--op_guide/stolon/nomad_full_backup.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/op_guide/stolon/nomad_full_backup.md b/op_guide/stolon/nomad_full_backup.md
new file mode 100644
index 0000000..574043a
--- /dev/null
+++ b/op_guide/stolon/nomad_full_backup.md
@@ -0,0 +1,26 @@
+Start by following ../backup-minio
+
+## Garbage collect old backups
+
+```
+mc ilm import deuxfleurs/${BUCKET_NAME} <<EOF
+{
+ "Rules": [
+ {
+ "Expiration": {
+ "Days": 62
+ },
+ "ID": "PurgeOldBackups",
+ "Status": "Enabled"
+ }
+ ]
+}
+EOF
+```
+
+Check that it has been activated:
+
+```
+ mc ilm ls deuxfleurs/${BUCKET_NAME}
+```
+