Community discussions

 
someone2
just joined
Topic Author
Posts: 22
Joined: Sun Jan 07, 2018 9:52 pm

Automatic backup

Wed Jan 10, 2018 2:22 pm

Hello
I want to add current date in the name of the backup file. How can i do that. I am starter

Example:
/system scheduler
add name="backup" on-event="system backup save name=today.backup" \
start-date=jan/01/1970 start-time=00:00:00 interval=10h comment="" \
disabled=no
 
User avatar
amt
Member
Member
Posts: 471
Joined: Fri Jan 16, 2015 2:05 pm

Re: Automatic backup

Wed Jan 10, 2018 2:32 pm

Hi,

try this;
/system backup save name=([/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]);
 
someone2
just joined
Topic Author
Posts: 22
Joined: Sun Jan 07, 2018 9:52 pm

Re: Automatic backup

Wed Jan 10, 2018 11:09 pm

Thanks alot
Is there any tutorial for mikrotik scipting. I want to learn scripts like that you sent
 
User avatar
amt
Member
Member
Posts: 471
Joined: Fri Jan 16, 2015 2:05 pm

Re: Automatic backup

Thu Jan 11, 2018 12:09 pm

you can check https://wiki.mikrotik.com/wiki/Scripts also forum has Scripting index... you can check also forum...
 
someone2
just joined
Topic Author
Posts: 22
Joined: Sun Jan 07, 2018 9:52 pm

Re: Automatic backup

Sat Mar 10, 2018 2:11 pm

Hello
If i have a config backup file of a RB750 device and that devices is damaged, is it possible to restore that backup to the new RB750 device( exatly the same model)
 
jarda
Forum Guru
Forum Guru
Posts: 7560
Joined: Mon Oct 22, 2012 4:46 pm

Re: Automatic backup

Sat Mar 10, 2018 4:07 pm

No. It is not suggested. You might encounter strange problems that only netinstall can repair after that. Use exported configuration script and import it if necessary.
 
someone2
just joined
Topic Author
Posts: 22
Joined: Sun Jan 07, 2018 9:52 pm

Re: Automatic backup

Sat Mar 10, 2018 6:07 pm

Thanks.
what about if I import the exported configurations to the new device. Is it ppssible to encounter problems.
do u mean that it is better to configure the new device instead of import or restoring?
 
jarda
Forum Guru
Forum Guru
Posts: 7560
Joined: Mon Oct 22, 2012 4:46 pm

Re: Automatic backup

Sat Mar 10, 2018 9:06 pm

It is always better to make a new configuration manually starting from blank config. Your old export can guide you and you can use it for copy and paste of its parts. Unfortunately even with removed config some defaults stays there...
 
someone2
just joined
Topic Author
Posts: 22
Joined: Sun Jan 07, 2018 9:52 pm

Re: Automatic backup

Sat Mar 10, 2018 9:09 pm

Thanks alot

Who is online

Users browsing this forum: GARCIADOEGOGERMAN, Google [Bot], tricksol and 61 guests