www.хомнет.укр Опубліковано: 22 квітня, 2016 Опубліковано: 22 квітня, 2016 Люди!!!! Как делать бекап на новой 20-й версии? Если можно то последовательность действий... Предлагаю ознакомиться, там и примеры есть: http://www.postgresql.org/docs/current/static/app-pgdump.html $ pg_dump -U username -W -h hostname db_name > db_name-backup.sql -U username - пользователь с полными правами к указанной базе "db_name". -W - запрос пароля для пользователя "username". -h - имя или ip хоста, где крутится postgresql (можно ещё указать "-p port" если порт отличается от стандартного). Для регулярного бэкапа можно прикрутить задачу в cron. Для восстановления, почитайте про pg_restore. если не трудно напишите по умолчанию что он там предлагает... или где посмотреть в конфиге данные по пользователю, название базы, хостнейм ?
whitelatte Опубліковано: 22 квітня, 2016 Опубліковано: 22 квітня, 2016 если не трудно напишите по умолчанию что он там предлагает... или где посмотреть в конфиге данные по пользователю, название базы, хостнейм ? $ egrep "user_name|user_password|db_url" /opt/Ubiquiti/AirControl2/lib/ac_server.properties server.db_user_name=username_here server.db_user_password=password_here server.db_url=jdbc\:postgresql\://localhost\:5432/aircontrol_database Вместо "/opt/Ubiquiti/AirControl2/" подставьте свой путь, если таковой отличается от стандартного.
www.хомнет.укр Опубліковано: 6 травня, 2016 Опубліковано: 6 травня, 2016 если не трудно напишите по умолчанию что он там предлагает... или где посмотреть в конфиге данные по пользователю, название базы, хостнейм ? $ egrep "user_name|user_password|db_url" /opt/Ubiquiti/AirControl2/lib/ac_server.properties server.db_user_name=username_here server.db_user_password=password_here server.db_url=jdbc\:postgresql\://localhost\:5432/aircontrol_database Вместо "/opt/Ubiquiti/AirControl2/" подставьте свой путь, если таковой отличается от стандартного. выдает: pg_dump: версия сервера: 9.5.0; версия pg_dump: 9.2.4 pg_dump: продолжение работы с другой версией сервера невозможно
www.хомнет.укр Опубліковано: 13 травня, 2016 Опубліковано: 13 травня, 2016 Подскажите в чем проблемма?
whitelatte Опубліковано: 13 травня, 2016 Опубліковано: 13 травня, 2016 (відредаговано) pg_dump: версия сервера: 9.5.0; версия pg_dump: 9.2.4 pg_dump: продолжение работы с другой версией сервера невозможно Подскажите в чем проблемма? А Вы сами как думаете? Видимо Вы установили Postgres из репозитория, а затем установили Aircontrol2, который при установке так же ставит Postgres (но в папку с файлами Aircontrol2). Нужно было при установке снимать галку на необходимом пункте и использовать Postgres, который был установлен из репозитория, либо удалить Postgres, который Вы ставили из репозитория и пользоваться тем pg_dump, который лежит в папке с Aircontrol'ом. Відредаговано 13 травня, 2016 whitelatte
www.хомнет.укр Опубліковано: 13 травня, 2016 Опубліковано: 13 травня, 2016 pg_dump: версия сервера: 9.5.0; версия pg_dump: 9.2.4 pg_dump: продолжение работы с другой версией сервера невозможно Подскажите в чем проблемма? А Вы сами как думаете? Видимо Вы установили Postgres из репозитория, а затем установили Aircontrol2, который при установке так же ставит Postgres (но в папку с файлами Aircontrol2). Нужно было при установке снимать галку на необходимом пункте и использовать Postgres, который был установлен из репозитория, либо удалить Postgres, который Вы ставили из репозитория и пользоваться тем pg_dump, который лежит в папке с Aircontrol'ом. как? есть инструкция?
www.хомнет.укр Опубліковано: 21 травня, 2016 Опубліковано: 21 травня, 2016 (відредаговано) Всем привет! Вышла новая бетка AC2 Beta22 Теперь база лежит в SQL и не могу понять как теперь делать бекап... ссылка на оф. сайт http://community.ubnt.com/t5/airControl-2-Beta/AC2-Beta22-released/m-p/1568157#U1568157 releasing AC2 Beta22 with follow changes: - New: Added malware cleanup utility- Fix: AC2 client is broken after manually adding ToughSwitch Malware cleanup is accessible using device context menu More > Malware Cleanup. Works for both monitored and not monitored devices. Example: To fix AC2 client after manually adding ToughSwitch add -DrepairData to the airControl2Server.vmoptions file and restart server. IMPORTANT NOTES: Starting with v2.0-Beta19 release we are using PostgreSQL as our database back-end. We chose PostgreSQL for its known stability, compatibility and available management tools. It should resolve issues AC2 users had with previous database implementation. For simplified installation we provide a bundled version of PostgreSQL together with AC2 installer and guide through configuration process. You can also choose to use PostgreSQL installation you already have. We support PostgreSQL 9.4 and up. Upgrading from previous versions Beta22 supports upgrade from Beta11 or later. But we strongly recommend upgrading to Beta18 first. Upgrade procedure is available from installer but can also be run later using shell script run_migration. AC2 server will not start if migration is pending. No data will be removed automatically during or after migration is done. Old database directory will be move to backup and can be removed manually by user. Make sure that you have enough free disk space for new database. Resulting database will be about half the size of old database. So make sure you have at least 100% more free space than you db directory currently is occupying. 32 bit and 64 bit installers We provide different installers for 32 and 64 bit java. Make sure you have a correct version of Java installed. If you get errors like java.exe is damaged on windows it is very likely that you are using incorrect version of java. Desktop client upgrade Desktop client upgrade using installer is strongly recommended. Disk space requirements for server Data compression used by PostgreSQL allowed us to reduce disk usage up to 50% of original data files size. However if you are upgrading, make sure that your free disk space amount is at least the size of current db. Windows and antivirus service You might need to disable your antivirus if you are having problems installing AC2 on Microsoft Windows. Manually setting up PostgreSQL PostgreSQL 9.4 or later ir required. We strongly recommend using latest version of PostgreSQL. You only need to create new database and create database user with write permissions. Database schema will be initialized by AC2 automatically. You should provide db settings during installation. Later you can edit ac_server.properties file to modify any database connection properties manually. Running run_migration script The script must be started with following parameters: <number of months|all>, 'airControl2Server'. First parameter tells how many months in the past migration process should look for statistics data to migrate. If 'all' or 0 option is specified, all statistics data will be migrated. Second parameter is name of AirControl2 service that must be started after migration finished. Script usage examples: run_migration all airControl2Server - migrates all statistics data; run_migration 6 airControl2Server - migrates last 6 months of statistics data. Download: Windows Server/Client installer 64bit: aircontrol-v2.0-beta22.1878.160518.1756-win64.exe Windows Server/Client installer 32bit: aircontrol-v2.0-beta22.1878.160518.1756-win32.exe Linux Server/Client installer 64bit: aircontrol-v2.0-beta22.1878.160518.1756-unix64.bin Linux Server/Client installer 32bit: aircontrol-v2.0-beta22.1878.160518.1756-unix32.bin Mac OS Client installer: aircontrol-v2.0-beta22.1878.160518.1756-mac.dmg НАПИШИТЕ КАК ДЕЛАТЬ БЭКАП БАЗЫ С ЭТОГО ДОЛБАННОГО PostgreSQL.... И КАК ВОССТАНОВИТЬ ДАННЫЕ ПРИ ПЕРЕУТСАНОВКЕ НА НОВУЮ ПЛАТФОРМУ? Відредаговано 21 травня, 2016 КОРОЛЬ
www.хомнет.укр Опубліковано: 28 травня, 2016 Опубліковано: 28 травня, 2016 Прога грузит проц на 100% и начинаются глюки... вот нашел ответ по решению проблеммы: https://community.ubnt.com/t5/airControl-2-Beta/Aircontrol-2-High-CPU-usage-100-CPU/td-p/887508 Но не селен в иностранном, помогите перевести и решить проблему. The tun0 is my vpn interface on this server, I tried restart my vpn server and the ac2 process decreases the use until normal levels... Thank you very much!
www.хомнет.укр Опубліковано: 22 вересня, 2016 Опубліковано: 22 вересня, 2016 Всем здра... Вышел новый релиз airControl 2.0 GA ! Ссылка на все версии ОС (внутри архива описание к релизу) https://drive.google.com/file/d/0B_oeUZyRM7M-WWlBS29oRzh5dmc/view?usp=sharing Также есть скрипт по автоматическому копированию баз из сервера на базе linux по FTP (нераз спасал ) Сам скрипт: #!/bin/sh ### System Setup ### BACKUP=/var/backups ### FTP ### FTPD="/" FTPU="user_ftp" FTPP="pass_ftp" FTPS="ftp_adress.com.ua" ### Binaries ### TAR="$(which tar)" GZIP="$(which gzip)" FTP="$(which ftp)" ## Today + hour in 24h format ### NOW=$(date +%Y%m%d) ### Create tmp dir ### mkdir $BACKUP/$NOW $TAR -cvf $BACKUP/$NOW/ac2_base.tar /opt/Ubiquiti/AirControl2/lib/db/dbbackups/*.pgdmp ARCHIVE=$BACKUP/ac2_base-$NOW.tar.gz ARCHIVED=$BACKUP/$NOW $TAR -zcvf $ARCHIVE $ARCHIVED ### ftp ### cd $BACKUP DUMPFILE=ac2_base-$NOW.tar.gz $FTP -p -n $FTPS <<END_SCRIPT quote USER $FTPU quote PASS $FTPP cd $FTPD mput $DUMPFILE quit END_SCRIPT ### clear ### rm -rf $ARCHIVED Добавить строку в CRON по адресу etc/crontab 30 3 * * * root /home/user/backup_ac2.sh >/dev/null 2>&1
www.хомнет.укр Опубліковано: 9 жовтня, 2016 Опубліковано: 9 жовтня, 2016 Всем привет! Наконец-то вышел новый релиз с поддержкой web интерфейса!!! airControl 2.1 Beta released! I'm pleased to announce airControl 2.1 Beta with Web Client. IMPORTANT! Make sure you read these release notes before posting any new issues to the forum! We highly recommend Chrome Web Browser for Web Client. INSTALLATION NOTES: Java requirements Important! Starting from v2.1 beta the minimum supported Java version is 8. We bundle Java 8 runtime with Windows and Mac OS X installs. For Linux Java must be upgraded manually. HTTPS PortThe default port for Web Client is 9082. If you type http://<server address>:9081 url into browser, you will be always redirected to secure connection on port 9082(or other configured port). We support only SSL/TLS protocol.To change the port used by Web Client you must modify property server.secure.port in ac_server.properties file (port update from Desktop Client and Web Client will be implemented soon). Normally installer should update this property to 9082. Please check your ac_server.properties file to see if server.secure.port was updated. If not, change it to 9082 or other value to avoid conflicts with existing applications and restart server. 32 bit and 64 bit installersWe provide different installers for 32 and 64 bit versions Java. Make sure you choose the same architecture installer as Java version installed on your system. If you get errors like java.exe is damaged on Microsoft Windows it is very likely that you are using incorrect version of java. Microsoft Windows and antivirus serviceYou might need to disable your antivirus if you are having problems installing airControl on Microsoft Windows. Manually setting up PostgreSQLPostgreSQL 9.4 or later is required. We strongly recommend using latest version of PostgreSQL.You only need to create a new database and create database user with write permissions, database schema will be initialized by airControl automatically. You should provide database settings during installation. Later you can edit ac_server.properties file to modify any database connection properties manually. UPGRADE NOTES: We support upgrade from v2.0 GA and later. And make sure you make a backup before upgrading. IMPORTANT! Downgrade to older versions is not supported. KNOWN ISSUES: * Some MacOS X clients might experience graphical issues. Try adding -DenableTextureCoordFix to airControl2Client.vmoptions in client installation root. * If you see dots instead of connected lines in charts you might need to restart monitoring for that device. * For limited user with only monitor permissions we still show action buttons but they will fail to execute. ROADMAP: Here is a partial list of features that we are planning to implement until v2.1 final: * Automation rule editor* Allow viewing full task history, not only one a single day* Relocate device on map* Show links between devices on map* Search devices on map* More streamlined discovery task* Speed test tool* Ping tool* REST API documentation* Show only selected topology branch on map for Web Client* Statistics data export* Device firmware update check and auto download* And more... CHANGELOG: [2.1-Beta] - 2016-10-05 ### Added- Web Client ### Fixed- Syncing location to device appends coordinate value instead of replacing - Tilde is not treated as a special character when setting user password Скачать все версии: https://drive.google.com/open?id=0B_oeUZyRM7M-WEJsMk1zX0hDaDg https://drive.google.com/open?id=0B_oeUZyRM7M-NDZ1OEx0VkI2Y2s https://drive.google.com/open?id=0B_oeUZyRM7M-Q3RzaW5QTmFWdmM https://drive.google.com/open?id=0B_oeUZyRM7M-UW53YjIwMnFTeGM
Рекомендованные сообщения
Создайте аккаунт или войдите в него для комментирования
Вы должны быть пользователем, чтобы оставить комментарий
Создать аккаунт
Зарегистрируйтесь для получения аккаунта. Это просто!
Зарегистрировать аккаунтВхід
Уже зарегистрированы? Войдите здесь.
Войти сейчас