Hi group,
I need a script for rotate logs files in several directories. The idea is move all log files oldder than 30 days and for this I use the command find with the option "mtime" but i don't know what options are necesary for move all files oldder to another directory.
find /logs -name "*.xlm" -mtime +1 -exec mv -f /rotate {}\;
With this sintaxis the command not work well.
¿Anybody can help me?
Regards.
I need a script for rotate logs files in several directories. The idea is move all log files oldder than 30 days and for this I use the command find with the option "mtime" but i don't know what options are necesary for move all files oldder to another directory.
find /logs -name "*.xlm" -mtime +1 -exec mv -f /rotate {}\;
With this sintaxis the command not work well.
¿Anybody can help me?
Regards.