move emails to lille
This commit is contained in:
parent
b688a1bbb9
commit
3d925a4505
2 changed files with 18 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
job "email" {
|
job "email" {
|
||||||
datacenters = ["orion"]
|
datacenters = ["scorpio"]
|
||||||
type = "service"
|
type = "service"
|
||||||
priority = 65
|
priority = 65
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ job "email" {
|
||||||
constraint {
|
constraint {
|
||||||
attribute = "${attr.unique.hostname}"
|
attribute = "${attr.unique.hostname}"
|
||||||
operator = "="
|
operator = "="
|
||||||
value = "doradille"
|
value = "ananas"
|
||||||
}
|
}
|
||||||
|
|
||||||
config {
|
config {
|
||||||
|
|
16
restic_restore_gen
Executable file
16
restic_restore_gen
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
svc=$1 # dovecot, plume, cryptpad, or consul
|
||||||
|
commit=$2 # backup id you want to restore, from restic summary
|
||||||
|
target=$3 # where to restore
|
||||||
|
|
||||||
|
cat <<EOF
|
||||||
|
PROOFREAD AND THEN COPY PASTE:
|
||||||
|
----------------------------------------------------------------------------
|
||||||
|
export RESTIC_REPOSITORY=`pass deuxfleurs/backups/$svc/restic_repository`
|
||||||
|
export RESTIC_PASSWORD=`pass deuxfleurs/backups/$svc/restic_password`
|
||||||
|
export AWS_ACCESS_KEY_ID=`pass deuxfleurs/backups/$svc/aws_s3_access_key`
|
||||||
|
export AWS_SECRET_ACCESS_KEY=`pass deuxfleurs/backups/$svc/aws_s3_secret_key`
|
||||||
|
restic restore $commit --target $target
|
||||||
|
----------------------------------------------------------------------------
|
||||||
|
EOF
|
Loading…
Reference in a new issue