mv: missing file argument
Hi, I`m totally new to Linux and I would really appreciate any help I can get. Here`s my scnenario below:
Objective: To move or backup all the 30 days old files to the other server within LAN. I have tried testing it first within the server by performing below commands: find /usr/test1/* -mtime +30 -exec mv {} /usr/test2/ \; But I`m getting "mv: missing file argument" error when I try this. Please Help. Thanks in advance, ericczed |
You can see what commands find is generating by inserting an echo after -exec
Code:
find /usr/test1/* -mtime +30 -exec echo mv {} /usr/test2/ \; Code:
find /usr/test1/* -type f -mtime +30 -exec mv {} /usr/test2/ \; |
All times are GMT -5. The time now is 05:19 PM. |