NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Trace

helper-scripts/backup_and_restore.sh

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

backup_and_restore.sh on main
Author Date Commit Line Code
Harald Glatt about 7 years ago 7dc0a05

Update all helper scripts to '/usr/bin/env bash' shebang

Full commit hash
7dc0a05a71d958918644339649ac6874c821eacb
Author
Harald Glatt <[email protected]>
Date
about 7 years ago
Selected line
1
#!/usr/bin/env bash
Open commit View diff
1 #!/usr/bin/env bash
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
2
Open commit View diff
2
Peter over 1 year ago 3c9d0c9

use ghcr.io for backupimage (#6333)

Full commit hash
3c9d0c9d577a3ac8a159a34c7851b14cd6d4ecb1
Author
Peter <[email protected]>
Date
over 1 year ago
Selected line
3
DEBIAN_DOCKER_IMAGE="ghcr.io/mailcow/backup:latest"
Open commit View diff
3 DEBIAN_DOCKER_IMAGE="ghcr.io/mailcow/backup:latest"
Christian Burmeister over 6 years ago 25f7ecc

Update backup_and_restore.sh (#3490)

Full commit hash
25f7ecc5427784470382c557c1bcbd7829864c0a
Author
Christian Burmeister <[email protected]>
Date
over 6 years ago
Selected line
4
Open commit View diff
4
André almost 8 years ago 67b3dec

[Helper] Add MAILCOW_BACKUP_LOCATION as alternative to BACKUP_LOCATION to backup script, fixes #957

Full commit hash
67b3dec5a2260caf32ddcdc9d78188995336fa4f
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
5
if [[ ! -z ${MAILCOW_BACKUP_LOCATION} ]]; then
Open commit View diff
5 if [[ ! -z ${MAILCOW_BACKUP_LOCATION} ]]; then
same change 67b3dec

[Helper] Add MAILCOW_BACKUP_LOCATION as alternative to BACKUP_LOCATION to backup script, fixes #957

Full commit hash
67b3dec5a2260caf32ddcdc9d78188995336fa4f
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
6
  BACKUP_LOCATION="${MAILCOW_BACKUP_LOCATION}"
Open commit View diff
6 BACKUP_LOCATION="${MAILCOW_BACKUP_LOCATION}"
same change 67b3dec

[Helper] Add MAILCOW_BACKUP_LOCATION as alternative to BACKUP_LOCATION to backup script, fixes #957

Full commit hash
67b3dec5a2260caf32ddcdc9d78188995336fa4f
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
7
fi
Open commit View diff
7 fi
same change 67b3dec

[Helper] Add MAILCOW_BACKUP_LOCATION as alternative to BACKUP_LOCATION to backup script, fixes #957

Full commit hash
67b3dec5a2260caf32ddcdc9d78188995336fa4f
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
8
Open commit View diff
8
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
9
if [[ ! ${1} =~ (backup|restore) ]]; then
Open commit View diff
9 if [[ ! ${1} =~ (backup|restore) ]]; then
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
10
  echo "First parameter needs to be 'backup' or 'restore'"
Open commit View diff
10 echo "First parameter needs to be 'backup' or 'restore'"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
11
  exit 1
Open commit View diff
11 exit 1
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
12
fi
Open commit View diff
12 fi
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
13
Open commit View diff
13
andryyy over 6 years ago ccd9d93

[Helper] New parameter --delete-days to delete backups older than n days

Full commit hash
ccd9d934d6350df4a98ce8d67433e7b36fc49b74
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
14
if [[ ${1} == "backup" && ! ${2} =~ (crypt|vmail|redis|rspamd|postfix|mysql|all|--delete-days) ]]; then
Open commit View diff
14 if [[ ${1} == "backup" && ! ${2} =~ (crypt|vmail|redis|rspamd|postfix|mysql|all|--delete-days) ]]; then
same change ccd9d93

[Helper] New parameter --delete-days to delete backups older than n days

Full commit hash
ccd9d934d6350df4a98ce8d67433e7b36fc49b74
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
15
  echo "Second parameter needs to be 'vmail', 'crypt', 'redis', 'rspamd', 'postfix', 'mysql', 'all' or '--delete-days'"
Open commit View diff
15 echo "Second parameter needs to be 'vmail', 'crypt', 'redis', 'rspamd', 'postfix', 'mysql', 'all' or '--delete-days'"
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
16
  exit 1
Open commit View diff
16 exit 1
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
17
fi
Open commit View diff
17 fi
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
18
Open commit View diff
18
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
19
if [[ -z ${BACKUP_LOCATION} ]]; then
Open commit View diff
19 if [[ -z ${BACKUP_LOCATION} ]]; then
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
20
  while [[ -z ${BACKUP_LOCATION} ]]; do
Open commit View diff
20 while [[ -z ${BACKUP_LOCATION} ]]; do
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
21
    read -ep "Backup location (absolute path, starting with /): " BACKUP_LOCATION
Open commit View diff
21 read -ep "Backup location (absolute path, starting with /): " BACKUP_LOCATION
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
22
  done
Open commit View diff
22 done
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
23
fi
Open commit View diff
23 fi
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
24
Open commit View diff
24
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
25
if [[ ! ${BACKUP_LOCATION} =~ ^/ ]]; then
Open commit View diff
25 if [[ ! ${BACKUP_LOCATION} =~ ^/ ]]; then
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
26
  echo "Backup directory needs to be given as absolute path (starting with /)."
Open commit View diff
26 echo "Backup directory needs to be given as absolute path (starting with /)."
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
27
  exit 1
Open commit View diff
27 exit 1
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
28
fi
Open commit View diff
28 fi
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
29
Open commit View diff
29
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
30
if [[ -f ${BACKUP_LOCATION} ]]; then
Open commit View diff
30 if [[ -f ${BACKUP_LOCATION} ]]; then
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
31
  echo "${BACKUP_LOCATION} is a file!"
Open commit View diff
31 echo "${BACKUP_LOCATION} is a file!"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
32
  exit 1
Open commit View diff
32 exit 1
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
33
fi
Open commit View diff
33 fi
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
34
Open commit View diff
34
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
35
if [[ ! -d ${BACKUP_LOCATION} ]]; then
Open commit View diff
35 if [[ ! -d ${BACKUP_LOCATION} ]]; then
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
36
  echo "${BACKUP_LOCATION} is not a directory"
Open commit View diff
36 echo "${BACKUP_LOCATION} is not a directory"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
37
  read -p "Create it now? [y|N] " CREATE_BACKUP_LOCATION
Open commit View diff
37 read -p "Create it now? [y|N] " CREATE_BACKUP_LOCATION
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
38
  if [[ ! ${CREATE_BACKUP_LOCATION,,} =~ ^(yes|y)$ ]]; then
Open commit View diff
38 if [[ ! ${CREATE_BACKUP_LOCATION,,} =~ ^(yes|y)$ ]]; then
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
39
    exit 1
Open commit View diff
39 exit 1
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
40
  else
Open commit View diff
40 else
Alice Ferrazzi over 7 years ago 5a56965

Create nested directory for backup

Full commit hash
5a56965a4819f7bea91f130ca7c3d7abc6ff532d
Author
Alice Ferrazzi <[email protected]>
Date
over 7 years ago
Selected line
41
    mkdir -p ${BACKUP_LOCATION}
Open commit View diff
41 mkdir -p ${BACKUP_LOCATION}
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
42
    chmod 755 ${BACKUP_LOCATION}
Open commit View diff
42 chmod 755 ${BACKUP_LOCATION}
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
43
  fi
Open commit View diff
43 fi
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
44
else
Open commit View diff
44 else
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
45
  if [[ ${1} == "backup" ]] && [[ -z $(echo $(stat -Lc %a ${BACKUP_LOCATION}) | grep -oE '[0-9][0-9][5-7]') ]]; then
Open commit View diff
45 if [[ ${1} == "backup" ]] && [[ -z $(echo $(stat -Lc %a ${BACKUP_LOCATION}) | grep -oE '[0-9][0-9][5-7]') ]]; then
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
46
    echo "${BACKUP_LOCATION} is not write-able for others, that's required for a backup."
Open commit View diff
46 echo "${BACKUP_LOCATION} is not write-able for others, that's required for a backup."
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
47
    exit 1
Open commit View diff
47 exit 1
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
48
  fi
Open commit View diff
48 fi
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
49
fi
Open commit View diff
49 fi
andryyy over 6 years ago ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
50
Open commit View diff
50
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
51
BACKUP_LOCATION=$(echo ${BACKUP_LOCATION} | sed 's#/$##')
Open commit View diff
51 BACKUP_LOCATION=$(echo ${BACKUP_LOCATION} | sed 's#/$##')
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
52
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Open commit View diff
52 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
53
COMPOSE_FILE=${SCRIPT_DIR}/../docker-compose.yml
Open commit View diff
53 COMPOSE_FILE=${SCRIPT_DIR}/../docker-compose.yml
andryyy almost 6 years ago d3a14f3

[Helper] Allow to run backup script everywhere

Full commit hash
d3a14f397c95751e3151c387bbe5400efa423179
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
54
ENV_FILE=${SCRIPT_DIR}/../.env
Open commit View diff
54 ENV_FILE=${SCRIPT_DIR}/../.env
DerLinkman almost 4 years ago 6306c45

Removed Thread Prompt and set default value to 1 Thread

Full commit hash
6306c4555c7221493fac0ff19e9aed2f73459d64
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
55
THREADS=$(echo ${THREADS:-1})
Open commit View diff
55 THREADS=$(echo ${THREADS:-1})
DerLinkman about 3 years ago accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
56
ARCH=$(uname -m)
Open commit View diff
56 ARCH=$(uname -m)
DerLinkman almost 4 years ago 6306c45

Removed Thread Prompt and set default value to 1 Thread

Full commit hash
6306c4555c7221493fac0ff19e9aed2f73459d64
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
57
Open commit View diff
57
Tomasz Orzechowski over 2 years ago 6dc0bdb

Proper number of threads regex.

Full commit hash
6dc0bdbfa377eef1198063bccd41bd86a0858800
Author
Tomasz Orzechowski <[email protected]>
Date
over 2 years ago
Selected line
58
if ! [[ "${THREADS}" =~ ^[1-9][0-9]?$ ]] ; then
Open commit View diff
58 if ! [[ "${THREADS}" =~ ^[1-9][0-9]?$ ]] ; then
DerLinkman over 3 years ago b73d879

Removed thread prompt again. Added notice message

Full commit hash
b73d879f3c681593f763cbf1a0ed286e9edb17e8
Author
DerLinkman <[email protected]>
Date
over 3 years ago
Selected line
59
  echo "Thread input is not a number!"
Open commit View diff
59 echo "Thread input is not a number!"
same change b73d879

Removed thread prompt again. Added notice message

Full commit hash
b73d879f3c681593f763cbf1a0ed286e9edb17e8
Author
DerLinkman <[email protected]>
Date
over 3 years ago
Selected line
60
  exit 1
Open commit View diff
60 exit 1
Tomasz Orzechowski over 2 years ago 6dc0bdb

Proper number of threads regex.

Full commit hash
6dc0bdbfa377eef1198063bccd41bd86a0858800
Author
Tomasz Orzechowski <[email protected]>
Date
over 2 years ago
Selected line
61
elif [[ "${THREADS}" =~ ^[1-9][0-9]?$ ]] ; then
Open commit View diff
61 elif [[ "${THREADS}" =~ ^[1-9][0-9]?$ ]] ; then
Peter over 3 years ago ff71024

[Helper] Backup and restore: Use latest tag for image

Full commit hash
ff7102468ee0db49d866301aecc03690f69f1191
Author
Peter <[email protected]>
Date
over 3 years ago
Selected line
62
  echo "Using ${THREADS} Thread(s) for this run."
Open commit View diff
62 echo "Using ${THREADS} Thread(s) for this run."
DerLinkman over 3 years ago b73d879

Removed thread prompt again. Added notice message

Full commit hash
b73d879f3c681593f763cbf1a0ed286e9edb17e8
Author
DerLinkman <[email protected]>
Date
over 3 years ago
Selected line
63
  echo "Notice: You can set the Thread count with the THREADS Variable before you run this script."
Open commit View diff
63 echo "Notice: You can set the Thread count with the THREADS Variable before you run this script."
same change b73d879

Removed thread prompt again. Added notice message

Full commit hash
b73d879f3c681593f763cbf1a0ed286e9edb17e8
Author
DerLinkman <[email protected]>
Date
over 3 years ago
Selected line
64
fi
Open commit View diff
64 fi
same change b73d879

Removed thread prompt again. Added notice message

Full commit hash
b73d879f3c681593f763cbf1a0ed286e9edb17e8
Author
DerLinkman <[email protected]>
Date
over 3 years ago
Selected line
65
Open commit View diff
65
andryyy over 6 years ago ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
66
if [ ! -f ${COMPOSE_FILE} ]; then
Open commit View diff
66 if [ ! -f ${COMPOSE_FILE} ]; then
same change ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
67
  echo "Compose file not found"
Open commit View diff
67 echo "Compose file not found"
same change ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
68
  exit 1
Open commit View diff
68 exit 1
same change ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
69
fi
Open commit View diff
69 fi
same change ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
70
Open commit View diff
70
andryyy almost 6 years ago d3a14f3

[Helper] Allow to run backup script everywhere

Full commit hash
d3a14f397c95751e3151c387bbe5400efa423179
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
71
if [ ! -f ${ENV_FILE} ]; then
Open commit View diff
71 if [ ! -f ${ENV_FILE} ]; then
same change d3a14f3

[Helper] Allow to run backup script everywhere

Full commit hash
d3a14f397c95751e3151c387bbe5400efa423179
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
72
  echo "Environment file not found"
Open commit View diff
72 echo "Environment file not found"
same change d3a14f3

[Helper] Allow to run backup script everywhere

Full commit hash
d3a14f397c95751e3151c387bbe5400efa423179
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
73
  exit 1
Open commit View diff
73 exit 1
same change d3a14f3

[Helper] Allow to run backup script everywhere

Full commit hash
d3a14f397c95751e3151c387bbe5400efa423179
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
74
fi
Open commit View diff
74 fi
same change d3a14f3

[Helper] Allow to run backup script everywhere

Full commit hash
d3a14f397c95751e3151c387bbe5400efa423179
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
75
Open commit View diff
75
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
76
echo "Using ${BACKUP_LOCATION} as backup/restore location."
Open commit View diff
76 echo "Using ${BACKUP_LOCATION} as backup/restore location."
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
77
echo
Open commit View diff
77 echo
andryyy over 6 years ago ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
78
Open commit View diff
78
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
79
source ${SCRIPT_DIR}/../mailcow.conf
Open commit View diff
79 source ${SCRIPT_DIR}/../mailcow.conf
andryyy over 6 years ago ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
80
Open commit View diff
80
same change ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
81
if [[ -z ${COMPOSE_PROJECT_NAME} ]]; then
Open commit View diff
81 if [[ -z ${COMPOSE_PROJECT_NAME} ]]; then
same change ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
82
  echo "Could not determine compose project name"
Open commit View diff
82 echo "Could not determine compose project name"
same change ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
83
  exit 1
Open commit View diff
83 exit 1
same change ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
84
else
Open commit View diff
84 else
same change ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
85
  echo "Found project name ${COMPOSE_PROJECT_NAME}"
Open commit View diff
85 echo "Found project name ${COMPOSE_PROJECT_NAME}"
andryyy over 6 years ago a71d991

[Helper] Fix for numbers in compose project name

Full commit hash
a71d991c122683f1a99ea8267d1b7a12af6a8512
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
86
  CMPS_PRJ=$(echo ${COMPOSE_PROJECT_NAME} | tr -cd "[0-9A-Za-z-_]")
Open commit View diff
86 CMPS_PRJ=$(echo ${COMPOSE_PROJECT_NAME} | tr -cd "[0-9A-Za-z-_]")
andryyy over 6 years ago ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
87
fi
Open commit View diff
87 fi
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
88
Open commit View diff
88
Niklas Meyer about 4 years ago 714511b

[Compose] Update to Docker Compose v2 (#4605)

Full commit hash
714511b0a84691f4c52f55ebbe982623f2512c80
Author
Niklas Meyer <[email protected]>
Date
about 4 years ago
Selected line
89
if grep --help 2>&1 | head -n 1 | grep -q -i "busybox"; then
Open commit View diff
89 if grep --help 2>&1 | head -n 1 | grep -q -i "busybox"; then
same change 714511b

[Compose] Update to Docker Compose v2 (#4605)

Full commit hash
714511b0a84691f4c52f55ebbe982623f2512c80
Author
Niklas Meyer <[email protected]>
Date
about 4 years ago
Selected line
90
  >&2 echo -e "\e[31mBusyBox grep detected on local system, please install GNU grep\e[0m"
Open commit View diff
90 >&2 echo -e "\e[31mBusyBox grep detected on local system, please install GNU grep\e[0m"
same change 714511b

[Compose] Update to Docker Compose v2 (#4605)

Full commit hash
714511b0a84691f4c52f55ebbe982623f2512c80
Author
Niklas Meyer <[email protected]>
Date
about 4 years ago
Selected line
91
  exit 1
Open commit View diff
91 exit 1
same change 714511b

[Compose] Update to Docker Compose v2 (#4605)

Full commit hash
714511b0a84691f4c52f55ebbe982623f2512c80
Author
Niklas Meyer <[email protected]>
Date
about 4 years ago
Selected line
92
fi
Open commit View diff
92 fi
same change 714511b

[Compose] Update to Docker Compose v2 (#4605)

Full commit hash
714511b0a84691f4c52f55ebbe982623f2512c80
Author
Niklas Meyer <[email protected]>
Date
about 4 years ago
Selected line
93
Open commit View diff
93
DerLinkman 7 months ago d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
94
# Add image prefetch function
Open commit View diff
94 # Add image prefetch function
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
95
function prefetch_image() {
Open commit View diff
95 function prefetch_image() {
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
96
  echo "Checking Docker image: ${DEBIAN_DOCKER_IMAGE}"
Open commit View diff
96 echo "Checking Docker image: ${DEBIAN_DOCKER_IMAGE}"
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
97
  
Open commit View diff
97
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
98
  # Get local image digest if it exists
Open commit View diff
98 # Get local image digest if it exists
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
99
  local local_digest=$(docker image inspect ${DEBIAN_DOCKER_IMAGE} --format='{{index .RepoDigests 0}}' 2>/dev/null | cut -d'@' -f2)
Open commit View diff
99 local local_digest=$(docker image inspect ${DEBIAN_DOCKER_IMAGE} --format='{{index .RepoDigests 0}}' 2>/dev/null | cut -d'@' -f2)
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
100
  
Open commit View diff
100
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
101
  # Get remote image digest without pulling
Open commit View diff
101 # Get remote image digest without pulling
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
102
  local remote_digest=$(docker manifest inspect ${DEBIAN_DOCKER_IMAGE} 2>/dev/null | grep -oP '"digest":\s*"\K[^"]+' | head -1)
Open commit View diff
102 local remote_digest=$(docker manifest inspect ${DEBIAN_DOCKER_IMAGE} 2>/dev/null | grep -oP '"digest":\s*"\K[^"]+' | head -1)
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
103
  
Open commit View diff
103
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
104
  if [[ -z "${remote_digest}" ]]; then
Open commit View diff
104 if [[ -z "${remote_digest}" ]]; then
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
105
    echo "Warning: Unable to check remote image"
Open commit View diff
105 echo "Warning: Unable to check remote image"
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
106
    if [[ -n "${local_digest}" ]]; then
Open commit View diff
106 if [[ -n "${local_digest}" ]]; then
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
107
      echo "Using cached version"
Open commit View diff
107 echo "Using cached version"
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
108
      echo
Open commit View diff
108 echo
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
109
      return 0
Open commit View diff
109 return 0
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
110
    else
Open commit View diff
110 else
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
111
      echo "Error: Image ${DEBIAN_DOCKER_IMAGE} not found locally or remotely"
Open commit View diff
111 echo "Error: Image ${DEBIAN_DOCKER_IMAGE} not found locally or remotely"
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
112
      exit 1
Open commit View diff
112 exit 1
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
113
    fi
Open commit View diff
113 fi
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
114
  fi
Open commit View diff
114 fi
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
115
  
Open commit View diff
115
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
116
  if [[ "${local_digest}" != "${remote_digest}" ]]; then
Open commit View diff
116 if [[ "${local_digest}" != "${remote_digest}" ]]; then
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
117
    echo "Image update available, pulling ${DEBIAN_DOCKER_IMAGE}"
Open commit View diff
117 echo "Image update available, pulling ${DEBIAN_DOCKER_IMAGE}"
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
118
    if docker pull ${DEBIAN_DOCKER_IMAGE} 2>/dev/null; then
Open commit View diff
118 if docker pull ${DEBIAN_DOCKER_IMAGE} 2>/dev/null; then
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
119
      echo "Successfully pulled ${DEBIAN_DOCKER_IMAGE}"
Open commit View diff
119 echo "Successfully pulled ${DEBIAN_DOCKER_IMAGE}"
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
120
    else
Open commit View diff
120 else
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
121
      echo "Error: Failed to pull ${DEBIAN_DOCKER_IMAGE}"
Open commit View diff
121 echo "Error: Failed to pull ${DEBIAN_DOCKER_IMAGE}"
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
122
      exit 1
Open commit View diff
122 exit 1
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
123
    fi
Open commit View diff
123 fi
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
124
  else
Open commit View diff
124 else
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
125
    echo "Image is up to date (${remote_digest:0:12}...)"
Open commit View diff
125 echo "Image is up to date (${remote_digest:0:12}...)"
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
126
  fi
Open commit View diff
126 fi
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
127
  echo
Open commit View diff
127 echo
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
128
}
Open commit View diff
128 }
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
129
Open commit View diff
129
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
130
# Prefetch the image early in the script
Open commit View diff
130 # Prefetch the image early in the script
same change d977ddb

backup: add image prefetch function to verify latest image is used

Full commit hash
d977ddb5017e27f817f09310dcb7056449cb88fd
Author
DerLinkman <[email protected]>
Date
7 months ago
Selected line
131
prefetch_image
Open commit View diff
131 prefetch_image
Niklas Meyer about 4 years ago 714511b

[Compose] Update to Docker Compose v2 (#4605)

Full commit hash
714511b0a84691f4c52f55ebbe982623f2512c80
Author
Niklas Meyer <[email protected]>
Date
about 4 years ago
Selected line
132
Open commit View diff
132
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
133
function backup() {
Open commit View diff
133 function backup() {
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
134
  DATE=$(date +"%Y-%m-%d-%H-%M-%S")
Open commit View diff
134 DATE=$(date +"%Y-%m-%d-%H-%M-%S")
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
135
  mkdir -p "${BACKUP_LOCATION}/mailcow-${DATE}"
Open commit View diff
135 mkdir -p "${BACKUP_LOCATION}/mailcow-${DATE}"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
136
  chmod 755 "${BACKUP_LOCATION}/mailcow-${DATE}"
Open commit View diff
136 chmod 755 "${BACKUP_LOCATION}/mailcow-${DATE}"
Maxim Baz almost 8 years ago ca18ebd

Always backup mailcow.conf

Full commit hash
ca18ebdb42682b2bb153156e06752231feb6f065
Author
Maxim Baz <[email protected]>
Date
almost 8 years ago
Selected line
137
  cp "${SCRIPT_DIR}/../mailcow.conf" "${BACKUP_LOCATION}/mailcow-${DATE}"
Open commit View diff
137 cp "${SCRIPT_DIR}/../mailcow.conf" "${BACKUP_LOCATION}/mailcow-${DATE}"
DerLinkman about 3 years ago accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
138
  touch "${BACKUP_LOCATION}/mailcow-${DATE}/.$ARCH"
Open commit View diff
138 touch "${BACKUP_LOCATION}/mailcow-${DATE}/.$ARCH"
DerLinkman about 4 years ago 6195b7c

[Backup Script]Check for docker and docker-compose in each step seperate

Full commit hash
6195b7c33450b7d38fcc82b2e15de5f246590a61
Author
DerLinkman <[email protected]>
Date
about 4 years ago
Selected line
139
  for bin in docker; do
Open commit View diff
139 for bin in docker; do
same change 6195b7c

[Backup Script]Check for docker and docker-compose in each step seperate

Full commit hash
6195b7c33450b7d38fcc82b2e15de5f246590a61
Author
DerLinkman <[email protected]>
Date
about 4 years ago
Selected line
140
  if [[ -z $(which ${bin}) ]]; then
Open commit View diff
140 if [[ -z $(which ${bin}) ]]; then
same change 6195b7c

[Backup Script]Check for docker and docker-compose in each step seperate

Full commit hash
6195b7c33450b7d38fcc82b2e15de5f246590a61
Author
DerLinkman <[email protected]>
Date
about 4 years ago
Selected line
141
    >&2 echo -e "\e[31mCannot find ${bin} in local PATH, exiting...\e[0m"
Open commit View diff
141 >&2 echo -e "\e[31mCannot find ${bin} in local PATH, exiting...\e[0m"
same change 6195b7c

[Backup Script]Check for docker and docker-compose in each step seperate

Full commit hash
6195b7c33450b7d38fcc82b2e15de5f246590a61
Author
DerLinkman <[email protected]>
Date
about 4 years ago
Selected line
142
    exit 1
Open commit View diff
142 exit 1
same change 6195b7c

[Backup Script]Check for docker and docker-compose in each step seperate

Full commit hash
6195b7c33450b7d38fcc82b2e15de5f246590a61
Author
DerLinkman <[email protected]>
Date
about 4 years ago
Selected line
143
  fi
Open commit View diff
143 fi
same change 6195b7c

[Backup Script]Check for docker and docker-compose in each step seperate

Full commit hash
6195b7c33450b7d38fcc82b2e15de5f246590a61
Author
DerLinkman <[email protected]>
Date
about 4 years ago
Selected line
144
  done
Open commit View diff
144 done
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
145
  while (( "$#" )); do
Open commit View diff
145 while (( "$#" )); do
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
146
    case "$1" in
Open commit View diff
146 case "$1" in
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
147
    vmail|all)
Open commit View diff
147 vmail|all)
Timo N over 6 years ago a63bad4

[Helper] Added name to backup and restore containers (#3477)

Full commit hash
a63bad41bf671610c0b748590ba69bae4d10fecf
Author
Timo N <[email protected]>
Date
over 6 years ago
Selected line
148
      docker run --name mailcow-backup --rm \
Open commit View diff
148 docker run --name mailcow-backup --rm \
Luca Kröger over 5 years ago d3e21aa

added selinux labels to backup_and_restore script (#3874)

Full commit hash
d3e21aae08f10b84db9dffdf2120b0379b3006ab
Author
Luca Kröger <[email protected]>
Date
over 5 years ago
Selected line
149
        -v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup:z \
Open commit View diff
149 -v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup:z \
Joachim Astel about 5 years ago b1adbb3

Update backup_and_restore.sh (#4098)

Full commit hash
b1adbb38e60c5550106cc1cb4d6749b926fbc761
Author
Joachim Astel <[email protected]>
Date
about 5 years ago
Selected line
150
        -v $(docker volume ls -qf name=^${CMPS_PRJ}_vmail-vol-1$):/vmail:ro,z \
Open commit View diff
150 -v $(docker volume ls -qf name=^${CMPS_PRJ}_vmail-vol-1$):/vmail:ro,z \
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
151
        ${DEBIAN_DOCKER_IMAGE} /bin/tar --warning='no-file-ignored' --use-compress-program="zstd --rsyncable -T${THREADS}" -Pcvpf /backup/backup_vmail.tar.zst /vmail
Open commit View diff
151 ${DEBIAN_DOCKER_IMAGE} /bin/tar --warning='no-file-ignored' --use-compress-program="zstd --rsyncable -T${THREADS}" -Pcvpf /backup/backup_vmail.tar.zst /vmail
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
152
      ;;&
Open commit View diff
152 ;;&
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
153
    crypt|all)
Open commit View diff
153 crypt|all)
Timo N over 6 years ago a63bad4

[Helper] Added name to backup and restore containers (#3477)

Full commit hash
a63bad41bf671610c0b748590ba69bae4d10fecf
Author
Timo N <[email protected]>
Date
over 6 years ago
Selected line
154
      docker run --name mailcow-backup --rm \
Open commit View diff
154 docker run --name mailcow-backup --rm \
Luca Kröger over 5 years ago d3e21aa

added selinux labels to backup_and_restore script (#3874)

Full commit hash
d3e21aae08f10b84db9dffdf2120b0379b3006ab
Author
Luca Kröger <[email protected]>
Date
over 5 years ago
Selected line
155
        -v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup:z \
Open commit View diff
155 -v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup:z \
Joachim Astel about 5 years ago b1adbb3

Update backup_and_restore.sh (#4098)

Full commit hash
b1adbb38e60c5550106cc1cb4d6749b926fbc761
Author
Joachim Astel <[email protected]>
Date
about 5 years ago
Selected line
156
        -v $(docker volume ls -qf name=^${CMPS_PRJ}_crypt-vol-1$):/crypt:ro,z \
Open commit View diff
156 -v $(docker volume ls -qf name=^${CMPS_PRJ}_crypt-vol-1$):/crypt:ro,z \
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
157
        ${DEBIAN_DOCKER_IMAGE} /bin/tar --warning='no-file-ignored' --use-compress-program="zstd --rsyncable -T${THREADS}" -Pcvpf /backup/backup_crypt.tar.zst /crypt
Open commit View diff
157 ${DEBIAN_DOCKER_IMAGE} /bin/tar --warning='no-file-ignored' --use-compress-program="zstd --rsyncable -T${THREADS}" -Pcvpf /backup/backup_crypt.tar.zst /crypt
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
158
      ;;&
Open commit View diff
158 ;;&
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
159
    redis|all)
Open commit View diff
159 redis|all)
FreddleSpl0it over 1 year ago 6831f94

[Redis] redis-cli suppress auth warning

Full commit hash
6831f94fdb209fb4a558f5f81fb7db340c856bd2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
160
      docker exec $(docker ps -qf name=redis-mailcow) redis-cli -a ${REDISPASS} --no-auth-warning save
Open commit View diff
160 docker exec $(docker ps -qf name=redis-mailcow) redis-cli -a ${REDISPASS} --no-auth-warning save
Timo N over 6 years ago a63bad4

[Helper] Added name to backup and restore containers (#3477)

Full commit hash
a63bad41bf671610c0b748590ba69bae4d10fecf
Author
Timo N <[email protected]>
Date
over 6 years ago
Selected line
161
      docker run --name mailcow-backup --rm \
Open commit View diff
161 docker run --name mailcow-backup --rm \
Luca Kröger over 5 years ago d3e21aa

added selinux labels to backup_and_restore script (#3874)

Full commit hash
d3e21aae08f10b84db9dffdf2120b0379b3006ab
Author
Luca Kröger <[email protected]>
Date
over 5 years ago
Selected line
162
        -v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup:z \
Open commit View diff
162 -v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup:z \
Joachim Astel about 5 years ago b1adbb3

Update backup_and_restore.sh (#4098)

Full commit hash
b1adbb38e60c5550106cc1cb4d6749b926fbc761
Author
Joachim Astel <[email protected]>
Date
about 5 years ago
Selected line
163
        -v $(docker volume ls -qf name=^${CMPS_PRJ}_redis-vol-1$):/redis:ro,z \
Open commit View diff
163 -v $(docker volume ls -qf name=^${CMPS_PRJ}_redis-vol-1$):/redis:ro,z \
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
164
        ${DEBIAN_DOCKER_IMAGE} /bin/tar --warning='no-file-ignored' --use-compress-program="zstd --rsyncable -T${THREADS}" -Pcvpf /backup/backup_redis.tar.zst /redis
Open commit View diff
164 ${DEBIAN_DOCKER_IMAGE} /bin/tar --warning='no-file-ignored' --use-compress-program="zstd --rsyncable -T${THREADS}" -Pcvpf /backup/backup_redis.tar.zst /redis
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
165
      ;;&
Open commit View diff
165 ;;&
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
166
    rspamd|all)
Open commit View diff
166 rspamd|all)
Timo N over 6 years ago a63bad4

[Helper] Added name to backup and restore containers (#3477)

Full commit hash
a63bad41bf671610c0b748590ba69bae4d10fecf
Author
Timo N <[email protected]>
Date
over 6 years ago
Selected line
167
      docker run --name mailcow-backup --rm \
Open commit View diff
167 docker run --name mailcow-backup --rm \
Luca Kröger over 5 years ago d3e21aa

added selinux labels to backup_and_restore script (#3874)

Full commit hash
d3e21aae08f10b84db9dffdf2120b0379b3006ab
Author
Luca Kröger <[email protected]>
Date
over 5 years ago
Selected line
168
        -v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup:z \
Open commit View diff
168 -v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup:z \
Joachim Astel about 5 years ago b1adbb3

Update backup_and_restore.sh (#4098)

Full commit hash
b1adbb38e60c5550106cc1cb4d6749b926fbc761
Author
Joachim Astel <[email protected]>
Date
about 5 years ago
Selected line
169
        -v $(docker volume ls -qf name=^${CMPS_PRJ}_rspamd-vol-1$):/rspamd:ro,z \
Open commit View diff
169 -v $(docker volume ls -qf name=^${CMPS_PRJ}_rspamd-vol-1$):/rspamd:ro,z \
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
170
        ${DEBIAN_DOCKER_IMAGE} /bin/tar --warning='no-file-ignored' --use-compress-program="zstd --rsyncable -T${THREADS}" -Pcvpf /backup/backup_rspamd.tar.zst /rspamd
Open commit View diff
170 ${DEBIAN_DOCKER_IMAGE} /bin/tar --warning='no-file-ignored' --use-compress-program="zstd --rsyncable -T${THREADS}" -Pcvpf /backup/backup_rspamd.tar.zst /rspamd
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
171
      ;;&
Open commit View diff
171 ;;&
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
172
    postfix|all)
Open commit View diff
172 postfix|all)
Timo N over 6 years ago a63bad4

[Helper] Added name to backup and restore containers (#3477)

Full commit hash
a63bad41bf671610c0b748590ba69bae4d10fecf
Author
Timo N <[email protected]>
Date
over 6 years ago
Selected line
173
      docker run --name mailcow-backup --rm \
Open commit View diff
173 docker run --name mailcow-backup --rm \
Luca Kröger over 5 years ago d3e21aa

added selinux labels to backup_and_restore script (#3874)

Full commit hash
d3e21aae08f10b84db9dffdf2120b0379b3006ab
Author
Luca Kröger <[email protected]>
Date
over 5 years ago
Selected line
174
        -v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup:z \
Open commit View diff
174 -v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup:z \
Joachim Astel about 5 years ago b1adbb3

Update backup_and_restore.sh (#4098)

Full commit hash
b1adbb38e60c5550106cc1cb4d6749b926fbc761
Author
Joachim Astel <[email protected]>
Date
about 5 years ago
Selected line
175
        -v $(docker volume ls -qf name=^${CMPS_PRJ}_postfix-vol-1$):/postfix:ro,z \
Open commit View diff
175 -v $(docker volume ls -qf name=^${CMPS_PRJ}_postfix-vol-1$):/postfix:ro,z \
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
176
        ${DEBIAN_DOCKER_IMAGE} /bin/tar --warning='no-file-ignored' --use-compress-program="zstd --rsyncable -T${THREADS}" -Pcvpf /backup/backup_postfix.tar.zst /postfix
Open commit View diff
176 ${DEBIAN_DOCKER_IMAGE} /bin/tar --warning='no-file-ignored' --use-compress-program="zstd --rsyncable -T${THREADS}" -Pcvpf /backup/backup_postfix.tar.zst /postfix
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
177
      ;;&
Open commit View diff
177 ;;&
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
178
    mysql|all)
Open commit View diff
178 mysql|all)
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
179
      SQLIMAGE=$(grep -iEo '(mysql|mariadb)\:.+' ${COMPOSE_FILE})
Open commit View diff
179 SQLIMAGE=$(grep -iEo '(mysql|mariadb)\:.+' ${COMPOSE_FILE})
andryyy over 6 years ago ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
180
      if [[ -z "${SQLIMAGE}" ]]; then
Open commit View diff
180 if [[ -z "${SQLIMAGE}" ]]; then
same change ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
181
        echo "Could not determine SQL image version, skipping backup..."
Open commit View diff
181 echo "Could not determine SQL image version, skipping backup..."
same change ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
182
        shift
Open commit View diff
182 shift
same change ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
183
        continue
Open commit View diff
183 continue
same change ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
184
      else
Open commit View diff
184 else
same change ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
185
        echo "Using SQL image ${SQLIMAGE}, starting..."
Open commit View diff
185 echo "Using SQL image ${SQLIMAGE}, starting..."
Timo N over 6 years ago a63bad4

[Helper] Added name to backup and restore containers (#3477)

Full commit hash
a63bad41bf671610c0b748590ba69bae4d10fecf
Author
Timo N <[email protected]>
Date
over 6 years ago
Selected line
186
        docker run --name mailcow-backup --rm \
Open commit View diff
186 docker run --name mailcow-backup --rm \
Joachim Astel about 5 years ago b1adbb3

Update backup_and_restore.sh (#4098)

Full commit hash
b1adbb38e60c5550106cc1cb4d6749b926fbc761
Author
Joachim Astel <[email protected]>
Date
about 5 years ago
Selected line
187
          --network $(docker network ls -qf name=^${CMPS_PRJ}_mailcow-network$) \
Open commit View diff
187 --network $(docker network ls -qf name=^${CMPS_PRJ}_mailcow-network$) \
same change b1adbb3

Update backup_and_restore.sh (#4098)

Full commit hash
b1adbb38e60c5550106cc1cb4d6749b926fbc761
Author
Joachim Astel <[email protected]>
Date
about 5 years ago
Selected line
188
          -v $(docker volume ls -qf name=^${CMPS_PRJ}_mysql-vol-1$):/var/lib/mysql/:ro,z \
Open commit View diff
188 -v $(docker volume ls -qf name=^${CMPS_PRJ}_mysql-vol-1$):/var/lib/mysql/:ro,z \
Sven Gottwald over 5 years ago f11660a

[Helper] Update backup_and_restore.sh (#4005)

Full commit hash
f11660a5d8209ff78b047196a39e99c9a31f3c1e
Author
Sven Gottwald <[email protected]>
Date
over 5 years ago
Selected line
189
          -t --entrypoint= \
Open commit View diff
189 -t --entrypoint= \
andryyy over 5 years ago 4692826

[Backup Helper] Possible workaround for #3913

Full commit hash
46928269bbdf7c113b517a8fe2c65c7be4d01aee
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
190
          --sysctl net.ipv6.conf.all.disable_ipv6=1 \
Open commit View diff
190 --sysctl net.ipv6.conf.all.disable_ipv6=1 \
Luca Kröger over 5 years ago d3e21aa

added selinux labels to backup_and_restore script (#3874)

Full commit hash
d3e21aae08f10b84db9dffdf2120b0379b3006ab
Author
Luca Kröger <[email protected]>
Date
over 5 years ago
Selected line
191
          -v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup:z \
Open commit View diff
191 -v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup:z \
andryyy over 6 years ago 07c7da2

[Helper] Create tar archives for SQL backups

Full commit hash
07c7da2821c1c45ee4219ac6f4d547763e109675
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
192
          ${SQLIMAGE} /bin/sh -c "mariabackup --host mysql --user root --password ${DBROOT} --backup --rsync --target-dir=/backup_mariadb ; \
Open commit View diff
192 ${SQLIMAGE} /bin/sh -c "mariabackup --host mysql --user root --password ${DBROOT} --backup --rsync --target-dir=/backup_mariadb ; \
same change 07c7da2

[Helper] Create tar archives for SQL backups

Full commit hash
07c7da2821c1c45ee4219ac6f4d547763e109675
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
193
          mariabackup --prepare --target-dir=/backup_mariadb ; \
Open commit View diff
193 mariabackup --prepare --target-dir=/backup_mariadb ; \
andryyy over 5 years ago 100650a

[Helper] Use 999:999 as owner instead of mysql:mysql

Full commit hash
100650a25e61b073bf44e5aeb916a00f9b3fc177
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
194
          chown -R 999:999 /backup_mariadb ; \
Open commit View diff
194 chown -R 999:999 /backup_mariadb ; \
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
195
          /bin/tar --warning='no-file-ignored' --use-compress-program='zstd --rsyncable' -Pcvpf /backup/backup_mariadb.tar.zst /backup_mariadb ;"
Open commit View diff
195 /bin/tar --warning='no-file-ignored' --use-compress-program='zstd --rsyncable' -Pcvpf /backup/backup_mariadb.tar.zst /backup_mariadb ;"
andryyy over 6 years ago ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
196
      fi
Open commit View diff
196 fi
andryyy over 6 years ago ccd9d93

[Helper] New parameter --delete-days to delete backups older than n days

Full commit hash
ccd9d934d6350df4a98ce8d67433e7b36fc49b74
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
197
      ;;&
Open commit View diff
197 ;;&
same change ccd9d93

[Helper] New parameter --delete-days to delete backups older than n days

Full commit hash
ccd9d934d6350df4a98ce8d67433e7b36fc49b74
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
198
    --delete-days)
Open commit View diff
198 --delete-days)
same change ccd9d93

[Helper] New parameter --delete-days to delete backups older than n days

Full commit hash
ccd9d934d6350df4a98ce8d67433e7b36fc49b74
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
199
      shift
Open commit View diff
199 shift
same change ccd9d93

[Helper] New parameter --delete-days to delete backups older than n days

Full commit hash
ccd9d934d6350df4a98ce8d67433e7b36fc49b74
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
200
      if [[ "${1}" =~ ^[0-9]+$ ]]; then
Open commit View diff
200 if [[ "${1}" =~ ^[0-9]+$ ]]; then
Florian Lindner about 6 years ago 36890de

Make delete-days delete only files with mailcow-* in backup location (#3609)

Full commit hash
36890de7f42aa328ce7d74443c6ca2479c3d2683
Author
Florian Lindner <[email protected]>
Date
about 6 years ago
Selected line
201
        find ${BACKUP_LOCATION}/mailcow-* -maxdepth 0 -mmin +$((${1}*60*24)) -exec rm -rvf {} \;
Open commit View diff
201 find ${BACKUP_LOCATION}/mailcow-* -maxdepth 0 -mmin +$((${1}*60*24)) -exec rm -rvf {} \;
andryyy over 6 years ago ccd9d93

[Helper] New parameter --delete-days to delete backups older than n days

Full commit hash
ccd9d934d6350df4a98ce8d67433e7b36fc49b74
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
202
      else
Open commit View diff
202 else
same change ccd9d93

[Helper] New parameter --delete-days to delete backups older than n days

Full commit hash
ccd9d934d6350df4a98ce8d67433e7b36fc49b74
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
203
        echo "Parameter of --delete-days is not a number."
Open commit View diff
203 echo "Parameter of --delete-days is not a number."
same change ccd9d93

[Helper] New parameter --delete-days to delete backups older than n days

Full commit hash
ccd9d934d6350df4a98ce8d67433e7b36fc49b74
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
204
      fi
Open commit View diff
204 fi
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
205
      ;;
Open commit View diff
205 ;;
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
206
    esac
Open commit View diff
206 esac
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
207
    shift
Open commit View diff
207 shift
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
208
  done
Open commit View diff
208 done
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
209
}
Open commit View diff
209 }
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
210
Open commit View diff
210
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
211
function get_archive_info() {
Open commit View diff
211 function get_archive_info() {
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
212
  local backup_name="$1"
Open commit View diff
212 local backup_name="$1"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
213
  local location="$2"
Open commit View diff
213 local location="$2"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
214
Open commit View diff
214
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
215
  if [[ -f "${location}/${backup_name}.tar.zst" ]]; then
Open commit View diff
215 if [[ -f "${location}/${backup_name}.tar.zst" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
216
    echo "${backup_name}.tar.zst|zstd -d -T${THREADS}"
Open commit View diff
216 echo "${backup_name}.tar.zst|zstd -d -T${THREADS}"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
217
  elif [[ -f "${location}/${backup_name}.tar.gz" ]]; then
Open commit View diff
217 elif [[ -f "${location}/${backup_name}.tar.gz" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
218
    echo "${backup_name}.tar.gz|pigz -d -p ${THREADS}"
Open commit View diff
218 echo "${backup_name}.tar.gz|pigz -d -p ${THREADS}"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
219
  else
Open commit View diff
219 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
220
    echo ""
Open commit View diff
220 echo ""
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
221
  fi
Open commit View diff
221 fi
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
222
}
Open commit View diff
222 }
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
223
Open commit View diff
223
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
224
function restore() {
Open commit View diff
224 function restore() {
DerLinkman almost 4 years ago 925b220

Compose Version detection implemented in Backup script

Full commit hash
925b2209058c29a7c5bc5c86c27296826a3670d8
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
225
  for bin in docker; do
Open commit View diff
225 for bin in docker; do
DerLinkman about 4 years ago 6195b7c

[Backup Script]Check for docker and docker-compose in each step seperate

Full commit hash
6195b7c33450b7d38fcc82b2e15de5f246590a61
Author
DerLinkman <[email protected]>
Date
about 4 years ago
Selected line
226
  if [[ -z $(which ${bin}) ]]; then
Open commit View diff
226 if [[ -z $(which ${bin}) ]]; then
same change 6195b7c

[Backup Script]Check for docker and docker-compose in each step seperate

Full commit hash
6195b7c33450b7d38fcc82b2e15de5f246590a61
Author
DerLinkman <[email protected]>
Date
about 4 years ago
Selected line
227
    >&2 echo -e "\e[31mCannot find ${bin} in local PATH, exiting...\e[0m"
Open commit View diff
227 >&2 echo -e "\e[31mCannot find ${bin} in local PATH, exiting...\e[0m"
same change 6195b7c

[Backup Script]Check for docker and docker-compose in each step seperate

Full commit hash
6195b7c33450b7d38fcc82b2e15de5f246590a61
Author
DerLinkman <[email protected]>
Date
about 4 years ago
Selected line
228
    exit 1
Open commit View diff
228 exit 1
same change 6195b7c

[Backup Script]Check for docker and docker-compose in each step seperate

Full commit hash
6195b7c33450b7d38fcc82b2e15de5f246590a61
Author
DerLinkman <[email protected]>
Date
about 4 years ago
Selected line
229
  fi
Open commit View diff
229 fi
DerLinkman almost 4 years ago 925b220

Compose Version detection implemented in Backup script

Full commit hash
925b2209058c29a7c5bc5c86c27296826a3670d8
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
230
  done
Open commit View diff
230 done
same change 925b220

Compose Version detection implemented in Backup script

Full commit hash
925b2209058c29a7c5bc5c86c27296826a3670d8
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
231
Open commit View diff
231
same change 925b220

Compose Version detection implemented in Backup script

Full commit hash
925b2209058c29a7c5bc5c86c27296826a3670d8
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
232
  if [ "${DOCKER_COMPOSE_VERSION}" == "native" ]; then
Open commit View diff
232 if [ "${DOCKER_COMPOSE_VERSION}" == "native" ]; then
same change 925b220

Compose Version detection implemented in Backup script

Full commit hash
925b2209058c29a7c5bc5c86c27296826a3670d8
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
233
  COMPOSE_COMMAND="docker compose"
Open commit View diff
233 COMPOSE_COMMAND="docker compose"
same change 925b220

Compose Version detection implemented in Backup script

Full commit hash
925b2209058c29a7c5bc5c86c27296826a3670d8
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
234
Open commit View diff
234
same change 925b220

Compose Version detection implemented in Backup script

Full commit hash
925b2209058c29a7c5bc5c86c27296826a3670d8
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
235
  elif [ "${DOCKER_COMPOSE_VERSION}" == "standalone" ]; then
Open commit View diff
235 elif [ "${DOCKER_COMPOSE_VERSION}" == "standalone" ]; then
same change 925b220

Compose Version detection implemented in Backup script

Full commit hash
925b2209058c29a7c5bc5c86c27296826a3670d8
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
236
    COMPOSE_COMMAND="docker-compose"
Open commit View diff
236 COMPOSE_COMMAND="docker-compose"
Peter over 3 years ago ff71024

[Helper] Backup and restore: Use latest tag for image

Full commit hash
ff7102468ee0db49d866301aecc03690f69f1191
Author
Peter <[email protected]>
Date
over 3 years ago
Selected line
237
Open commit View diff
237
DerLinkman almost 4 years ago 925b220

Compose Version detection implemented in Backup script

Full commit hash
925b2209058c29a7c5bc5c86c27296826a3670d8
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
238
  else
Open commit View diff
238 else
same change 925b220

Compose Version detection implemented in Backup script

Full commit hash
925b2209058c29a7c5bc5c86c27296826a3670d8
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
239
    echo -e "\e[31mCan not read DOCKER_COMPOSE_VERSION variable from mailcow.conf! Is your mailcow up to date? Exiting...\e[0m"
Open commit View diff
239 echo -e "\e[31mCan not read DOCKER_COMPOSE_VERSION variable from mailcow.conf! Is your mailcow up to date? Exiting...\e[0m"
same change 925b220

Compose Version detection implemented in Backup script

Full commit hash
925b2209058c29a7c5bc5c86c27296826a3670d8
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
240
    exit 1
Open commit View diff
240 exit 1
same change 925b220

Compose Version detection implemented in Backup script

Full commit hash
925b2209058c29a7c5bc5c86c27296826a3670d8
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
241
  fi
Open commit View diff
241 fi
same change 925b220

Compose Version detection implemented in Backup script

Full commit hash
925b2209058c29a7c5bc5c86c27296826a3670d8
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
242
Open commit View diff
242
andryyy over 6 years ago ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
243
  echo
Open commit View diff
243 echo
same change ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
244
  echo "Stopping watchdog-mailcow..."
Open commit View diff
244 echo "Stopping watchdog-mailcow..."
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
245
  docker stop $(docker ps -qf name=watchdog-mailcow)
Open commit View diff
245 docker stop $(docker ps -qf name=watchdog-mailcow)
andryyy over 6 years ago ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
246
  echo
Open commit View diff
246 echo
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
247
  RESTORE_LOCATION="${1}"
Open commit View diff
247 RESTORE_LOCATION="${1}"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
248
  shift
Open commit View diff
248 shift
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
249
  while (( "$#" )); do
Open commit View diff
249 while (( "$#" )); do
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
250
    case "$1" in
Open commit View diff
250 case "$1" in
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
251
    vmail)
Open commit View diff
251 vmail)
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
252
      docker stop $(docker ps -qf name=dovecot-mailcow)
Open commit View diff
252 docker stop $(docker ps -qf name=dovecot-mailcow)
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
253
      ARCHIVE_INFO=$(get_archive_info "backup_vmail" "${RESTORE_LOCATION}")
Open commit View diff
253 ARCHIVE_INFO=$(get_archive_info "backup_vmail" "${RESTORE_LOCATION}")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
254
      if [[ -z "${ARCHIVE_INFO}" ]]; then
Open commit View diff
254 if [[ -z "${ARCHIVE_INFO}" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
255
        echo -e "\e[31mError: No backup file found for vmail (searched for .tar.zst and .tar.gz)\e[0m"
Open commit View diff
255 echo -e "\e[31mError: No backup file found for vmail (searched for .tar.zst and .tar.gz)\e[0m"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
256
      else
Open commit View diff
256 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
257
        ARCHIVE_FILE=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f1)
Open commit View diff
257 ARCHIVE_FILE=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f1)
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
258
        DECOMPRESS_PROG=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f2)
Open commit View diff
258 DECOMPRESS_PROG=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f2)
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
259
        docker run -i --name mailcow-backup --rm \
Open commit View diff
259 docker run -i --name mailcow-backup --rm \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
260
          -v ${RESTORE_LOCATION}:/backup:z \
Open commit View diff
260 -v ${RESTORE_LOCATION}:/backup:z \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
261
          -v $(docker volume ls -qf name=^${CMPS_PRJ}_vmail-vol-1$):/vmail:z \
Open commit View diff
261 -v $(docker volume ls -qf name=^${CMPS_PRJ}_vmail-vol-1$):/vmail:z \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
262
          ${DEBIAN_DOCKER_IMAGE} /bin/tar --use-compress-program="${DECOMPRESS_PROG}" -Pxvf /backup/${ARCHIVE_FILE}
Open commit View diff
262 ${DEBIAN_DOCKER_IMAGE} /bin/tar --use-compress-program="${DECOMPRESS_PROG}" -Pxvf /backup/${ARCHIVE_FILE}
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
263
      fi
Open commit View diff
263 fi
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
264
      docker start $(docker ps -aqf name=dovecot-mailcow)
Open commit View diff
264 docker start $(docker ps -aqf name=dovecot-mailcow)
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
265
      echo
Open commit View diff
265 echo
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
266
      echo "In most cases it is not required to run a full resync, you can run the command printed below at any time after testing wether the restore process broke a mailbox:"
Open commit View diff
266 echo "In most cases it is not required to run a full resync, you can run the command printed below at any time after testing wether the restore process broke a mailbox:"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
267
      echo
Open commit View diff
267 echo
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
268
      echo "docker exec $(docker ps -qf name=dovecot-mailcow) doveadm force-resync -A '*'"
Open commit View diff
268 echo "docker exec $(docker ps -qf name=dovecot-mailcow) doveadm force-resync -A '*'"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
269
      echo
Open commit View diff
269 echo
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
270
      read -p "Force a resync now? [y|N] " FORCE_RESYNC
Open commit View diff
270 read -p "Force a resync now? [y|N] " FORCE_RESYNC
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
271
      if [[ ${FORCE_RESYNC,,} =~ ^(yes|y)$ ]]; then
Open commit View diff
271 if [[ ${FORCE_RESYNC,,} =~ ^(yes|y)$ ]]; then
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
272
        docker exec $(docker ps -qf name=dovecot-mailcow) doveadm force-resync -A '*'
Open commit View diff
272 docker exec $(docker ps -qf name=dovecot-mailcow) doveadm force-resync -A '*'
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
273
      else
Open commit View diff
273 else
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
274
        echo "OK, skipped."
Open commit View diff
274 echo "OK, skipped."
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
275
      fi
Open commit View diff
275 fi
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
276
      ;;
Open commit View diff
276 ;;
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
277
    redis)
Open commit View diff
277 redis)
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
278
      docker stop $(docker ps -qf name=redis-mailcow)
Open commit View diff
278 docker stop $(docker ps -qf name=redis-mailcow)
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
279
      ARCHIVE_INFO=$(get_archive_info "backup_redis" "${RESTORE_LOCATION}")
Open commit View diff
279 ARCHIVE_INFO=$(get_archive_info "backup_redis" "${RESTORE_LOCATION}")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
280
      if [[ -z "${ARCHIVE_INFO}" ]]; then
Open commit View diff
280 if [[ -z "${ARCHIVE_INFO}" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
281
        echo -e "\e[31mError: No backup file found for redis (searched for .tar.zst and .tar.gz)\e[0m"
Open commit View diff
281 echo -e "\e[31mError: No backup file found for redis (searched for .tar.zst and .tar.gz)\e[0m"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
282
      else
Open commit View diff
282 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
283
        ARCHIVE_FILE=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f1)
Open commit View diff
283 ARCHIVE_FILE=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f1)
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
284
        DECOMPRESS_PROG=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f2)
Open commit View diff
284 DECOMPRESS_PROG=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f2)
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
285
        docker run -i --name mailcow-backup --rm \
Open commit View diff
285 docker run -i --name mailcow-backup --rm \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
286
          -v ${RESTORE_LOCATION}:/backup:z \
Open commit View diff
286 -v ${RESTORE_LOCATION}:/backup:z \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
287
          -v $(docker volume ls -qf name=^${CMPS_PRJ}_redis-vol-1$):/redis:z \
Open commit View diff
287 -v $(docker volume ls -qf name=^${CMPS_PRJ}_redis-vol-1$):/redis:z \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
288
          ${DEBIAN_DOCKER_IMAGE} /bin/tar --use-compress-program="${DECOMPRESS_PROG}" -Pxvf /backup/${ARCHIVE_FILE}
Open commit View diff
288 ${DEBIAN_DOCKER_IMAGE} /bin/tar --use-compress-program="${DECOMPRESS_PROG}" -Pxvf /backup/${ARCHIVE_FILE}
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
289
      fi
Open commit View diff
289 fi
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
290
      docker start $(docker ps -aqf name=redis-mailcow)
Open commit View diff
290 docker start $(docker ps -aqf name=redis-mailcow)
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
291
      ;;
Open commit View diff
291 ;;
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
292
    crypt)
Open commit View diff
292 crypt)
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
293
      docker stop $(docker ps -qf name=dovecot-mailcow)
Open commit View diff
293 docker stop $(docker ps -qf name=dovecot-mailcow)
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
294
      ARCHIVE_INFO=$(get_archive_info "backup_crypt" "${RESTORE_LOCATION}")
Open commit View diff
294 ARCHIVE_INFO=$(get_archive_info "backup_crypt" "${RESTORE_LOCATION}")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
295
      if [[ -z "${ARCHIVE_INFO}" ]]; then
Open commit View diff
295 if [[ -z "${ARCHIVE_INFO}" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
296
        echo -e "\e[31mError: No backup file found for crypt (searched for .tar.zst and .tar.gz)\e[0m"
Open commit View diff
296 echo -e "\e[31mError: No backup file found for crypt (searched for .tar.zst and .tar.gz)\e[0m"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
297
      else
Open commit View diff
297 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
298
        ARCHIVE_FILE=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f1)
Open commit View diff
298 ARCHIVE_FILE=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f1)
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
299
        DECOMPRESS_PROG=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f2)
Open commit View diff
299 DECOMPRESS_PROG=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f2)
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
300
        docker run -i --name mailcow-backup --rm \
Open commit View diff
300 docker run -i --name mailcow-backup --rm \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
301
          -v ${RESTORE_LOCATION}:/backup:z \
Open commit View diff
301 -v ${RESTORE_LOCATION}:/backup:z \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
302
          -v $(docker volume ls -qf name=^${CMPS_PRJ}_crypt-vol-1$):/crypt:z \
Open commit View diff
302 -v $(docker volume ls -qf name=^${CMPS_PRJ}_crypt-vol-1$):/crypt:z \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
303
          ${DEBIAN_DOCKER_IMAGE} /bin/tar --use-compress-program="${DECOMPRESS_PROG}" -Pxvf /backup/${ARCHIVE_FILE}
Open commit View diff
303 ${DEBIAN_DOCKER_IMAGE} /bin/tar --use-compress-program="${DECOMPRESS_PROG}" -Pxvf /backup/${ARCHIVE_FILE}
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
304
      fi
Open commit View diff
304 fi
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
305
      docker start $(docker ps -aqf name=dovecot-mailcow)
Open commit View diff
305 docker start $(docker ps -aqf name=dovecot-mailcow)
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
306
      ;;
Open commit View diff
306 ;;
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
307
    rspamd)
Open commit View diff
307 rspamd)
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
308
      ARCHIVE_INFO=$(get_archive_info "backup_rspamd" "${RESTORE_LOCATION}")
Open commit View diff
308 ARCHIVE_INFO=$(get_archive_info "backup_rspamd" "${RESTORE_LOCATION}")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
309
      if [[ -z "${ARCHIVE_INFO}" ]]; then
Open commit View diff
309 if [[ -z "${ARCHIVE_INFO}" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
310
        echo -e "\e[31mError: No backup file found for rspamd (searched for .tar.zst and .tar.gz)\e[0m"
Open commit View diff
310 echo -e "\e[31mError: No backup file found for rspamd (searched for .tar.zst and .tar.gz)\e[0m"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
311
      elif [[ $(find "${RESTORE_LOCATION}" \( -name '*x86*' -o -name '*aarch*' \) -exec basename {} \; | sed 's/^\.//' | sed 's/^\.//') == "" ]]; then
Open commit View diff
311 elif [[ $(find "${RESTORE_LOCATION}" \( -name '*x86*' -o -name '*aarch*' \) -exec basename {} \; | sed 's/^\.//' | sed 's/^\.//') == "" ]]; then
DerLinkman about 3 years ago accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
312
        echo -e "\e[33mCould not find a architecture signature of the loaded backup... Maybe the backup was done before the multiarch update?"
Open commit View diff
312 echo -e "\e[33mCould not find a architecture signature of the loaded backup... Maybe the backup was done before the multiarch update?"
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
313
        sleep 2
Open commit View diff
313 sleep 2
Bruno Antunes over 1 year ago 65d872c

Fix tiny typo

Full commit hash
65d872cc1487380e488e26d27a26154a12753f5f
Author
Bruno Antunes <[email protected]>
Date
over 1 year ago
Selected line
314
        echo -e "Continuing anyhow. If rspamd is crashing upon boot try remove the rspamd volume with docker volume rm ${CMPS_PRJ}_rspamd-vol-1 after you've stopped the stack.\e[0m"
Open commit View diff
314 echo -e "Continuing anyhow. If rspamd is crashing upon boot try remove the rspamd volume with docker volume rm ${CMPS_PRJ}_rspamd-vol-1 after you've stopped the stack.\e[0m"
DerLinkman about 3 years ago accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
315
        sleep 2
Open commit View diff
315 sleep 2
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
316
        docker stop $(docker ps -qf name=rspamd-mailcow)
Open commit View diff
316 docker stop $(docker ps -qf name=rspamd-mailcow)
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
317
        ARCHIVE_FILE=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f1)
Open commit View diff
317 ARCHIVE_FILE=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f1)
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
318
        DECOMPRESS_PROG=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f2)
Open commit View diff
318 DECOMPRESS_PROG=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f2)
Daniel Muehlbachler-Pietrzykowski about 2 years ago ffeeb17

restore: remove tty requirement from restore process to allow for automated restores

Full commit hash
ffeeb179e1894bf83513fe9630f47f27bec69ef7
Author
Daniel Muehlbachler-Pietrzykowski <[email protected]>
Date
about 2 years ago
Selected line
319
        docker run -i --name mailcow-backup --rm \
Open commit View diff
319 docker run -i --name mailcow-backup --rm \
DerLinkman about 3 years ago accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
320
          -v ${RESTORE_LOCATION}:/backup:z \
Open commit View diff
320 -v ${RESTORE_LOCATION}:/backup:z \
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
321
          -v $(docker volume ls -qf name=^${CMPS_PRJ}_rspamd-vol-1$):/rspamd:z \
Open commit View diff
321 -v $(docker volume ls -qf name=^${CMPS_PRJ}_rspamd-vol-1$):/rspamd:z \
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
322
          ${DEBIAN_DOCKER_IMAGE} /bin/tar --use-compress-program="${DECOMPRESS_PROG}" -Pxvf /backup/${ARCHIVE_FILE}
Open commit View diff
322 ${DEBIAN_DOCKER_IMAGE} /bin/tar --use-compress-program="${DECOMPRESS_PROG}" -Pxvf /backup/${ARCHIVE_FILE}
DerLinkman about 3 years ago accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
323
        docker start $(docker ps -aqf name=rspamd-mailcow)
Open commit View diff
323 docker start $(docker ps -aqf name=rspamd-mailcow)
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
324
      elif [[ $ARCH != $(find "${RESTORE_LOCATION}" \( -name '*x86*' -o -name '*aarch*' \) -exec basename {} \; | sed 's/^\.//' | sed 's/^\.//') ]]; then
Open commit View diff
324 elif [[ $ARCH != $(find "${RESTORE_LOCATION}" \( -name '*x86*' -o -name '*aarch*' \) -exec basename {} \; | sed 's/^\.//' | sed 's/^\.//') ]]; then
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
325
        echo -e "\e[31mThe Architecture of the backed up mailcow OS is different then your restoring mailcow OS..."
Open commit View diff
325 echo -e "\e[31mThe Architecture of the backed up mailcow OS is different then your restoring mailcow OS..."
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
326
        sleep 2
Open commit View diff
326 sleep 2
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
327
        echo -e "Skipping rspamd due to compatibility issues!\e[0m"
Open commit View diff
327 echo -e "Skipping rspamd due to compatibility issues!\e[0m"
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
328
      else
Open commit View diff
328 else
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
329
        docker stop $(docker ps -qf name=rspamd-mailcow)
Open commit View diff
329 docker stop $(docker ps -qf name=rspamd-mailcow)
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
330
        ARCHIVE_FILE=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f1)
Open commit View diff
330 ARCHIVE_FILE=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f1)
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
331
        DECOMPRESS_PROG=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f2)
Open commit View diff
331 DECOMPRESS_PROG=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f2)
Daniel Muehlbachler-Pietrzykowski about 2 years ago ffeeb17

restore: remove tty requirement from restore process to allow for automated restores

Full commit hash
ffeeb179e1894bf83513fe9630f47f27bec69ef7
Author
Daniel Muehlbachler-Pietrzykowski <[email protected]>
Date
about 2 years ago
Selected line
332
        docker run -i --name mailcow-backup --rm \
Open commit View diff
332 docker run -i --name mailcow-backup --rm \
DerLinkman about 3 years ago accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
333
          -v ${RESTORE_LOCATION}:/backup:z \
Open commit View diff
333 -v ${RESTORE_LOCATION}:/backup:z \
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
334
          -v $(docker volume ls -qf name=^${CMPS_PRJ}_rspamd-vol-1$):/rspamd:z \
Open commit View diff
334 -v $(docker volume ls -qf name=^${CMPS_PRJ}_rspamd-vol-1$):/rspamd:z \
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
335
          ${DEBIAN_DOCKER_IMAGE} /bin/tar --use-compress-program="${DECOMPRESS_PROG}" -Pxvf /backup/${ARCHIVE_FILE}
Open commit View diff
335 ${DEBIAN_DOCKER_IMAGE} /bin/tar --use-compress-program="${DECOMPRESS_PROG}" -Pxvf /backup/${ARCHIVE_FILE}
DerLinkman about 3 years ago accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
336
        docker start $(docker ps -aqf name=rspamd-mailcow)
Open commit View diff
336 docker start $(docker ps -aqf name=rspamd-mailcow)
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
337
      fi
Open commit View diff
337 fi
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
338
      ;;
Open commit View diff
338 ;;
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
339
    postfix)
Open commit View diff
339 postfix)
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
340
      docker stop $(docker ps -qf name=postfix-mailcow)
Open commit View diff
340 docker stop $(docker ps -qf name=postfix-mailcow)
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
341
      ARCHIVE_INFO=$(get_archive_info "backup_postfix" "${RESTORE_LOCATION}")
Open commit View diff
341 ARCHIVE_INFO=$(get_archive_info "backup_postfix" "${RESTORE_LOCATION}")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
342
      if [[ -z "${ARCHIVE_INFO}" ]]; then
Open commit View diff
342 if [[ -z "${ARCHIVE_INFO}" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
343
        echo -e "\e[31mError: No backup file found for postfix (searched for .tar.zst and .tar.gz)\e[0m"
Open commit View diff
343 echo -e "\e[31mError: No backup file found for postfix (searched for .tar.zst and .tar.gz)\e[0m"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
344
      else
Open commit View diff
344 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
345
        ARCHIVE_FILE=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f1)
Open commit View diff
345 ARCHIVE_FILE=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f1)
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
346
        DECOMPRESS_PROG=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f2)
Open commit View diff
346 DECOMPRESS_PROG=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f2)
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
347
        docker run -i --name mailcow-backup --rm \
Open commit View diff
347 docker run -i --name mailcow-backup --rm \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
348
          -v ${RESTORE_LOCATION}:/backup:z \
Open commit View diff
348 -v ${RESTORE_LOCATION}:/backup:z \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
349
          -v $(docker volume ls -qf name=^${CMPS_PRJ}_postfix-vol-1$):/postfix:z \
Open commit View diff
349 -v $(docker volume ls -qf name=^${CMPS_PRJ}_postfix-vol-1$):/postfix:z \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
350
          ${DEBIAN_DOCKER_IMAGE} /bin/tar --use-compress-program="${DECOMPRESS_PROG}" -Pxvf /backup/${ARCHIVE_FILE}
Open commit View diff
350 ${DEBIAN_DOCKER_IMAGE} /bin/tar --use-compress-program="${DECOMPRESS_PROG}" -Pxvf /backup/${ARCHIVE_FILE}
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
351
      fi
Open commit View diff
351 fi
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
352
      docker start $(docker ps -aqf name=postfix-mailcow)
Open commit View diff
352 docker start $(docker ps -aqf name=postfix-mailcow)
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
353
      ;;
Open commit View diff
353 ;;
andryyy about 6 years ago e01c24a

[Helper] Fix mariadb restore when "all" is selected, thanks to @takigama

Full commit hash
e01c24aa051e07c5b666f262b8275b3f36a8977d
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
354
    mysql|mariadb)
Open commit View diff
354 mysql|mariadb)
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
355
      SQLIMAGE=$(grep -iEo '(mysql|mariadb)\:.+' ${COMPOSE_FILE})
Open commit View diff
355 SQLIMAGE=$(grep -iEo '(mysql|mariadb)\:.+' ${COMPOSE_FILE})
andryyy over 6 years ago 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
356
      if [[ -z "${SQLIMAGE}" ]]; then
Open commit View diff
356 if [[ -z "${SQLIMAGE}" ]]; then
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
357
        echo "Could not determine SQL image version, skipping restore..."
Open commit View diff
357 echo "Could not determine SQL image version, skipping restore..."
andryyy over 6 years ago ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
358
        shift
Open commit View diff
358 shift
same change ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
359
        continue
Open commit View diff
359 continue
andryyy over 6 years ago 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
360
      elif [ ! -f "${RESTORE_LOCATION}/mailcow.conf" ]; then
Open commit View diff
360 elif [ ! -f "${RESTORE_LOCATION}/mailcow.conf" ]; then
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
361
        echo "Could not find the corresponding mailcow.conf in ${RESTORE_LOCATION}, skipping restore."
Open commit View diff
361 echo "Could not find the corresponding mailcow.conf in ${RESTORE_LOCATION}, skipping restore."
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
362
        echo "If you lost that file, copy the last working mailcow.conf file to ${RESTORE_LOCATION} and restart the restore process."
Open commit View diff
362 echo "If you lost that file, copy the last working mailcow.conf file to ${RESTORE_LOCATION} and restart the restore process."
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
363
        shift
Open commit View diff
363 shift
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
364
        continue
Open commit View diff
364 continue
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
365
      else
Open commit View diff
365 else
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
366
        read -p "mailcow will be stopped and the currently active mailcow.conf will be modified to use the DB parameters found in ${RESTORE_LOCATION}/mailcow.conf - do you want to proceed? [Y|n] " MYSQL_STOP_MAILCOW
Open commit View diff
366 read -p "mailcow will be stopped and the currently active mailcow.conf will be modified to use the DB parameters found in ${RESTORE_LOCATION}/mailcow.conf - do you want to proceed? [Y|n] " MYSQL_STOP_MAILCOW
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
367
        if [[ ${MYSQL_STOP_MAILCOW,,} =~ ^(no|n|N)$ ]]; then
Open commit View diff
367 if [[ ${MYSQL_STOP_MAILCOW,,} =~ ^(no|n|N)$ ]]; then
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
368
          echo "OK, skipped."
Open commit View diff
368 echo "OK, skipped."
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
369
          shift
Open commit View diff
369 shift
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
370
          continue
Open commit View diff
370 continue
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
371
        else
Open commit View diff
371 else
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
372
          echo "Stopping mailcow..."
Open commit View diff
372 echo "Stopping mailcow..."
DerLinkman almost 4 years ago 925b220

Compose Version detection implemented in Backup script

Full commit hash
925b2209058c29a7c5bc5c86c27296826a3670d8
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
373
          ${COMPOSE_COMMAND} -f ${COMPOSE_FILE} --env-file ${ENV_FILE} down
Open commit View diff
373 ${COMPOSE_COMMAND} -f ${COMPOSE_FILE} --env-file ${ENV_FILE} down
andryyy over 6 years ago 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
374
        fi
Open commit View diff
374 fi
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
375
        #docker stop $(docker ps -qf name=mysql-mailcow)
Open commit View diff
375 #docker stop $(docker ps -qf name=mysql-mailcow)
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
376
        if [[ -d "${RESTORE_LOCATION}/mysql" ]]; then
Open commit View diff
376 if [[ -d "${RESTORE_LOCATION}/mysql" ]]; then
Timo N over 6 years ago a63bad4

[Helper] Added name to backup and restore containers (#3477)

Full commit hash
a63bad41bf671610c0b748590ba69bae4d10fecf
Author
Timo N <[email protected]>
Date
over 6 years ago
Selected line
377
        docker run --name mailcow-backup --rm \
Open commit View diff
377 docker run --name mailcow-backup --rm \
Joachim Astel about 5 years ago b1adbb3

Update backup_and_restore.sh (#4098)

Full commit hash
b1adbb38e60c5550106cc1cb4d6749b926fbc761
Author
Joachim Astel <[email protected]>
Date
about 5 years ago
Selected line
378
          -v $(docker volume ls -qf name=^${CMPS_PRJ}_mysql-vol-1$):/var/lib/mysql/:rw,z \
Open commit View diff
378 -v $(docker volume ls -qf name=^${CMPS_PRJ}_mysql-vol-1$):/var/lib/mysql/:rw,z \
andryyy over 6 years ago 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
379
          --entrypoint= \
Open commit View diff
379 --entrypoint= \
Luca Kröger over 5 years ago d3e21aa

added selinux labels to backup_and_restore script (#3874)

Full commit hash
d3e21aae08f10b84db9dffdf2120b0379b3006ab
Author
Luca Kröger <[email protected]>
Date
over 5 years ago
Selected line
380
          -v ${RESTORE_LOCATION}/mysql:/backup:z \
Open commit View diff
380 -v ${RESTORE_LOCATION}/mysql:/backup:z \
andryyy over 6 years ago 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
381
          ${SQLIMAGE} /bin/bash -c "shopt -s dotglob ; /bin/rm -rf /var/lib/mysql/* ; rsync -avh --usermap=root:mysql --groupmap=root:mysql /backup/ /var/lib/mysql/"
Open commit View diff
381 ${SQLIMAGE} /bin/bash -c "shopt -s dotglob ; /bin/rm -rf /var/lib/mysql/* ; rsync -avh --usermap=root:mysql --groupmap=root:mysql /backup/ /var/lib/mysql/"
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
382
        elif [[ -f "${RESTORE_LOCATION}/backup_mysql.gz" ]]; then
Open commit View diff
382 elif [[ -f "${RESTORE_LOCATION}/backup_mysql.gz" ]]; then
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
383
        docker run \
Open commit View diff
383 docker run \
Daniel Muehlbachler-Pietrzykowski about 2 years ago ffeeb17

restore: remove tty requirement from restore process to allow for automated restores

Full commit hash
ffeeb179e1894bf83513fe9630f47f27bec69ef7
Author
Daniel Muehlbachler-Pietrzykowski <[email protected]>
Date
about 2 years ago
Selected line
384
          -i --name mailcow-backup --rm \
Open commit View diff
384 -i --name mailcow-backup --rm \
Joachim Astel about 5 years ago b1adbb3

Update backup_and_restore.sh (#4098)

Full commit hash
b1adbb38e60c5550106cc1cb4d6749b926fbc761
Author
Joachim Astel <[email protected]>
Date
about 5 years ago
Selected line
385
          -v $(docker volume ls -qf name=^${CMPS_PRJ}_mysql-vol-1$):/var/lib/mysql/:z \
Open commit View diff
385 -v $(docker volume ls -qf name=^${CMPS_PRJ}_mysql-vol-1$):/var/lib/mysql/:z \
andryyy over 6 years ago 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
386
          --entrypoint= \
Open commit View diff
386 --entrypoint= \
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
387
          -u mysql \
Open commit View diff
387 -u mysql \
Luca Kröger over 5 years ago d3e21aa

added selinux labels to backup_and_restore script (#3874)

Full commit hash
d3e21aae08f10b84db9dffdf2120b0379b3006ab
Author
Luca Kröger <[email protected]>
Date
over 5 years ago
Selected line
388
          -v ${RESTORE_LOCATION}:/backup:z \
Open commit View diff
388 -v ${RESTORE_LOCATION}:/backup:z \
andryyy over 6 years ago 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
389
          ${SQLIMAGE} /bin/sh -c "mysqld --skip-grant-tables & \
Open commit View diff
389 ${SQLIMAGE} /bin/sh -c "mysqld --skip-grant-tables & \
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
390
          until mysqladmin ping; do sleep 3; done && \
Open commit View diff
390 until mysqladmin ping; do sleep 3; done && \
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
391
          echo Restoring... && \
Open commit View diff
391 echo Restoring... && \
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
392
          gunzip < backup/backup_mysql.gz | mysql -uroot && \
Open commit View diff
392 gunzip < backup/backup_mysql.gz | mysql -uroot && \
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
393
          mysql -uroot -e SHUTDOWN;"
Open commit View diff
393 mysql -uroot -e SHUTDOWN;"
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
394
        else
Open commit View diff
394 else
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
395
          ARCHIVE_INFO=$(get_archive_info "backup_mariadb" "${RESTORE_LOCATION}")
Open commit View diff
395 ARCHIVE_INFO=$(get_archive_info "backup_mariadb" "${RESTORE_LOCATION}")
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
396
          if [[ -n "${ARCHIVE_INFO}" ]]; then
Open commit View diff
396 if [[ -n "${ARCHIVE_INFO}" ]]; then
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
397
            ARCHIVE_FILE=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f1)
Open commit View diff
397 ARCHIVE_FILE=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f1)
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
398
            DECOMPRESS_PROG=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f2)
Open commit View diff
398 DECOMPRESS_PROG=$(echo "${ARCHIVE_INFO}" | cut -d'|' -f2)
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
399
            docker run --name mailcow-backup --rm \
Open commit View diff
399 docker run --name mailcow-backup --rm \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
400
              -v $(docker volume ls -qf name=^${CMPS_PRJ}_mysql-vol-1$):/backup_mariadb/:rw,z \
Open commit View diff
400 -v $(docker volume ls -qf name=^${CMPS_PRJ}_mysql-vol-1$):/backup_mariadb/:rw,z \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
401
              --entrypoint= \
Open commit View diff
401 --entrypoint= \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
402
              -v ${RESTORE_LOCATION}:/backup:z \
Open commit View diff
402 -v ${RESTORE_LOCATION}:/backup:z \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
403
              ${SQLIMAGE} /bin/bash -c "shopt -s dotglob ; \
Open commit View diff
403 ${SQLIMAGE} /bin/bash -c "shopt -s dotglob ; \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
404
                /bin/rm -rf /backup_mariadb/* ; \
Open commit View diff
404 /bin/rm -rf /backup_mariadb/* ; \
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
405
                /bin/tar --use-compress-program='${DECOMPRESS_PROG}' -Pxvf /backup/${ARCHIVE_FILE}"
Open commit View diff
405 /bin/tar --use-compress-program='${DECOMPRESS_PROG}' -Pxvf /backup/${ARCHIVE_FILE}"
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
406
          fi
Open commit View diff
406 fi
andryyy over 6 years ago 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
407
        fi
Open commit View diff
407 fi
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
408
        echo "Modifying mailcow.conf..."
Open commit View diff
408 echo "Modifying mailcow.conf..."
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
409
        source ${RESTORE_LOCATION}/mailcow.conf
Open commit View diff
409 source ${RESTORE_LOCATION}/mailcow.conf
Maxim Baz almost 6 years ago 05a5f9e

Support mailcow.conf being a symlink (#3770)

Full commit hash
05a5f9e84a4bbc24824d7cf5009307ab71dc9af7
Author
Maxim Baz <[email protected]>
Date
almost 6 years ago
Selected line
410
        sed -i --follow-symlinks "/DBNAME/c\DBNAME=${DBNAME}" ${SCRIPT_DIR}/../mailcow.conf
Open commit View diff
410 sed -i --follow-symlinks "/DBNAME/c\DBNAME=${DBNAME}" ${SCRIPT_DIR}/../mailcow.conf
same change 05a5f9e

Support mailcow.conf being a symlink (#3770)

Full commit hash
05a5f9e84a4bbc24824d7cf5009307ab71dc9af7
Author
Maxim Baz <[email protected]>
Date
almost 6 years ago
Selected line
411
        sed -i --follow-symlinks "/DBUSER/c\DBUSER=${DBUSER}" ${SCRIPT_DIR}/../mailcow.conf
Open commit View diff
411 sed -i --follow-symlinks "/DBUSER/c\DBUSER=${DBUSER}" ${SCRIPT_DIR}/../mailcow.conf
same change 05a5f9e

Support mailcow.conf being a symlink (#3770)

Full commit hash
05a5f9e84a4bbc24824d7cf5009307ab71dc9af7
Author
Maxim Baz <[email protected]>
Date
almost 6 years ago
Selected line
412
        sed -i --follow-symlinks "/DBPASS/c\DBPASS=${DBPASS}" ${SCRIPT_DIR}/../mailcow.conf
Open commit View diff
412 sed -i --follow-symlinks "/DBPASS/c\DBPASS=${DBPASS}" ${SCRIPT_DIR}/../mailcow.conf
same change 05a5f9e

Support mailcow.conf being a symlink (#3770)

Full commit hash
05a5f9e84a4bbc24824d7cf5009307ab71dc9af7
Author
Maxim Baz <[email protected]>
Date
almost 6 years ago
Selected line
413
        sed -i --follow-symlinks "/DBROOT/c\DBROOT=${DBROOT}" ${SCRIPT_DIR}/../mailcow.conf
Open commit View diff
413 sed -i --follow-symlinks "/DBROOT/c\DBROOT=${DBROOT}" ${SCRIPT_DIR}/../mailcow.conf
andryyy over 6 years ago 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
414
        source ${SCRIPT_DIR}/../mailcow.conf
Open commit View diff
414 source ${SCRIPT_DIR}/../mailcow.conf
same change 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
415
        echo "Starting mailcow..."
Open commit View diff
415 echo "Starting mailcow..."
DerLinkman almost 4 years ago 925b220

Compose Version detection implemented in Backup script

Full commit hash
925b2209058c29a7c5bc5c86c27296826a3670d8
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
416
        ${COMPOSE_COMMAND} -f ${COMPOSE_FILE} --env-file ${ENV_FILE} up -d
Open commit View diff
416 ${COMPOSE_COMMAND} -f ${COMPOSE_FILE} --env-file ${ENV_FILE} up -d
andryyy over 6 years ago 212c18f

[Helper] backup fixes

Full commit hash
212c18fd088dea805916f6869000f420124987e4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
417
        #docker start $(docker ps -aqf name=mysql-mailcow)
Open commit View diff
417 #docker start $(docker ps -aqf name=mysql-mailcow)
andryyy over 6 years ago ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
418
      fi
Open commit View diff
418 fi
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
419
      ;;
Open commit View diff
419 ;;
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
420
    esac
Open commit View diff
420 esac
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
421
    shift
Open commit View diff
421 shift
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
422
  done
Open commit View diff
422 done
andryyy over 6 years ago ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
423
  echo
Open commit View diff
423 echo
same change ba246d3

[Helper] Some minor improvements

Full commit hash
ba246d34cb3dbb5f6906d59039b0adf2c7d238ec
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
424
  echo "Starting watchdog-mailcow..."
Open commit View diff
424 echo "Starting watchdog-mailcow..."
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
425
  docker start $(docker ps -aqf name=watchdog-mailcow)
Open commit View diff
425 docker start $(docker ps -aqf name=watchdog-mailcow)
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
426
}
Open commit View diff
426 }
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
427
Open commit View diff
427
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
428
if [[ ${1} == "backup" ]]; then
Open commit View diff
428 if [[ ${1} == "backup" ]]; then
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
429
  backup ${@,,}
Open commit View diff
429 backup ${@,,}
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
430
elif [[ ${1} == "restore" ]]; then
Open commit View diff
430 elif [[ ${1} == "restore" ]]; then
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
431
  i=1
Open commit View diff
431 i=1
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
432
  declare -A FOLDER_SELECTION
Open commit View diff
432 declare -A FOLDER_SELECTION
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
433
  if [[ $(find ${BACKUP_LOCATION}/mailcow-* -maxdepth 1 -type d 2> /dev/null| wc -l) -lt 1 ]]; then
Open commit View diff
433 if [[ $(find ${BACKUP_LOCATION}/mailcow-* -maxdepth 1 -type d 2> /dev/null| wc -l) -lt 1 ]]; then
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
434
    echo "Selected backup location has no subfolders"
Open commit View diff
434 echo "Selected backup location has no subfolders"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
435
    exit 1
Open commit View diff
435 exit 1
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
436
  fi
Open commit View diff
436 fi
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
437
  for folder in $(ls -d ${BACKUP_LOCATION}/mailcow-*/); do
Open commit View diff
437 for folder in $(ls -d ${BACKUP_LOCATION}/mailcow-*/); do
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
438
    echo "[ ${i} ] - ${folder}"
Open commit View diff
438 echo "[ ${i} ] - ${folder}"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
439
    FOLDER_SELECTION[${i}]="${folder}"
Open commit View diff
439 FOLDER_SELECTION[${i}]="${folder}"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
440
    ((i++))
Open commit View diff
440 ((i++))
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
441
  done
Open commit View diff
441 done
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
442
  echo
Open commit View diff
442 echo
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
443
  input_sel=0
Open commit View diff
443 input_sel=0
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
444
  while [[ ${input_sel} -lt 1 ||  ${input_sel} -gt ${i} ]]; do
Open commit View diff
444 while [[ ${input_sel} -lt 1 || ${input_sel} -gt ${i} ]]; do
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
445
    read -p "Select a restore point: " input_sel
Open commit View diff
445 read -p "Select a restore point: " input_sel
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
446
  done
Open commit View diff
446 done
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
447
  i=1
Open commit View diff
447 i=1
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
448
  echo
Open commit View diff
448 echo
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
449
  declare -A FILE_SELECTION
Open commit View diff
449 declare -A FILE_SELECTION
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
450
  RESTORE_POINT="${FOLDER_SELECTION[${input_sel}]}"
Open commit View diff
450 RESTORE_POINT="${FOLDER_SELECTION[${input_sel}]}"
Süleyman ŞAHİN over 6 years ago ccf65fb

Update backup_and_restore.sh (#3493)

Full commit hash
ccf65fb50f278ca6fa7dacd2d342ea799f938cc4
Author
Süleyman ŞAHİN <[email protected]>
Date
over 6 years ago
Selected line
451
  if [[ -z $(find "${FOLDER_SELECTION[${input_sel}]}" -maxdepth 1 \( -type d -o -type f \) -regex ".*\(redis\|rspamd\|mariadb\|mysql\|crypt\|vmail\|postfix\).*") ]]; then
Open commit View diff
451 if [[ -z $(find "${FOLDER_SELECTION[${input_sel}]}" -maxdepth 1 \( -type d -o -type f \) -regex ".*\(redis\|rspamd\|mariadb\|mysql\|crypt\|vmail\|postfix\).*") ]]; then
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
452
    echo "No datasets found"
Open commit View diff
452 echo "No datasets found"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
453
    exit 1
Open commit View diff
453 exit 1
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
454
  fi
Open commit View diff
454 fi
Timo Reymann almost 7 years ago 752f241

Resolve #2794 Add restore for 'all'

Full commit hash
752f2417de59f7992dea79ad5769e619358c2bb6
Author
Timo Reymann <[email protected]>
Date
almost 7 years ago
Selected line
455
Open commit View diff
455
Timo Reymann over 6 years ago 3453207

Make restore not only find .tar.gz but also .gz for mysql backup (#3113)

Full commit hash
34532073010d000d747da457982de0f76eef4a4c
Author
Timo Reymann <[email protected]>
Date
over 6 years ago
Selected line
456
  echo "[ 0 ] - all"
Open commit View diff
456 echo "[ 0 ] - all"
Claas Flint 8 months ago 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
457
  # find all files in folder with *.zst or *.gz extension, print their base names, remove backup_, remove .tar (if present), remove .zst/.gz
Open commit View diff
457 # find all files in folder with *.zst or *.gz extension, print their base names, remove backup_, remove .tar (if present), remove .zst/.gz
same change 1b833be

Replace pigz with zstd for backup compression (#6897)

Full commit hash
1b833be760a5e48b9f4d4eb97495ae9c9a4696c8
Author
Claas Flint <[email protected]>
Date
8 months ago
Selected line
458
  FILE_SELECTION[0]=$(find "${FOLDER_SELECTION[${input_sel}]}" -maxdepth 1 \( -type d -o -type f \) \( -name '*.zst' -o -name '*.gz' -o -name 'mysql' \) -printf '%f\n' | sed 's/backup_*//' | sed 's/\.[^.]*$//' | sed 's/\.[^.]*$//' | sort -u)
Open commit View diff
458 FILE_SELECTION[0]=$(find "${FOLDER_SELECTION[${input_sel}]}" -maxdepth 1 \( -type d -o -type f \) \( -name '*.zst' -o -name '*.gz' -o -name 'mysql' \) -printf '%f\n' | sed 's/backup_*//' | sed 's/\.[^.]*$//' | sed 's/\.[^.]*$//' | sort -u)
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
459
  for file in $(ls -f "${FOLDER_SELECTION[${input_sel}]}"); do
Open commit View diff
459 for file in $(ls -f "${FOLDER_SELECTION[${input_sel}]}"); do
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
460
    if [[ ${file} =~ vmail ]]; then
Open commit View diff
460 if [[ ${file} =~ vmail ]]; then
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
461
      echo "[ ${i} ] - Mail directory (/var/vmail)"
Open commit View diff
461 echo "[ ${i} ] - Mail directory (/var/vmail)"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
462
      FILE_SELECTION[${i}]="vmail"
Open commit View diff
462 FILE_SELECTION[${i}]="vmail"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
463
      ((i++))
Open commit View diff
463 ((i++))
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
464
    elif [[ ${file} =~ crypt ]]; then
Open commit View diff
464 elif [[ ${file} =~ crypt ]]; then
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
465
      echo "[ ${i} ] - Crypt data"
Open commit View diff
465 echo "[ ${i} ] - Crypt data"
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
466
      FILE_SELECTION[${i}]="crypt"
Open commit View diff
466 FILE_SELECTION[${i}]="crypt"
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
467
      ((i++))
Open commit View diff
467 ((i++))
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
468
    elif [[ ${file} =~ redis ]]; then
Open commit View diff
468 elif [[ ${file} =~ redis ]]; then
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
469
      echo "[ ${i} ] - Redis DB"
Open commit View diff
469 echo "[ ${i} ] - Redis DB"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
470
      FILE_SELECTION[${i}]="redis"
Open commit View diff
470 FILE_SELECTION[${i}]="redis"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
471
      ((i++))
Open commit View diff
471 ((i++))
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
472
    elif [[ ${file} =~ rspamd ]]; then
Open commit View diff
472 elif [[ ${file} =~ rspamd ]]; then
DerLinkman about 3 years ago accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
473
      if [[ $(find "${FOLDER_SELECTION[${input_sel}]}" \( -name '*x86*' -o -name '*aarch*' \) -exec basename {} \; | sed 's/^\.//' | sed 's/^\.//') == "" ]]; then
Open commit View diff
473 if [[ $(find "${FOLDER_SELECTION[${input_sel}]}" \( -name '*x86*' -o -name '*aarch*' \) -exec basename {} \; | sed 's/^\.//' | sed 's/^\.//') == "" ]]; then
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
474
        echo "[ ${i} ] - Rspamd data (unkown Arch detected, restore with caution!)"
Open commit View diff
474 echo "[ ${i} ] - Rspamd data (unkown Arch detected, restore with caution!)"
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
475
        FILE_SELECTION[${i}]="rspamd"
Open commit View diff
475 FILE_SELECTION[${i}]="rspamd"
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
476
        ((i++))
Open commit View diff
476 ((i++))
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
477
      elif [[ $ARCH != $(find "${FOLDER_SELECTION[${input_sel}]}" \( -name '*x86*' -o -name '*aarch*' \) -exec basename {} \; | sed 's/^\.//' | sed 's/^\.//') ]]; then
Open commit View diff
477 elif [[ $ARCH != $(find "${FOLDER_SELECTION[${input_sel}]}" \( -name '*x86*' -o -name '*aarch*' \) -exec basename {} \; | sed 's/^\.//' | sed 's/^\.//') ]]; then
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
478
        echo -e "\e[31m[ NaN ] - Rspamd data (incompatible Arch, cannot restore it)\e[0m"
Open commit View diff
478 echo -e "\e[31m[ NaN ] - Rspamd data (incompatible Arch, cannot restore it)\e[0m"
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
479
      else
Open commit View diff
479 else
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
480
        echo "[ ${i} ] - Rspamd data"
Open commit View diff
480 echo "[ ${i} ] - Rspamd data"
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
481
        FILE_SELECTION[${i}]="rspamd"
Open commit View diff
481 FILE_SELECTION[${i}]="rspamd"
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
482
        ((i++))
Open commit View diff
482 ((i++))
same change accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
483
      fi
Open commit View diff
483 fi
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
484
    elif [[ ${file} =~ postfix ]]; then
Open commit View diff
484 elif [[ ${file} =~ postfix ]]; then
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
485
      echo "[ ${i} ] - Postfix data"
Open commit View diff
485 echo "[ ${i} ] - Postfix data"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
486
      FILE_SELECTION[${i}]="postfix"
Open commit View diff
486 FILE_SELECTION[${i}]="postfix"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
487
      ((i++))
Open commit View diff
487 ((i++))
andryyy over 6 years ago 07c7da2

[Helper] Create tar archives for SQL backups

Full commit hash
07c7da2821c1c45ee4219ac6f4d547763e109675
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
488
    elif [[ ${file} =~ mysql ]] || [[ ${file} =~ mariadb ]]; then
Open commit View diff
488 elif [[ ${file} =~ mysql ]] || [[ ${file} =~ mariadb ]]; then
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
489
      echo "[ ${i} ] - SQL DB"
Open commit View diff
489 echo "[ ${i} ] - SQL DB"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
490
      FILE_SELECTION[${i}]="mysql"
Open commit View diff
490 FILE_SELECTION[${i}]="mysql"
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
491
      ((i++))
Open commit View diff
491 ((i++))
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
492
    fi
Open commit View diff
492 fi
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
493
  done
Open commit View diff
493 done
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
494
  echo
Open commit View diff
494 echo
Timo Reymann almost 7 years ago 45aa7b4

#2794 Make parts to restore depend on backup folder contents

Full commit hash
45aa7b45fc72e26ed9fefb2d94a917a6d3740b89
Author
Timo Reymann <[email protected]>
Date
almost 7 years ago
Selected line
495
  input_sel=-1
Open commit View diff
495 input_sel=-1
Timo Reymann almost 7 years ago 752f241

Resolve #2794 Add restore for 'all'

Full commit hash
752f2417de59f7992dea79ad5769e619358c2bb6
Author
Timo Reymann <[email protected]>
Date
almost 7 years ago
Selected line
496
  while [[ ${input_sel} -lt 0 ||  ${input_sel} -gt ${i} ]]; do
Open commit View diff
496 while [[ ${input_sel} -lt 0 || ${input_sel} -gt ${i} ]]; do
andre.peters over 8 years ago c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
497
    read -p "Select a dataset to restore: " input_sel
Open commit View diff
497 read -p "Select a dataset to restore: " input_sel
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
498
  done
Open commit View diff
498 done
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
499
  echo "Restoring ${FILE_SELECTION[${input_sel}]} from ${RESTORE_POINT}..."
Open commit View diff
499 echo "Restoring ${FILE_SELECTION[${input_sel}]} from ${RESTORE_POINT}..."
same change c07e521

[Web] Fixes number validation in forms, fixes #882

Full commit hash
c07e521309561ed56166c84e0702e56831293857
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
500
  restore "${RESTORE_POINT}" ${FILE_SELECTION[${input_sel}]}
Open commit View diff
500 restore "${RESTORE_POINT}" ${FILE_SELECTION[${input_sel}]}
Peter over 3 years ago ff71024

[Helper] Backup and restore: Use latest tag for image

Full commit hash
ff7102468ee0db49d866301aecc03690f69f1191
Author
Peter <[email protected]>
Date
over 3 years ago
Selected line
501
fi
Open commit View diff
501 fi