Community discussions

MikroTik App
 
eldoncito2019
Member
Member
Topic Author
Posts: 332
Joined: Fri Jun 14, 2019 1:07 pm

Save .rsc file in subfolder

Mon Oct 10, 2022 6:18 pm

Guys,
I'm trying to save a "rsc" backup to a subfolder, and I can't do it, here's my script
{
:local name  "750GL(SERVER)"
:local fname "RB"
:local backupname "$fname$name"

/ip smb shares
   :local temp [get [find default=yes] directory]
   set [find default=yes] directory=$fname
   set [find default=yes] directory=$temp
   export compact file=$backupname
}

Thanks for the help friends.



EL DONCITO.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Save .rsc file in subfolder

Mon Oct 10, 2022 6:20 pm

but why don't you ask in the same topic where you copied the script from, that you then modified as you like, removing needed parts?

viewtopic.php?t=189823#p961045

Who is online

Users browsing this forum: ko00000000001, mbezuidenhout and 17 guests