Mikrotik | Forum Mikrotik Indonesia   Mikrotik Manual Mikrotik iSPY Mikrotik RSS Feed
This Logo is a Courtesy from RumahDowty

Go Back   Mikrotik | Forum Mikrotik Indonesia > Diskusi Mikrotik RouterOS > Scripting @ Mikrotik
iSpy My iTrade Register FAQ Members List Calendar Mark Forums Read

Diskusi Backup Mikrotik Otomatis via email.. pada Scripting @ Mikrotik | Mikrotik | Forum Mikrotik Indonesia : Script ini berjalan di mikrotik versi 3+ Durasi backupnya seminggu sekali... Udah berjalan di box ...


Official Board Announcements
NEW
Kunjungi Forum Diskusi PROXY Linux di FMI
donasi



 
Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 13-02-2010, 13:09
lamno lamno is offline
Newbie
 
Join Date: Feb 2008
Posts: 38
iTrader: (0)
Thanks: 3
Thanked 0 Times in 0 Posts
lamno is on a distinguished road
Backup Mikrotik Otomatis via email..




Script ini berjalan di mikrotik versi 3+
Durasi backupnya seminggu sekali...
Udah berjalan di box ane gan..

Code:
/ tool e-mail
set server=1.2.3.4 from="EMAIL@EMAIL-ANDA.COM"

/system script
add name=ebackup policy=ftp,reboot,read,write,policy,test,winbox,password,sniff source="/\
 system backup save name=([/system identity get name] . \"-\" . \\\r\
 \n[:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pi\
 ck [/system clock get date] 4 6]); \\\r\
 \n/tool e-mail send to=\"EMAIL@EMAIL-ANDA.COM\" subject=([/system identity get name\
 ] . \" Backup \" . \\\r\
 \n[/system clock get date]) file=([/system identity get name] . \"-\" . [:pick [/syst\
 em clock get date] 7 11] . \\\r\
 \n[:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . \".ba\
 ckup\");:delay 10; \\\r\
 \n/file rem [/file find name=([/system identity get name] . \"-\" . [:pick [/system c\
 lock get date] 7 11] . \\\r\
 \n[:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . \".ba\
 ckup\")]; \\\r\
 \n:log info (\"Backup terkirim pada  \" . [/sys cl get time] . \" \" . [/sys cl ge\
 t date])"
/system scheduler
add comment="" disabled=no interval=1w name=sched_backup_mail on-event=\
 ebackup start-date=jan/01/1970 start-time=07:30:00
Cara kerjanya, file backup tersebut dikirim ke email kita...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 13-02-2010, 20:29
clovanzo's Avatar
clovanzo clovanzo is online now
Member Senior
 
Join Date: Sep 2007
Posts: 395
iTrader: (0)
Thanks: 23
Thanked 112 Times in 73 Posts
clovanzo is on a distinguished roadclovanzo is on a distinguished roadclovanzo is on a distinguished roadclovanzo is on a distinguished roadclovanzo is on a distinguished roadclovanzo is on a distinguished road
mantap

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 13-02-2010, 20:39
nitaufan nitaufan is online now
Member
 
Join Date: Apr 2008
Posts: 114
iTrader: (0)
Thanks: 10
Thanked 59 Times in 23 Posts
nitaufan is on a distinguished roadnitaufan is on a distinguished roadnitaufan is on a distinguished roadnitaufan is on a distinguished road
Quote:
Originally Posted by lamno View Post
Script ini berjalan di mikrotik versi 3+
Durasi backupnya seminggu sekali...
Udah berjalan di box ane gan..

Code:
/ tool e-mail
set server=1.2.3.4 from="EMAIL@EMAIL-ANDA.COM"

/system script
add name=ebackup policy=ftp,reboot,read,write,policy,test,winbox,password,sniff source="/\
 system backup save name=([/system identity get name] . \"-\" . \\\r\
 \n[:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pi\
 ck [/system clock get date] 4 6]); \\\r\
 \n/tool e-mail send to=\"EMAIL@EMAIL-ANDA.COM\" subject=([/system identity get name\
 ] . \" Backup \" . \\\r\
 \n[/system clock get date]) file=([/system identity get name] . \"-\" . [:pick [/syst\
 em clock get date] 7 11] . \\\r\
 \n[:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . \".ba\
 ckup\");:delay 10; \\\r\
 \n/file rem [/file find name=([/system identity get name] . \"-\" . [:pick [/system c\
 lock get date] 7 11] . \\\r\
 \n[:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . \".ba\
 ckup\")]; \\\r\
 \n:log info (\"Backup terkirim pada  \" . [/sys cl get time] . \" \" . [/sys cl ge\
 t date])"
/system scheduler
add comment="" disabled=no interval=1w name=sched_backup_mail on-event=\
 ebackup start-date=jan/01/1970 start-time=07:30:00
Cara kerjanya, file backup tersebut dikirim ke email kita...

ini di jaringan kita harus punya mail server sendiri ga???
apa bisa langsung ke email yahoo or hotmail???

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 13-02-2010, 20:52
clovanzo's Avatar
clovanzo clovanzo is online now
Member Senior
 
Join Date: Sep 2007
Posts: 395
iTrader: (0)
Thanks: 23
Thanked 112 Times in 73 Posts
clovanzo is on a distinguished roadclovanzo is on a distinguished roadclovanzo is on a distinguished roadclovanzo is on a distinguished roadclovanzo is on a distinguished roadclovanzo is on a distinguished road
Yang penting di jaringan kita akses ke SMTP lancar. CMIIW

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to clovanzo For This Useful Post:
  #5 (permalink)  
Old 14-02-2010, 07:30
nitaufan nitaufan is online now
Member
 
Join Date: Apr 2008
Posts: 114
iTrader: (0)
Thanks: 10
Thanked 59 Times in 23 Posts
nitaufan is on a distinguished roadnitaufan is on a distinguished roadnitaufan is on a distinguished roadnitaufan is on a distinguished road
Quote:
Originally Posted by clovanzo View Post
Yang penting di jaringan kita akses ke SMTP lancar. CMIIW
dari script di atas Yang perlu di rubah di baris apa aja gan????
misalkan email ane xxxx@yahoo.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 14-02-2010, 07:47
lamno lamno is offline
Newbie
 
Join Date: Feb 2008
Posts: 38
iTrader: (0)
Thanks: 3
Thanked 0 Times in 0 Posts
lamno is on a distinguished road
Quote:
Originally Posted by nitaufan View Post
ini di jaringan kita harus punya mail server sendiri ga???
apa bisa langsung ke email yahoo or hotmail???
yang sudah2 begini bro.. gw juga lupa nambahin...

kalo gw pribadi pake speedy jadinya gampang.. karena setau gw smtp telkom open buat email kayak plasa.com

email itu juga gw buat report di billing explorer..

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 14-02-2010, 11:52
nitaufan nitaufan is online now
Member
 
Join Date: Apr 2008
Posts: 114
iTrader: (0)
Thanks: 10
Thanked 59 Times in 23 Posts
nitaufan is on a distinguished roadnitaufan is on a distinguished roadnitaufan is on a distinguished roadnitaufan is on a distinguished road
Quote:
Originally Posted by lamno View Post
yang sudah2 begini bro.. gw juga lupa nambahin...

kalo gw pribadi pake speedy jadinya gampang.. karena setau gw smtp telkom open buat email kayak plasa.com

email itu juga gw buat report di billing explorer..
Ane ga mudeng gan...mohon penjelasan lebih detail...

thx

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 14-02-2010, 14:48
tyang_dusun tyang_dusun is offline
Member
 
Join Date: Jun 2008
Location: Surakarta
Posts: 184
iTrader: (0)
Thanks: 1,818
Thanked 11 Times in 11 Posts
tyang_dusun is on a distinguished road
Send a message via Yahoo to tyang_dusun
bs di pperjelasa step by stepnya ...? please

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 15-02-2010, 12:45
AriefHermawan AriefHermawan is offline
Baru Gabung
 
Join Date: Nov 2008
Posts: 6
iTrader: (0)
Thanks: 0
Thanked 1 Time in 1 Post
AriefHermawan is on a distinguished road
om, koq ga jln yah di versi 4.x...
pencerahannya om, salah dmn?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 23-02-2010, 16:44
addaddeh addaddeh is offline
Baru Gabung
 
Join Date: Feb 2008
Posts: 10
iTrader: (0)
Thanks: 1
Thanked 1 Time in 1 Post
addaddeh is on a distinguished road
untuk versi 4.x keliatanya yang bagian sensitive coba di centang..

aku dah sukses..makasih atas scriptnya gan..ditunggu script yang lainnya...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 04-03-2010, 09:58
chabyiolue's Avatar
chabyiolue chabyiolue is offline
Newbie
 
Join Date: Feb 2010
Posts: 33
iTrader: (0)
Thanks: 2
Thanked 2 Times in 2 Posts
chabyiolue is on a distinguished road
Send a message via Yahoo to chabyiolue
Quote:
Originally Posted by addaddeh View Post
untuk versi 4.x keliatanya yang bagian sensitive coba di centang..

aku dah sukses..makasih atas scriptnya gan..ditunggu script yang lainnya...
caranya gimana gan bisa di beber di bawah ini ane mau coba juga tuh

terima kasih

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 05-03-2010, 23:59
chabyiolue's Avatar
chabyiolue chabyiolue is offline
Newbie
 
Join Date: Feb 2010
Posts: 33
iTrader: (0)
Thanks: 2
Thanked 2 Times in 2 Posts
chabyiolue is on a distinguished road
Send a message via Yahoo to chabyiolue
Quote:
Originally Posted by lamno View Post
Script ini berjalan di mikrotik versi 3+
Durasi backupnya seminggu sekali...
Udah berjalan di box ane gan..

Code:
/ tool e-mail
set server=1.2.3.4 from="EMAIL@EMAIL-ANDA.COM"

/system script
add name=ebackup policy=ftp,reboot,read,write,policy,test,winbox,password,sniff source="/\
 system backup save name=([/system identity get name] . \"-\" . \\\r\
 \n[:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pi\
 ck [/system clock get date] 4 6]); \\\r\
 \n/tool e-mail send to=\"EMAIL@EMAIL-ANDA.COM\" subject=([/system identity get name\
 ] . \" Backup \" . \\\r\
 \n[/system clock get date]) file=([/system identity get name] . \"-\" . [:pick [/syst\
 em clock get date] 7 11] . \\\r\
 \n[:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . \".ba\
 ckup\");:delay 10; \\\r\
 \n/file rem [/file find name=([/system identity get name] . \"-\" . [:pick [/system c\
 lock get date] 7 11] . \\\r\
 \n[:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . \".ba\
 ckup\")]; \\\r\
 \n:log info (\"Backup terkirim pada  \" . [/sys cl get time] . \" \" . [/sys cl ge\
 t date])"
/system scheduler
add comment="" disabled=no interval=1w name=sched_backup_mail on-event=\
 ebackup start-date=jan/01/1970 start-time=07:30:00
Cara kerjanya, file backup tersebut dikirim ke email kita...
bisa minta cara yang lebih jelas gan soalnya ane mau coba tapi pake gmail bisa ga ya ... di persi 4
terima kasih banyak

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 09-03-2010, 18:19
blangkon91's Avatar
blangkon91 blangkon91 is offline
Baru Gabung
 
Join Date: Mar 2010
Posts: 17
iTrader: (0)
Thanks: 12
Thanked 1 Time in 1 Post
blangkon91 is on a distinguished road
Send a message via AIM to blangkon91 Send a message via Yahoo to blangkon91
wah gmn tuh caranya....

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 10-03-2010, 11:44
blangkon91's Avatar
blangkon91 blangkon91 is offline
Baru Gabung
 
Join Date: Mar 2010
Posts: 17
iTrader: (0)
Thanks: 12
Thanked 1 Time in 1 Post
blangkon91 is on a distinguished road
Send a message via AIM to blangkon91 Send a message via Yahoo to blangkon91
bolehdi kasih gambaran gak gan......low akses ke SMTP jaringan kita lancar....

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ask> membatasi jumlah user hotspot n backup data otomatis onalars Beginner Basics 5 17-08-2010 19:27
help error di mikrotik attachment files outlook dan email web cumi23 Beginner Basics 3 09-06-2009 19:58
backup and restore konfigurasi di mikrotik router?? sipiyuku General Networking 25 21-11-2008 15:25
Backup Mikrotik di import ke mikrotik yang baru Instal javate General Networking 5 17-08-2008 06:55
software otomatis untuk menyimpan konfigurasi mikrotik symbal_pecah General Networking 27 08-02-2008 23:24


This Forum is Powered by Orion Net.

All times are GMT +8. The time now is 05:40.