Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can't copy files as root

Featured Replies

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.

 

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 by remotevisitor

  • Author

Uah, stupid me.

 

Thanks a lot.

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.