copy many files to another location

sharif854

New member
Joined
Aug 28, 2014
Messages
1
hi
i have img folder that has more than 20000 image files and has more than 3 gigabyte
i need to move them
but standard copy has timeout
i think cronjob maybe help
but i don't know how call cron job to copy theme and in next time resume copy files that not copy
if you have better way please tell me
thanks
 
Adding my two cents to point out that from the shell there's a big difference between copying and moving. While the post subject is Copy the post itself says move.

Moving between two directories on the same drive/partition is close to instantaneous, even for thousands of files. So if you really need them only at the new location, do something like this:
Code:
mv /path/to/files/* /newpath/to/files/.
If both path and newpath are on the same partition the move will be almost instantaneous, but if they're not the system will first do a copy, and then remove them from the old location.

Jeff
 
Back
Top