Quote:
Originally Posted by wagscat123
Here's how you can do it from a terminal. Go to in a terminal to the folder where the files are. Then type:
[CODE]
$ cp -R 20111228 /usr/nas_share_link/archives
[CODE]
Substitute in the new folder name as you copy a the other folders.
|
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