Quote:
Originally Posted by calicowboy54
I have several folders below in a directory that i need to have moved to a backup nas based on there older date....
/var/logfiles/
20111225
20111226
20111227
20111228
20111229
20111230
20111231
20120101
i need to move above directories and all sub content to folder
back_up_data
can someone help me with command that i will put in to a script to cron this out...
|
Sorry i need to be more specific...
i need to Script this out where there are about 50files in Directory /var/logfiles/
they are stored in directories named like this
20111228
I need to move all the folders in that directory that are older than 5 days to another directory called /usr/nas_share_link/archvies
this is due to limited space on the /var/ directory so i need to move stuff off as new folders are being created with data inside them......
thanks