How can I move the folders

I have this folder in my server. what I want is to move all the folders inside in movies to /new/wireframe/disc , I want to run my script to cron.

/var/lux/pool/movies/

To


/new/wireframe/disc/

So if I have

 /var/lux/pool/movies/2020/01/10
 /var/lux/pool/movies/2020/01/15
 /var/lux/pool/movies/2020/02/20
 /var/lux/pool/movies/2020/02/25

to

 /new/wireframe/disc/2020/01/10
 /new/wireframe/disc/2020/01/15
 /new/wireframe/disc/2020/02/20
 /new/wireframe/disc/2020/02/25

Thank you in advance

Instead of “moving” the files try using “cp” to copy the files and once copied, validate the copied files, ensure they are ok, then use “rm” to remove the original files.

Google for “Linux copy files examples” and “Linux delete files examples”

Edit:

RSYNC or GRSYNC could also be used.

Also opening two “folder” applications and dragging and dropping between folders.

@jemz, you’ve posted in the PHP forum. Are you asking how to do this with PHP?

3 Likes

Moved to Server Config, in the absence of further information from the OP.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.