Pasang bacula-web pada Ubuntu 16.04

  1. Muaturun bacula-webcurl -O http://www.bacula-web.org/files/bacula-web.org/downloads/bacula-web-latest.tgz
    sudo mkdir -v /var/www/bacula-web

  2. Salin dan ekstrak ke /var/wwwcp /home/user1/bacula-web-latest.tgz .
    sudo cp /home/user1/bacula-web-latest.tgz .
    tar -xzf bacula-web-latest.tgz -C /var/www/bacula-web
    sudo tar -xzf bacula-web-latest.tgz -C /var/www/bacula-web
    chown -Rv www-data: /var/www/bacula-web
    sudo chown -Rv www-data: /var/www/bacula-web
    sudo chmod -Rv u=rx,g=rx,o=rx /var/www/bacula-web
    cd bacula-web/
    cd application/config/
    sudo cp config.php.sample config.php

  3. Edit setting nama dan path fail sqlite pada /var/www/bacula-web/application/config/config.php$config[0]['label'] = 'Main Backup Server';
    $config[0]['db_type'] = 'sqlite';
    $config[0]['db_name'] = '/var/lib/bacula/bacula.db';

  4. Edit /etc/php/7.0/apache2/php.ini dan set timezone
    date.timezone = Asia/Kuala_Lumpur

  5. Edit /etc/apache2/sites-available/000-default.conf dan tambah berikut sebelum “</VirtualHost>”
    <Directory /var/www/html/bacula-web>
     AllowOverride All
    </Directory>

  6. Ubah permission cache dan sqlitesudo chmod 755 application/view/cache/
    sudo chown www-data /var/lib/bacula/bacula.db
    sudo chown www-data /var/lib/bacula
    sudo service apache2 reload

  7. Siap. Anda sekarang boleh mengakses bacula-web pda IP/bacula-web/
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Backup MySQL dengan Netvault Backup

Contoh menggunakan:
Netvault Backup 8.53 pada Debian Squeeze 32-bit
Mysql 5.1 pada Debian Squeeze 32-bit

Pada server Mysql, tambah “log-bin=mysql-bin” dibawah bahagian [mysqld] di dalam /etc/mysql/my.cnf untuk fungsi point-in-time restore.

Restart service mysql.
/etc/init.d/mysql restart

Tambahkan server MySQL selepas memasang klien Netvault Backup.

add host

Install plugin MySQL yang kita dah ekstrak kedalam server Netvault Backup.

plugin

install mysql apm

Pergi ke “Backup” & double click MySQL APM untuk configure buat pertama kali.

apm mysql

Setting MySQL Debian.

setting mysql

Save saveset dengan nama yang sesuai.

mysql05

Set untuk buat full backup semua database.

full

Set untuk jadualkan pada setiap Jumaat 5.30 petang.

masa

Set untuk backup ke VTL.

into vtl

Save & Submit (ikon floppy & lampu trafik) setelah siap configure backup. Kemudian pergi ke “Job Management” dan uji job backup yang telah dijadualkan tadi. Right-click dan pilih “Run Now…”

uji

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Nota VTL Netvault Backup

Menurut manual Netvault Backup (NetVault_Backup_Administrators_Guide_English.pdf m/s 47)

Number of Slots * Media Capacity + <x>
<x> is the margin considered for the following:
-Disk space required to create the directory structure for the VTL. It varies for different file systems
-Disk space required by other applications running on the system

Jadi, kalau nak buat VTL 2 GB

Margin default = 20 MB (VTL akan gagal berfungsi kalau tak ada ruang kosong)

2000MB – 20MB = 1980 MB

Katakan kita nak buat 1 media = 100 MB

1980 MB / 100 = 19.8 media

Bundarkan jadi 19 = 19 media dengan saiz 100 MB setiap satu

Contoh menambah VTL (gambar ikut urutan proses penambahan)

set media

Dah siap VTL tadi, tambahkan ke media untuk backup (double-click)

pilih vtl tadi

Set (double-click) satu media untuk setiap drive

set drive vtl

Semak setting & save

confirm dan save

vtl online

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Backup MySQL dengan MySqlBF

Pada server MySQL, dalam /etc/mysql/my.cnf tukar IP localhost ke IP sebenar server tersebut

#bind-address           = 127.0.0.1
bind-address            = 192.168.1.5

Restart servis MySQL
/etc/init.d/mysql restart

Buatkan user bernama backup untuk backup dari IP 192.168.1.10 dengan kata laluan Do05esk7

mysql -u root -p
grant all on *.* to backup@'192.168.1.10' identified by 'Do05esk7';
\q

Sekarang cuba sambungkan MySqlBF dari 192.168.1.10 ke mysql server

login

Tetapkan database yang hendak kita backup dan lokasi simpanannya

setting

Contoh backup yang telah selesai, output pada destinasi dan laporan yang dihantar ke emel

log

output

emel

Nota: Had versi percuma adalah 2 db sahaja

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Pasang Netvault Backup 8.6.3 pada Debian Squeeze

OS: Debian Squeeze 32-bit
IP: 192.168.56.101
Installer: netvault-R2012MAY21-JUNO-LinuxX86Hybrid.tar.gz

Muatnaik pakej installer Netvault Backup ke pelayan Debian
scp netvault-R2012MAY21-JUNO-LinuxX86Hybrid.tar.gz root@192.168.56.101:/root

Pasang libxp6 pada pelayan Debian
aptitud -y install libxp6

Ekstrak pakej installer
tar -xvf netvault-R2012MAY21-JUNO-LinuxX86Hybrid.tar.gz
cd netvault/
chmod +x install

Pasang Netvault Backup Server
./install

Jawab soalan seperti berikut:

Select language? [1] :

Have you read and agreed to the terms of the license?
(y = yes, n = no, d = display license) (y n d) [d] : y

Should a client or server version of NetVault be installed? (c s) : s

Where should NetVault be installed? [/usr/netvault] :

Where should NetVault database be installed? [/usr/netvault/db] :

Please enter a NetVault machine name
using A-Z, a-z, _ and 0-9 [debian] :

Please enter the NetVault password for this machine:

Please confirm password:
.
.
.
Installation completed successfully

Perhatikan sama ada proses netvault telah berjalan
ps -ef| grep nv

root      1657     1  0 02:07 pts/0    00:00:00 /usr/netvault/bin/nvpmgr
root      1660  1657  0 02:07 pts/0    00:00:00 nvcmgr 2
root      1668  1657  0 02:07 pts/0    00:00:00 nvnmgr 3
root      1669  1657  0 02:07 pts/0    00:00:00 nvavp 8
root      1670  1657  0 02:07 pts/0    00:00:00 nvlogdaemon 7
root      1671  1657  0 02:07 pts/0    00:00:00 nvstatsmngr 9
root      1673  1657  0 02:07 pts/0    00:00:00 nvrepdbmngr 10
root      1674  1657  0 02:07 pts/0    00:00:00 nvmedmgr 4
root      1675  1657  0 02:07 pts/0    00:00:00 nvsched 5
root      1706  1295  0 02:08 pts/0    00:00:00 grep nv

Cuba akses dari mana-mana desktop Linux atau menggunakan MobaXterm dari desktop Windows
ssh -X root@192.168.56.101

Mulakan GUI Netvault Backup
nvgui &

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)