Search Results

Search: Posts Made By: MadeInGermany
2,546
Posted By MadeInGermany
Hmm yes, -mtime 1 is between 24 and 48 hours ago....
Hmm yes, -mtime 1 is between 24 and 48 hours ago.
Run it at midnight! No problem if you intend to use cron.
--
The thread title is misleading. "rotation" should be "archiving".
2,546
Posted By MadeInGermany
Did you try -mtime 1? nowdate=`date +%Y-%m-%d` ...
Did you try -mtime 1?
nowdate=`date +%Y-%m-%d`
tarfile=/backups/$nowdate.tar
> $tarfile
find logdir/ -type f -mtime 1 -exec echo tar rf $tarfile {} +Remove the echo if you think it's okay.
...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 11:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy