Page 1 of 1

Compress files

Posted: Tue Nov 09, 2010 10:05 am
by mohand
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

Re: Compress files

Posted: Thu Nov 11, 2010 12:42 pm
by mrz
You can't compress files from RouterOS and it is possible to send only one file at a time.

Re: Compress files

Posted: Thu Jun 14, 2012 9:23 pm
by xerty
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

Re: Compress files

Posted: Fri Jun 15, 2012 8:54 am
by normis
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.

Re: Compress files

Posted: Thu Feb 14, 2013 10:52 am
by cca
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?

Re: Compress files

Posted: Tue Oct 14, 2014 9:30 pm
by DjM
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

Re: Compress files

Posted: Thu Jul 09, 2015 8:15 am
by AzAel76
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.