Home . Pricing Information . TRAINING . Pay for Services . Articles . Forum . Links . Available Mailing Lists . Visit my blogSaturday, July 31, 2010
Navigation
Home
View my Calendar
Photo Gallery
FAQ
Forum
Contact Me
Links
Search
Users Online
Guests Online: 4
No Members Online

Registered Members: 251
Unactivated Members: 99
Newest Member: went1and
Forum Threads
Newest Threads
Packet Per Sec
Failover with NAT
Mikrotik Software
Service dropoff
antenna freq range
Hottest Threads
Packet Per Sec [2]
Failover with NAT [1]
Mikrotik Software [1]
exporting dynamic... [1]
Syslog Export [1]
Paypal Payments Accepted
Solution Graphics
Automated Backups
Posted by butche on December 22 2006 20:11
# Set the NTP servers below.

/ system ntp client
set enabled=yes mode=unicast primary-ntp=24.79.76.105 \
secondary-ntp=24.123.66.139

# This will create a text backup of your system and email it to an email
# address of your choice. The easiest way to insure you get this right
# is to cut/paste this text into notepad, then search and replace the
# following text with appropriate values.
# you@yourdomain.com - replace with your email address
# X.X.X.X - replace with your mailservers IP ADDRESS (not dns name)
#
# VERY IMPORTANT - this script will not run correctly if the system name
# is set with a space in it. You can fix this by going to SYSTEM->IDENTITY
# in Winbox.

/ system script
add name="makebackup" source=":log info \"Starting Backup Script\"\n \
/export file=\[/system identity get name\]\n \
:delay 20\n /tool e-mail send to=you@yourdomain.com \
subject=\(\[/system identity get name\] . \" \
Backup\"\) from=you@yourdomain.com \
file=\(\[/system identity get name\] . \".rsc\"\) \
server=X.X.X.X \n:log info \"Finished Backup Script\"" \ policy=ftp,reboot,read,write,policy,test

# Set the interval here to schedule the above backup script every
# day/week/month (or hour if you want). Don't mess with the start
# date or start time unless you have a good reason to do so

/ system scheduler
add name="email-backup" on-event=makebackup \
start-date=mar/03/2006 start-time=02:15:00 \
interval=7d comment="Weekly Backups" disabled=no



The above script can be tested in Winbox by clicking: SYSTEM->SCRIPT, then highlight the makebackup entry and click RUN. You will see entries in the log (click LOG to view these) to indicate the script starting and stopping. When it completes, check your email to insure you get the email with the backup attached. You can view further information about how to use the output of this script HERE .

Comments
No Comments have been Posted.
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
WISPA
Member Poll
In what area do you most lack expertise? (What area would you like to learn more about?)

Security (firewalls)

Routing (static)

Scripting (automation)

Basic TCP/IP information

OSPF/Dynamic Routing

Other (you can leave a comment)

You must login to vote.
Newsletter
Members only