The last part of backup creation is generation of a tar file with all
The last part of creating a backup is generation of a `.tar` file containing
the parts in. In some cases (e.g. if the backup is picked up by other
all the parts. In some cases (for example, if the backup is picked up by other
backup software) that might be wasted or even directly harmful, you can
backup software) creating a `.tar` file might be wasted effort or even directly
skip this step by adding `tar` to the `SKIP` environment variable.
harmful, so you can skip this step by adding `tar` to the `SKIP` environment
variable.
This will leave the files and directories containing the backup in the
Including `tar` in the `SKIP` variable will leave the files and directories
directory used for the intermediate files, and thus the will be
containing the backup in the directory used for the intermediate files. These
overwritten when a new backup is created, i.e. you can't have more than
files will be overwritten when a new backup is created, so you should make sure
one backup on the system, so you should make sure it's copied elsewhere.
it's copied elsewhere, because you can only have one backup on the system.
For Omnibus GitLab packages:
For Omnibus GitLab packages:
...
@@ -289,9 +290,6 @@ For Omnibus GitLab packages:
...
@@ -289,9 +290,6 @@ For Omnibus GitLab packages:
sudo gitlab-backup create SKIP=tar
sudo gitlab-backup create SKIP=tar
```
```
NOTE: **Note**
For GitLab 12.1 and earlier, use `gitlab-rake gitlab:backup:create`.
For installations from source:
For installations from source:
```shell
```shell
...
@@ -685,8 +683,9 @@ lose access to your GitLab server.
...
@@ -685,8 +683,9 @@ lose access to your GitLab server.
You may also want to restore any TLS keys, certificates, or [SSH host keys](https://superuser.com/questions/532040/copy-ssh-keys-from-one-server-to-another-server/532079#532079).
You may also want to restore any TLS keys, certificates, or [SSH host keys](https://superuser.com/questions/532040/copy-ssh-keys-from-one-server-to-another-server/532079#532079).
If an untarred backup (like the ones made with `SKIP=tar`) is found, and
Starting with GitLab12.9 if an untarred backup (like the ones made with
no backup is chosen with `BACKUP=<timestamp>`, the untarred is used.
`SKIP=tar`) is found, and no backup is chosen with `BACKUP=<timestamp>`, the
untarred backup is used.
Depending on your case, you might want to run the restore command with one or
Depending on your case, you might want to run the restore command with one or