I have to copy some files (100 kbs/file) from one folder X to folder Y and B after that I have to delete the files not the folders. Easy until now but folder X will almost continously receive files and I might think that there can be a case when the script will first copy 5 files to X then 8 to Y and delete 10 because there are files coming continously.

I have tested with 2000 files and everything worked great. But I have to be 100% sure that I don't lose any file.

This is my script:

```
cp -R -v /$RootPath/MAPADMIN/$Client/Inbox/* /$RootPath/$Client/Inbox/ >> log.txt
cp -R -v /$RootPath/MAPADMIN/$Client/Inbox/* /$RootPath/Backup/$Client/Inbox >> log.txt
find /$RootPath/MAPADMIN/$Client/Inbox/ -maxdepth 2 -type f -delete >> log.txt

```

This script is PERFECT for my situation but I have to be 100% sure that I have 0% lost files.
Is there someone that have tested something like this so a longer time or someone who can help me improve it.

Thank you!