faster way to move old file
I have thousands files in a path , I tried to use command "find" to move the old file (elder than 150 days) to another path , but it takes 1 day but only move 15% of these files , and the server also become very slow .
the command
find . -mtime +150 -exec mv {} path \;
If I use these way to move files , I think I need 3-4 days more , can advise what is the faster way to move file ? thx
|