Jump to content

Persist contents of /root/ between reboots


Recommended Posts

Posted

Is it possible to make the contents of /root/ persisted to the flash drive between reboots?

 

Or if this is already the case, how do I go about editing these files from outside of unraid?

Posted

Does that export its own shell inside of a docker container accessible only via the web shell? Or does it restore the actual contents of /root and /user/ in the real unraid os. 

 

Basically my use case is that I need some custom scripts to deal with copying files from NTFS drives over to the unraid share, whilst retaining all of the hardlinks instead of doubling the data, as I have 26TB of content but every single file has at least 2 different hardlinks to organize raw files into normalized named files.

Posted

Also I forgot to mention, I am using VSCode over SSH to edit the files, so a web terminal doesn't really work it needs to be the real unraid OS.

Posted

Apparently, rsync can just... do this... like, ya know, people thought of this before and implemented the solution 30 years ago.

 

https://www.cyberciti.biz/faq/linux-unix-apple-osx-bsd-rsync-copy-hard-links/

 

I was originally going to copy the data over the Sambda network drive, which wouldn't have worked, but if I just mount my drive into my unraid and do the copy in linux from unassigned-devices to /mnt/user/Share then it just works.

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...