Backup Setting Mikrotik dan Userman otomatis kirim via email

1. Seting email terlebih dahulu, masuk ke Winbox > Tool > email
Buat Isian sebagai berikut :
server : 74.125.127.109
from : alamat_email_tujuan
user : alamat_email_pengirim
password : password_email_pengirim

2. Buat Script untuk Backup System Otomatis :
- Klik system > script. Klik tanda + (Add) beri nama misal "backupan".
- Masukkan script dibawah ini :
/system backup save name=("Backup - " . [/system identity get name] . "-" . [:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6]); /tool e-mail send to="criptecs@asia.com" from="bluekejedot@gmail.com" server="74.125.127.109" subject=([/system identity get name] . " Backup " . [/system clock get date] . "-" . [/system clock get time]) file=("Backup - " . [/system identity get name] . "-" . [:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . ".backup"); :delay 10; /file rem [/file find name=("Backup - " . [/system identity get name] . "-" . [:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . ".backup")]; :log info ("System Backup emailed at " . [/sys cl get time] . " " . [/sys cl get date])

Note :
to : diganti dengan alamat email tujuan (domain bebas)
from : diganti dengan alamat email pengirim (usahakain domain pake gmail.com)
server : 74.125.127.109 atau 74.125.127.108 (diperoleh dari nslookup smtp.gmail.com)

3. Buat Script lagi untuk Backup Userman otomatis :
- Klik system > script. Klik tanda + (Add) beri nama misal "userman".
- Masukkan script dibawah ini :
#----deklarasi variable---
:local ds [/system clock get date]
:set ds ([:pick $ds 7 11].[:pick $ds 0 3].[:pick $ds 4 6])
:local identitasRouter [/system identity get name];
:local emailTujuan [/tool e-mail get from];
:local seriMikrotik [/system resource get board-name];
#-----Backup usermanager mikrotik---------------
:local usermanBackup ($identitasRouter.$seriMikrotik."-userman-".$ds.".umb")
/tool user-manager database save name=$usermanBackup;
#-----Mengirim email-------------------
:delay 10s
:log info "Sedang mengirim email, silahkan tunggu beberapa detik..."
/tool e-mail send to="criptecs@asia.com" from="bluekejedot@gmail.com" server="74.125.127.109" subject=$usermanBackup body=$usermanBackup file=$usermanBackup;
#-----menghapus -----------------------
:delay 60s
:if ([:len [/file find name=$usermanBackup]] > 0) do={/file remove $usermanBackup}
:log info "File $usermanBackup telah dihapus..!"

4. Buat Schedulernya, agar Script pada point 2 dan 3 dijalankan secara otomatis
- Klik System -> Scheduler, klik tanda + kemudian masukan nama : backupan_system, interval : 3d 00:00:00 Start Date (menyesuaikan) dan pada kolom on event isi dengan backupan.
- Klik System -> Scheduler, klik tanda + kemudian masukan nama : backupan_userman, interval : 1d 00:00:00 Start Date (menyesuaikan) dan pada kolom on event isi dengan userman.

5. Dengan scheduler diatas, system mikrotik akan dibackup setiap 3 hari sekali, dan userman akan dibackup setiap hari. Penjadwalan ini bisa dirubah2 sesuai keperluan.

sumber :
http://www.forummikrotik.com/showthread.php/20021-Share-Cara-Backup-Konfigurasi-Mikrotik-ke-Email
http://www.nadasumbang.com/backup-konfigurasi-mikrotik-ke-email/

5 komentar:

adiratna mengatakan...

belum bisa..eror sending email

Criptecs Pangkalan Bun mengatakan...

mas adiratna, pastikan email pengirimnya dari email yang menggunakan domain gmail.com, soalnya setting servernya menggunakan smtp.gmail. klo dengan email yang lain, ip servernya juga harus disesuaikan mas.. punya saya sampai saat ini lancar jaya :D

kally martin mengatakan...

Bitcoin is the main coin that is popular among other famous coins and in top of that, binance is bitcoin-driven exchange as most of the users prefer this platform for trading purpose. If you are experiencing any error while making a bitcoin transaction and you’re looking for solutions to deal with it, you can always call on Binance support phone number which is functional all the time for assistance and support. Binance Support Number You can contact to the team for attaining fruitful and approachable results. The team is there to fulfil all your requirements by the use of their extensive knowledge.

jhon karter mengatakan...

Blockchain faced a hacking attempt in March month resulted in falling off its position from to 10 exchanges as per the Cryptocompare list. If you face any suspicious activity in your account and looking for assistance, you can always have conversation with the team who is there to guide you. You can call on Blockchain support number which is Blockchain Support NUmber always functional and users can have conversation with the team who is always there to take your worries and serve quality solutions from the team in no time. Talk to the team for verified remedies in no time.

jhon raskal mengatakan...

The error to not able to receive from other wallets I often heard by users. MyEtherWallet wallet is one of the best wallets in the market with gargantuan capitalization. If you are unaware of the process to fix this error on the priority basis, you can always take help from the team of elite professionals who are there to assist you at every step. The best way to handle all such issues is to directly contact the team via calling on MyEtherWallet customer care number which is always available around the MyEtherWallet Customer Service Number clock where users can discuss their queries. Go and dial their number to get verified remedies from the team in functional time.

Posting Komentar

 
Powered By Blogger | Portal Design By Trik-tips Blog © 2009 | Resolution: 1024x768px | Best View: Firefox | Top