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.

Handle local user or better solution

Featured Replies

Hi there,

im a brand new unraid user since ...today.

 

I got a thinkcentre thinclient with 3 usb disks attached.

I would like to backup my servers in the internet. Therefore I add a new user and add his home directory and wrote a python program with backup multiple servers via rsync. Then I reboot and surprise everything was gone. I guess /home was on the unraid flash drive.

 

Before I try it again with home directory pointing to the array, I would like to ask if

a) there's maybe a better solution?

b) is it the correct way to create a user via webui changing home directory path in /etc/passwd and go?

 

I think I'm on the wrong path:

root@ratzfatz:~# grep backup /etc/passwd
backup:x:1000:1000::/mnt/disk1/home/backup:/bin/false
root@ratzfatz:~# su - backup -s /bin/bash
-su: cd: /root: Permission denied
WARNING: Error loading config file: /root/.docker/config.json: open /root/.docker/config.json: permission denied
-su: /root/.bash_profile: Permission denied
backup@ratzfatz:/mnt/disk1/home/backup$

 

Cheers

Edited by PeacefulWarri0r

Solved by PeacefulWarri0r

  • Community Expert

The OS is contained in archives on the flash drive. It is loaded fresh from these archives at each boot, into RAM, and runs completely in RAM. Only mounted devices are persistent storage. Any changes to OS files must be reapplied at each boot, in the config/go script on flash, or better, with the User Scripts plugin. The flash drive also contains your Unraid configuration (settings from the webUI).

 

Unraid is not intended to be a general purpose, multi-user Linux. It is a NAS OS with docker and VM hosting. Only root user has access to the webUI and command line, other users are strictly for network file access. If you want a general purpose, multi-user Linux, you can create a VM.

 

USB not recommended for array or pools for many reasons.

  • Author

I see. Okay, i will put my script into a docker container. I think that could be the thing.

Regarding USB, I just got a Lenovo ThinkCentre M910q with one small ssd included.
I guess the only way to achieve more disk space are usb disks?

 

Edited by PeacefulWarri0r

  • Community Expert
23 minutes ago, trurl said:

USB not recommended for array or pools for many reasons.

If you don't have a parity disk then the array can't get out of sync when USB disconnects drop a disk, but of course without parity you can't rebuild an array disk.

 

If you only create single disk pools (cache or other non-array pool) then the single disk might drop but won't affect other disks.

 

Those scenarios will probably avoid many of the USB problems we have seen.

  • Community Expert

There are plenty of dockers already available for doing backup to cloud.

  • Author

Soo...when I understand correctly you telling me "sell your thinclient - buy a nas"?

 

I dont want to backup in the cloud, I like to backup from the cloud. Multiple servers, multiple directory's. Im not that good in using existing docker containers for it.

Edited by PeacefulWarri0r

  • Community Expert

I use rsync scripts all the time for backup to another server. Don't see why a docker needs to be involved. You can even schedule scripts with the User Scripts plugin.

  • Author

Happy to see you save me from writing a own docker image. I checked the user script plugin out.

But where to put the private key?

 

Script location: /tmp/user.scripts/tmpScripts/backup_webserver_db/script
Note that closing this window will abort the execution of this script
+ whoami
root
+ rsync -avr -e 'ssh -i /boot/config/ssh/root/.ssh/id_rsa -p 9999' [email protected]:/var/tmp/ /mnt/disk1/backup/
Warning: Identity file /boot/config/ssh/root/.ssh/id_rsa not accessible: No such file or directory.

rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(231) [Receiver=3.2.7]

 

  • Community Expert

I use the Remote Share feature of Unassigned Devices to mount shares on my backup server then rsync to them, but I run that manually. My more important backups go to external drives connected to the same server for storing offsite.

 

There are some other threads on the forum using rsync to directly login to the remote maybe you can find them.

 

Here are some things from my bookmarks that might be relevant:

 

https://forums.unraid.net/topic/51160-passwordless-ssh-login/page/3/

 

https://forums.unraid.net/topic/52830-syncronize-servers-using-rsync-over-ssh-next-door-or-across-the-world/

 

https://forums.unraid.net/topic/30382-how-to-move-data-from-unraid1-to-unraid2/#comment-288142

 

https://unraid.net/blog/unraid-server-to-server-backups-with-rsync-and-wireguard

  • Author
  • Solution

Hey,
thank you very much for the hints. Thats all to complicated for me.

I build up a container now, it's not perfect and everything finish. But it does what I need.

 

github

 

Edited by PeacefulWarri0r

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

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.