Backup the Database of VigorACS by the script
- windows, backup, script, linux, database, DrayOS 4, imported, vigoracs
This article demonstrates how to back up the database of VigorACS running on Linux and Windows. We recommend saving a backup before you upgrade VigorACS version.
For Linux
1. Go to the directory /usr/local/vigoracs/VigorACS/bin/acs_util/dbutil/BackupRestoreScript/Linux and open the backup config file by enter # vi backupconfig.txt
2. Confirm the configuration below.
3. Run automysqlbackup.sh to start database backup.
4. Check the backup file.
Note: If you'd like to run the script regurlarly, you could consider to add the script into crontab task
For Windows
1. Go to the directory{ACS path}\bin\acs_util\dbutil\BackupRestoreScript\Windows and open the file “backupconfig_windows.txt”.
2. Confirm the information as below.
3. Run automysqlbackup.bat in the command prompt as administrator to start database backup.
4. Check the backup file.
- Details
File Manager of VigorACS
- windows, linux, DrayOS 4, imported, vigoracs, netdocument, ems_folder, file_management
EMS folder is a mirror of the NetDocument on the VigorACS. You can put a file into the corresponding folder, and it will appear on the webpage of VigorACS. It also includes the mapping of the Maintenance >> File Manager page. The picture below illustrates the structure of the EMS folder.
How to find the EMS folder?
To find out the location of EMS folder, please check the file userhome.txt in the VigorACS folder.
For Windows, the file is at {VigorACS installed path}\bin\userhome.txt
For Linux, the file is at /usr/local/vigoracs/VigorACS/bin/userhome.txt
- Details
Backup the Database of VigorACS
- tech_database, product_vigoracs, task_backup_restore, tech_database_backup
VigorACS supports scheduled backup tasks for your ACS's database; therefore, the system administrator will not need to worry about the sudden event occurring. This document is going to demonstrate how to schedule backup the database of ACS.
Database Backup configuration
To configure the database backup setting, go to SYSTEM MENU > System > Backup Databaseand follow the steps:
1. Click Add a Task and configure the settings,
[Task Setting]
Enable This Task: Activate this task for database backup
Task Name: Specify the task name
[Scheduling]
Once: Execute the backup task only one time when the setup time reached.
Repeat: Execute the backup task by schedule(Weekly, Daily, Monthly)
[Backup Options]
Backup Type
- Backup all tables: Backup all of the tables for TR-069 database, the backup file is the largest one among all options. Also, please notice that server will quickly run out of disk space if you enable repeat task for database backup.
- Exclude syslog tables: Backup all of the tables for TR-069 database except syslog tables, it could reduce the size of backup files.
- Exclude syslog and log tables: Backup all of the tables for TR-069 database except syslog and log tables, the backup file is the smallest one among all options.
Ignore License Tables:
If you restore the SQL file on the "new" server(different MAC of the How to backup the Database of ACS network adapter), please enable the option to avoid license conflicted.
After backup delete log tables: ACS will clear all log tables after the backup task completed.
[Email Notification]
You may enable this function if you'd like to receive the backup result (No matter success or fail).
2. After configuring the setting, save the task.
3. Wait for the scheduled time, and we'll see the status update if the backup event is triggered.
4. In addition, we'll also receive the notification mail after the backup task is triggered.
Download backup .sql file
Download from ACS Web:
Switch to the Backup Files tab from the Backup Database page, and we could select one of the backup files and download it directly.
Copy from the EMS Folder:
Go to the path EMS/sql-backup on storage of ACS server, and then you will see all the backup files here. To find the path of EMS folder, you could refer the document: File manager of ACS.
Why can't I receive notification mail?
Please make sure you have enabled the Mail server of All_UserGroup from SYSTEM MENU > User > Mail Server. We could also use the Send Test Mail to confirm whether the configuration of mail server is correct.
- Details
Restore SQL File to VigorACS Database
- host_linux, tech_database, product_vigoracs, host_windows, task_backup_restore, tech_database_backup
This document demonstrates how to restore the backup SQL file to the database of VigorACS on Windows platform and Linux platform. Since the column and tables might be different for each version, please make sure the current ACS version is the SAME as the version where we backup the SQL file.
Windows Platform
-
Go to the path
{ACS Installed path}\bin\acs_util\dbutil\BackupRestoreScript\Windowsto find the file "backupconfig_windows.txt".
-
Edit the file backupconfig_windows.txt :
-
USERNAME: Input the MySQL account to access the database. If you install the MariaDB from VigorACS installed package, the default account should be
root. - PASSWORD: Type the password of MySQL account to access the database.
- Database path: Specify the correct path of MariaDB bin folder.
-
USERNAME: Input the MySQL account to access the database. If you install the MariaDB from VigorACS installed package, the default account should be
-
Run the Command Prompt as administrator and change the path to current path
{Installed path}\VigorACS\dbutil\BackupRestoreScript\Windows.Use the batch file mysqlrestore.bat and add the SQL file (including path) for running database restore by command# mysqlrestore.bat C:\Users\user\AppData\Roaming\EMS\sql-backup\backup_backup_ACS_3.1.0RC5_r2687_FullVer_2021-06-03.1051.sqlYou will see the messageRestore process is finished. Please restart ACS service and check itafter restore process is completed.Note: If the backup SQL file path contains space, please quote the SQL file in the command, e.g.
# mysqlrestore.bat "C:\Program Files\mysqlbackup\backup_backup_ACS_3.1.0RC5_r2687_FullVer_2021-06-03.1051.sql"
Linux Platform
1. Go to the path /usr/local/vigoracs/VigorACS/bin/acs_util/dbutil/BackupRestoreScript/Linux to find the file "backupconfig.txt"
2. Edit the file backupconfig.txt :
- USERNAME: Input the MySQL account to access the database. If you install the MariaDB from VigorACS installed package, the default account should be "root".
- PASSWORD: Type the password of MySQL account to access the database. The default password should be blank if you never change it before.
-
Database path: Specify the correct path of MariaDB bin folder. If you install the mysql via ACS installation program, the path should be
/usr/local/mysql/bin
3. Use the shell file mysqlrestore.sh and add the SQL file (including path) for running database restore by command# mysqlrestore.sh /home/mysql_backup/backup_restore_ACS_3.6.3_r6143_ExcludeSyslogAndLogVer_2024-10-14.1610.sql
You will see the message Restore process is finished. Please restart ACS service and check it after restore process completed
- Details
Get Google Map API Key for VigorACS
- credentials, DrayOS 4, imported, vigoracs, api_key, map_widget, google_cloud, google_maps, billing, network_dashboard
ACS provides the Map widget on the Network Dashboard for the network administrators to view the location of managed devices. To use the Map widget, you must apply for the API key first. These are the APIs that VigorACS requires:
- Maps JavaScript API
- Geocoding API
- Places API
This article demonstrates the steps to apply for the API key for VigorACS
Apply for API key
1. Go to Google Maps Platform and Sign in your Google account. Then click Get Started button.

2. Enable Maps and Place option, and click the CONTINUE button.

3. Type the project name and select Yes to allow agreement, then click NEXT button.

4. Since Google API change their charge policy, the user needs to pay if the usage exceeds the free quota (USD $200) every month, so we need to configure the billing account to apply for API. Click CREATE BILLING ACCOUNT and enter your payment information.

5. After creating the billing account, the page will redirect back to API console. And there will be window prompt for enabling the API. click NEXT to enable the API.

If you didn't see the prompt window, you could go to API & Services > Credentials from Google Cloud Platform Homepage. Then click Create credentials and select API key.

6. Copy the API key. Then, log in to ACS server and go to the System >> Google API key page. Paste the API key on the Maps field and save it.

Restrict API key
We could add some restrictions to optimize usage and security.

With VigorACS service, we could restrict by:
- Application: Type your domain or IP so that API will only allow to access by the specific source.
- API: Since ACS only need the Maps JavaScript API, Geocoding and Places API. We could add restrictions to avoid abuse by other services.

Why I still cannot use the Google Map on ACS server?
Please check the following setting of both Google and ACS side:
- The necessary APIs (Maps JavaScript API, Geocoding API, Places API) are enabled
- Apply the correct API key to your ACS server
- Must enable/bind billing on each of your Google Cloud projects
<
- Details
