Oh, and for the sake of completeness, you can add that as a shell script to your crontab to run every month as described under http://en.wikipedia.org/wi
0 0 1 * * /Monitor/gsmbackup.sh
if you save
#!/bin/bash
find /Monitor -name "*.gsm" -mtime 180 -exec mv {} /OldMonitor \;
as /Monitor/gsmbackup.sh
Main Topics
Browse All Topics





by: jkrPosted on 2007-03-06 at 07:57:08ID: 18662512
find /Monitor -name "*.gsm" -mtime 180 -exec mv {} /OldMonitor \;
I am assuming '180 days' here for 6 months. If that criteria applies, the 'mv' command will move them to the archive directory.