Community discussions

MikroTik App
 
mohand
just joined
Topic Author
Posts: 5
Joined: Wed Nov 14, 2007 10:33 am

Compress files

Tue Nov 09, 2010 10:05 am

Hi,
is it possible to run a certain script to compress a group of files and folders contained in \file submenu?
or else is it possible to send a 1 email message containing multiple files?

I appreciate your help

Mohanad
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7195
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Compress files

Thu Nov 11, 2010 12:42 pm

You can't compress files from RouterOS and it is possible to send only one file at a time.
 
xerty
just joined
Posts: 5
Joined: Thu Feb 03, 2011 12:15 pm

Re: Compress files

Thu Jun 14, 2012 9:23 pm

Why not do exact mechanism as in normal linux - tar older log files. My not-so-used network would generate about 250mb log files per day (logging set to 60k lines per file, 60k files, running at 15/15 - 30/30 Mbit/s average) and i don't like to have them on remote machine, instead i would like them compressed and manually or by script sent via e-mail daily, then deleted
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26931
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Compress files

Fri Jun 15, 2012 8:54 am

We would need to include the TAR program in RouterOS. Every small feature like this increases RouterOS size, and for some of the RouterBOARD devices with 32MB storage size, we need to be very careful with what we include.
 
cca
just joined
Posts: 5
Joined: Thu Feb 14, 2013 10:37 am

Re: Compress files

Thu Feb 14, 2013 10:52 am

Cannot you make it in a form of separate module that is loaded only on demand?
Put there some useful tools like wget, zip, gzip, hotspot extended status with status of not authiorized users, mesh monitor/status, etc?
 
DjM
Member Candidate
Member Candidate
Posts: 116
Joined: Sun Dec 27, 2009 2:44 pm

Re: Compress files

Tue Oct 14, 2014 9:30 pm

Hello MikroTik support team,

it's a quite old topic, but the idea is still actual I think :-)

1) Are there any plans to implement compression tools (tar, gzip, etc.) in /file menu in ROS, please?
2) Due to keeping a minimal size of ROS, will be the form of different .npk package acceptable?

I know that ROS is primary a router, but mentioned features can make some tasks more effective (big log transfer, etc.).

Thank you
 
AzAel76
just joined
Posts: 18
Joined: Tue Apr 07, 2015 3:08 am

Re: Compress files

Thu Jul 09, 2015 8:15 am

I wanted to re-open this since there seems to be some missing information.

The user-manager package looks like it contains tar. e.g. when running a backup from the UserManager web interface the resulting file is a tar file containing logsql.umb and mainsql.umb (I'll assume another file would be there if i selected the option to backup languages too)

Why then is function not available for scripting?

To get a full backup of one of my devices running UserManager my script has to save each database element and then export the config and then send each file individually.
And periodically i have to manually copy every single file from the system as the backup function in the file menu of winbox doesn't seem to save any of that.