September 11, 20187 yr From the console, as root user, I try to copy files between two local directories. It doesn't work. My 0,1% Linux knowledge does not help here. Any help is highly appreciated: Source directory: root@Tower2:~# ls -lisa "/mnt/cache/system/appdata/tinymediamanager/data/" total 51476 3861759 0 drwxr-xr-x 1 nobody users 108 Sep 7 17:59 ./ 3861601 0 drwxrwxrwx 1 nobody users 730 Sep 11 14:53 ../ 3861764 16 -rw-r--r-- 1 nobody users 12384 Sep 8 17:01 config.xml 3862052 42068 -rw-r--r-- 1 nobody users 43077632 Sep 9 07:38 movies.db 3862061 4 -rw-rw-rw- 1 nobody users 150 Sep 7 17:59 scraper_imdb.conf 3862060 4 -rw-rw-rw- 1 nobody users 1079 Sep 11 10:29 tmm.prop 3862053 9384 -rw-r--r-- 1 nobody users 9609216 Sep 11 10:29 tvshows.db Target directory: root@Tower2:~# ls -lisa "/mnt/user/Data/unRAID/Tower2/tinymediamanager_backup/data/" total 0 49087309 0 drwxrwxrwx 1 itsme users 6 Sep 11 14:46 ./ 49087306 0 drwxrwxrwx 1 itsme users 74 Sep 11 14:46 ../ Failing copy command: root@Tower2:~# cp "/mnt/cache/system/appdata/tinymediamanager/data/*" "/mnt/user/Data/unRAID/Tower2/tinymediamanager_backup/data/" cp: cannot stat '/mnt/cache/system/appdata/tinymediamanager/data/*': No such file or directory I tried with all possible wildcards -> no joy.
September 11, 20187 yr The problem is that you put the first parameter to the cp command in double quotes which means that it doesn’t expand the "*" to the list of file names but rather looks for a file called "*". Remove the double quotes. Edited September 11, 20187 yr by remotevisitor
Archived
This topic is now archived and is closed to further replies.