Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /system scheduler
- add interval=1d name=backup on-event=backupconfig start-date=may/23/2013 start-time=05:00:00
- /system script
- add name=backupconfig source="\
- \n\
- \n:global routername [/system identity get name];\
- \n\
- \n:global ftpserver \"91.238.116.1\";\
- \n\
- \n:global ftpuser \"ftp-p8\";\
- \n\
- \n:global ftppassword canappia;\
- \n\
- \n:global thisdate [/system clock get date];\
- \n\
- \n:global datetimestring ([:pick \$thisdate 0 3] .\"-\" . [:pick \$thisdat\
- e 4 6] .\"-\" . [:pick \$thisdate 7 11]);\
- \n\
- \n/system backup save name=\"\$[/system identity get name]_\$datetimestrin\
- g\" ;:delay 2;/tool fetch address=\$ftpserver src-path=\"\$[/system identi\
- ty get name]_\$datetimestring.backup\" user=\$ftpuser password=\$ftppasswo\
- rd upload=yes mode=ftp dst-path=\"/BackupMikrotik/\$[/system identity get \
- name]_\$datetimestring.backup\";:delay 1;/file remove \"\$[/system identit\
- y get name]_\$datetimestring.backup\";"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement