linux Copy the file to a subfolder of the current directory, such as
The directory structure is probably
-sh
|__ db_backup
|___ test
|____ 2018_01_01_00_00_00
|_____ 2018_01_01_00_00_00.sql.gz
|___ backup
cp.sh
Shell script file is about:
#!/bin/sh
cd /home/waka/sh/db_backup/test
cp $(find /home/waka/sh/db_backup/test/ -type f -name "*.sql.gz") /home/waka/sh/db_backup/test/backup