Skip to content

Commit

Permalink
No bash on readthedocs?
Browse files Browse the repository at this point in the history
  • Loading branch information
Shader authored and Shader committed Oct 24, 2017
1 parent 946d5a2 commit b1d8d9e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/administrators-guide/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,62 +15,62 @@ For this guide we'll assume that your cBackup is installed in `/var/www/html`

1. Create backups:

```bash
```
$ tar czf /opt/backup-$(date +%Y-%m-%d).tar.gz -C /var/www/html .
$ mysqldump -u root -p cbackup | gzip > /opt/backup-$(date +%Y-%m-%d).sql.gz
```
2. Download the latest update
```bash
```
$ wget https://github.com/cBackup/main/archive/master.zip -P /opt
```
3. Create lock file in your cBackup installation folder to enable maintentance mode, blocking access to the interface
```bash
```
$ touch /var/www/html/update.lock
```
4. Stop the service
```bash
```
$ /var/www/html/service.sh stop
```
5. Unpack downloaded archive to your cBackup installation overriding all files
```bash
```
$ unzip -o /opt/update.zip -d /var/www/html
```
6. Remove archive
```bash
```
$ rm /opt/update.zip
```
7. Restore permissions
```bash
```
$ /var/www/html/setpermissions.sh
```
8. Update database
```bash
```
$ /var/www/html/yii migrate
```
9. Start service
```bash
```
$ /var/www/html/service.sh start
```
10. Remove lock file
```bash
```
$ rm /var/www/html/update.lock
```
Expand Down

0 comments on commit b1d8d9e

Please sign in to comment.