I'm trying to copy (backup) a specific folder files (no directories and sub-directories files) to a second folder. I nested find command with backstick but it give me error for each file with file_name (copy).extension
cp -a -t /home/gianmarco/backup2 `find /home/gianmarco/backup1 -maxdepth 1 -type f`
cp: cannot stat '/home/gianmarco/backup1/helloWorld': No such file or directory
cp: cannot stat '(copy).txt': No such file or directory
cp: cannot stat '/home/gianmarco/backup1/2nuovoFile': No such file or directory
cp: cannot stat '(copy).txt': No such file or directory
Any suggestion? Thanks!