Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Armony paths commands #699

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions content/uc-doc/system/backup_restore.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ To restore the file :
tar xvfp /var/backups/wazo/data.tgz -C /
```

Or from the manual backup :

```shell
tar xvfp /var/tmp/data-manual.tgz -C /
```


Once the database and files have been restored, you can
[finalize the restore](/uc-doc/system/backup_restore#after-restore)

Expand All @@ -187,15 +194,20 @@ First, extract the content of the `db.tgz` file into the `/var/tmp` directory an
newly created directory:

```shell
tar xvf db.tgz -C /var/tmp
cd /var/tmp/pg-backup
tar xvf /var/backups/wazo/db.tgz -C /var/tmp
```

Or from the manual backup :

```shell
tar xvf /var/tmp/db-manual.tgz -C /var/tmp
```

Drop the asterisk database and restore it with the one from the backup:

```shell
sudo -u postgres dropdb asterisk
sudo -u postgres pg_restore -C -d postgres asterisk-*.dump
sudo -u postgres pg_restore -C -d postgres /var/tmp/pg-backup/asterisk-*.dump
```

Remove the cache files generated from the previous database:
Expand Down Expand Up @@ -226,7 +238,7 @@ sudo -u postgres psql -c 'ALTER DATABASE asterisk RENAME TO asterisk_previous'
Restore the asterisk database from the backup:

```shell
sudo -u postgres pg_restore -C -d postgres asterisk-*.dump
sudo -u postgres pg_restore -C -d postgres /var/tmp/pg-backup/asterisk-*.dump
```

Restore the system configuration tables from the asterisk_previous database:
Expand Down