Jump to content

Move a file from data to appdata


Recommended Posts

Hi guys,

i've noticed that i have files accessed many times a day, located in my arrey.

I would like to move them to my cache nvme but some of them are inside a docker container data folder.

 

Example:

i would like to move this file

/mnt/disk1/nextcloud/nextcloud.log

from arrey to

/mnt/user/appdata/nextcloud/data/nextcloud.log

is it possible?

I tried setting up a path in my docker container with no luck

 

P.S. I need to move just 1 file, not the whole folder

 

Thanks

 

Edited by Armisael81
Link to comment

ok, i switched to mnt/user for both, but i get this error

 

 

docker run
  -d
  --name='nextcloud'
  --net='bridge'
  -e TZ="Europe/Berlin"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Sacha-UnNAS"
  -e HOST_CONTAINERNAME="nextcloud"
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'UMASK'='022'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='https://[IP]:[PORT:443]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/nextcloud-logo.png'
  -p '444:443/tcp'
  -v '/mnt/user/nextcloud/':'/data':'rw'
  -v '/mnt/user/appdata/nextcloud/nextcloud.log':'/data/nextcloud.log':'rw'
  -v '/mnt/user/appdata/nextcloud':'/config':'rw'
  --device='/dev/dri' 'lscr.io/linuxserver/nextcloud'

1b47bb2a567350d84417b0453f6b9dff4bf825f4cacfea0e6387eb1cfebbc674
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/mnt/user/appdata/nextcloud/nextcloud.log" to rootfs at "/data/nextcloud.log": mount /mnt/user/appdata/nextcloud/nextcloud.log:/data/nextcloud.log (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.

Comando Fallito.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...