# Community

# Backup

### General premises

<p class="callout warning">In this section you can find a **general guide to perform vtenext backups**.</p>

<p class="callout warning">The backup procedure was performed with **vtenext 19ce**. **The guide is also valid for the other versions of vtenext**.</p>

##### Windows

Go to the root folder of vtenext (eg. `C:\vtenext19ce\htdocs`) and create new zip archive.

<div drawio-diagram="1930"><img src="https://usermanual.vtenext.com/uploads/images/drawio/2019-11-Nov/Drawing-manuel.tagliapietra-1574673713.png" alt="Drawing-manuel.tagliapietra-1574673713.png"/></div>

Then open [SQLyog](https://www.webyog.com/product/sqlyog) or [phpMyAdmin](https://www.phpmyadmin.net/) and dump the database. If you use SQLyog follow these step:

- Open SQLyog and create new connection

<div drawio-diagram="1938"><img src="https://usermanual.vtenext.com/uploads/images/drawio/2019-11-Nov/Drawing-manuel.tagliapietra-1574675951.png" alt="Drawing-manuel.tagliapietra-1574675951.png"/></div>

- Go to the root folder of vtenext and open the `config.inc.php` file

![image-1574674294024.png](https://usermanual.vtenext.com/uploads/images/gallery/2019-11-Nov/scaled-840-0/image-1574674294024.png)

- Reopen SQLyog, compile the connection form and save the connection

<div drawio-diagram="1935"><img src="https://usermanual.vtenext.com/uploads/images/drawio/2019-11-Nov/Drawing-manuel.tagliapietra-1574675813.png" alt="Drawing-manuel.tagliapietra-1574675813.png"/></div>

- Save the database dump

<div drawio-diagram="1934"><img src="https://usermanual.vtenext.com/uploads/images/drawio/2019-11-Nov/Drawing-manuel.tagliapietra-1574674731.png" alt="Drawing-manuel.tagliapietra-1574674731.png"/></div>

Done!

##### Linux

Go to the root folder of vtenext (eg. `/var/www/html/vtenext19ce`) and create new archive.

`cd /var/www/html`

`tar cvzf backups/vte1907_1817_20191126.tgz vtenext19ce`

<p class="callout warning">**Replace `vtenext19ce` with your folder name**</p>

<p class="callout warning">**You can rename the backup `vte1907_1817_20191126.tgz` as you want**</p>

Then dump the database.

`mysqldump -u root -p  vte1907_1817 --single-transaction --quick --routines --triggers --events | gzip -7 > backups/vte1907_1817_20191126.sql.gz`

<p class="callout warning">**Replace `vte1907_1817` with your database name**</p>

<p class="callout warning">**You can rename the backup `vte1907_1817_20191126.sql.gz` as you want**</p>

# Update vtenext from 18ce to 19ce

### General premises

<p class="callout warning">The update is valid only for **vtenext 18ce**</p>

<p class="callout warning">**You have to enable cron in order to run the update**</p>

<p class="callout warning">**Please backup the files and the database of vtenext before the update. Follow the instructions in [this link](https://usermanual.vtenext.com/books/community/page/backup).**</p>

### Update

- Open [this link](https://sourceforge.net/projects/vtecrm/files/update_packages/) and download `18ce_UpdateModule.zip` and `18ce_updater.zip`

![image-1574181419599.png](https://usermanual.vtenext.com/uploads/images/gallery/2019-11-Nov/scaled-840-0/image-1574181419599.png)

- Extract the content of `<a href="https://sourceforge.net/projects/vtecrm/files/update_packages/18ce_updater.zip/download">18ce_updater.zip</a>`

![image-1574181862118.png](https://usermanual.vtenext.com/uploads/images/gallery/2019-11-Nov/scaled-840-0/image-1574181862118.png)

- Copy `18ce_updater` with its contents inside the root folder of vtenext
- Open your web browser and navigate to the url where you installed vtenext. Login and then navigate to updater.html (eg. localhost:81/updater.html) and the page will redirect to the application settings

![image-1574681049864.png](https://usermanual.vtenext.com/uploads/images/gallery/2019-11-Nov/scaled-840-0/image-1574681049864.png)

- Upload `18ce_UpdateModule.zip` file

<div drawio-diagram="1944"><img src="https://usermanual.vtenext.com/uploads/images/drawio/2019-11-Nov/Drawing-manuel.tagliapietra-1574682737.png" alt="Drawing-manuel.tagliapietra-1574682737.png"/></div>

If you have cron enabled, wait 12 hours (the updater checks every 12 hours to avoid server overloads). Otherwise, enable it.

<div id="bkmrk--0"><div><div><div><div><div></div></div></div></div></div></div><div id="bkmrk-after-12-hours-you-w"><div><div><div><div>- <span class="tlid-translation translation" lang="en"><span title="">After 12 hours you will receive a new notification with this text "An update of vtenext is available. Click here for details"</span></span>

</div></div></div></div></div>![image-1574774920892.png](https://usermanual.vtenext.com/uploads/images/gallery/2019-11-Nov/scaled-840-0/image-1574774920892.png)

- Click the notification and a new page will open with the details of the update

![image-1574774984691.png](https://usermanual.vtenext.com/uploads/images/gallery/2019-11-Nov/scaled-840-0/image-1574774984691.png)

- Click "Schedule Update" and now there will be 2 scenarios depending on the operating system you are using

##### Windows

<p class="callout warning">**Automatic update is not supported on Windows.**</p>

![image-1574775050374.png](https://usermanual.vtenext.com/uploads/images/gallery/2019-11-Nov/scaled-840-0/image-1574775050374.png)

**Follow the on-screen instructions to update.**

- Backup files and database
- Download the update package
- Unzip the downloaded file and overwrite with its contents the root folder of vtenext

![image-1574695415416.png](https://usermanual.vtenext.com/uploads/images/gallery/2019-11-Nov/scaled-840-0/image-1574695415416.png)

- Follow the point 4 of the instructions

![image-1574695591487.png](https://usermanual.vtenext.com/uploads/images/gallery/2019-11-Nov/scaled-840-0/image-1574695591487.png)

![image-1574695638039.png](https://usermanual.vtenext.com/uploads/images/gallery/2019-11-Nov/scaled-840-0/image-1574695638039.png)

![image-1574695710149.png](https://usermanual.vtenext.com/uploads/images/gallery/2019-11-Nov/scaled-840-0/image-1574695710149.png)

Done!

##### Linux

Enter the date and the time in which you want to schedule the update and the list of users to alert.

![image-1574763219855.png](https://usermanual.vtenext.com/uploads/images/gallery/2019-11-Nov/scaled-840-0/image-1574763219855.png)

Wait until the selected time and after a while you will see the vtenext in maintenance mode.

![image-1574765619199.png](https://usermanual.vtenext.com/uploads/images/gallery/2019-11-Nov/scaled-840-0/image-1574765619199.png)

Once the maintenance screen disappears, logout and login from vtenext.

Done!