December 16, 20232 yr 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 December 16, 20232 yr by PeacefulWarri0r
December 16, 20232 yr 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.
December 16, 20232 yr 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 December 16, 20232 yr by PeacefulWarri0r
December 16, 20232 yr 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.
December 16, 20232 yr Community Expert There are plenty of dockers already available for doing backup to cloud.
December 16, 20232 yr 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 December 16, 20232 yr by PeacefulWarri0r
December 16, 20232 yr 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.
December 16, 20232 yr 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]
December 16, 20232 yr 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
December 17, 20232 yr 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 December 17, 20232 yr 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.