No video

Backup your Unraid Server with LuckyBackup | It uses rsync

  Рет қаралды 26,818

SPX Labs

SPX Labs

Күн бұрын

Пікірлер: 78
@sorrynotsorry7727
@sorrynotsorry7727 5 ай бұрын
The steps in this video are missing one important thing. You MUST go to Settings>Management Access and turn SSH to "Yes". Otherwise you will get a refusal everytime you attempt to connect to the backup machine.
@alexorex1801
@alexorex1801 4 ай бұрын
Thank you sooo much! I've been trying to configure a backup all day.
@carsonhardie565
@carsonhardie565 Жыл бұрын
I have been trying to just use rsync for like 2 weeks to make my backups on my 2nd server this made it simple thanks for the video
@SPXLabs
@SPXLabs Жыл бұрын
No problem! Glad it helped
@scubieman
@scubieman 2 жыл бұрын
I love being lucky!
@illstateofmind
@illstateofmind Жыл бұрын
Awesome video! Many thanks for this! You the man!
@SPXLabs
@SPXLabs Жыл бұрын
No problem
@TheDadNerd
@TheDadNerd 2 жыл бұрын
As always, good stuff!
@gkaplan443
@gkaplan443 Жыл бұрын
It is important to have a PULL backup system to Unraid to minimize ransomware attack to the Unraid shares.
@biochemscott
@biochemscott 2 жыл бұрын
Exactly what I needed. Thank you!
@biochemscott
@biochemscott 2 жыл бұрын
After working perfectly luckybackup stopped working. id_rsa and is_rsa.pub are no longer visible in the 'remote' tab during setup, only known_hosts (file size is reporting wrong too). I used CLI to verify they are in fact there, but no 'luck' (nice pun, thank you very much) through luckybackup. thoughts? On my system the /root/.ssh folder is reporting as a symlink pointing to /boot/config/plugins/dockerMan/ -- is that supposed to to do that? I don't think luckybackup is following the correct path the generated key
@SPXLabs
@SPXLabs 2 жыл бұрын
Man you really got me on this one. A sym link sounds fun but the path seems wrong. I think. Anyway, I’d maybe adjust the permissions of the id_rsa key and see if they appear. Maybe a chmod 644 or 655.
@biochemscott
@biochemscott 2 жыл бұрын
@@SPXLabs Thanks for the reply! I tried changing permissions but no luck. People are reporting that in Unraid 6.10.x a lot of issues surrounding permission got out of whack. I did not generate the symlink, not sure why the system automatically did that. I didn't try changing permissions of the 'boot' folder that the symlink is pointing to, I will try that first then if that fails I will try to create a new .SSH folder directly in root that does not point to the boot folder. The only think i know for sure is that luckybackup doesn't see the rsa files I generated. thanks again for the troubleshooting, I respect that you're not my tech support, you kindly made this great guide and I appreciate that! I will let you know if it works.
@SPXLabs
@SPXLabs 2 жыл бұрын
What happens if you move the keys inside the default directory that lucky backup tries to use?
@biochemscott
@biochemscott 2 жыл бұрын
@@SPXLabs thanks! Turns out that the luckybackup volume mapping was off, so it was trying to find keys in a folder that didn't exist. I was able to correct that and we're up and running. thanks again.
@Kazzildo
@Kazzildo Жыл бұрын
Thumbs up just for that Mini Nuke back there on the shelf 👍
@SPXLabs
@SPXLabs Жыл бұрын
Never leave home without one!
@ShinyTechThings
@ShinyTechThings 2 жыл бұрын
I backup to external hard drives and rotate them and keep one out of the house.🤓😎
@jfkastner
@jfkastner 2 жыл бұрын
Wish you Good Luck! I use a bash script to rsync 2 external HD that I plug into a cradle from time to time, so they are airgapped (RE hack / sparking)
@SPXLabs
@SPXLabs 2 жыл бұрын
Nice. As you may know I too prefer the bash script method.
@jfkastner
@jfkastner 2 жыл бұрын
@@SPXLabs BTW the Airgap is important, a few feet at least - I lost a lot of equipment when a lightning strike came down 30 ft from the house, into the ground ... while I was sitting there with a window open ;-) AWESOME. Nature's power.
@AviDarks
@AviDarks 2 жыл бұрын
@jay kastner Can you share the code please?
@jfkastner
@jfkastner 2 жыл бұрын
@@AviDarks it's pretty simple, and i run this manually w/o CRON etc #! /bin/bash umount /dev/sdc1 mount /dev/sdc1 /media/extern rsync -aAXvh --delete /media/data /media/extern rsync -aAXvh --delete /media/moredata /media/extern rsync -aAXvh --delete /media/evenmoredata /media/extern BTW my drives use all ext4
@julian.morgan
@julian.morgan Жыл бұрын
I'd love to see a tutorial on how to back up selected shares or the whole array to an unassigned device drive - internal or via USB. While some people have a second unraid server for backups, I'd guess more of us have to make do with one or more external drives. My array is 16TB, but I use less than 50% of it so I can get away with using an 8TB drive for backups . . . just! I managed to figure out how to do this a few months back using rsync, but I've lost my notes and would much prefer to automate the process anyway. When I ask about it on forums I just get told to 'run a script' - which firstly assumes I know anything about writing scripts and secondly, fails to factor in that when you're about to start a process that transfers 8TB or more of data you REALLY don't want to get it wrong! I only have the one 8TB drive! Cheers
@SPXLabs
@SPXLabs Жыл бұрын
I'll see if I can make something for external drives but not going to lie I'd still probably use rsync + the User Scripts plugin. I feel like it's just easier. Also also consider hosting WikiJS to document stuff in the future that way you can relieve your success in the future.
@bitemyassets
@bitemyassets 2 ай бұрын
this is exactly what I am trying to figure out at the moment, any advice or could you point me in the right direction? I know zero about scripts :/ total noob.
@quadcom
@quadcom 2 жыл бұрын
Came across this while looking for a solution to getting an rsync target so the my Synology will play nice. Synology REALLY wants to keep you in their ecosystem and make it super difficult to connect to external rsync servers. There was supposed to be rsync server support built directly into unraid but I haven't found anything that makes this clear on getting Synology Hyperbackup to talk to it.
@SPXLabs
@SPXLabs 2 жыл бұрын
Even if you tried to do everything command line? I know GUI's are nice but rsync is relatively simple aside from the absolutely massively long command with variables.
@TomWhi
@TomWhi 2 жыл бұрын
Great video. Two things: 1) this would amazingly with ZeroTierOne to a remote server, since they just appear on a local IP. I use this method to backup to a server at my dad’s but doing it the command line way. So this app will automate it nicely!! 2) I’m worried your keys won’t survive a reboot of the server, I think you have to save the, to the boot disk so they’re copied in each time?
@SPXLabs
@SPXLabs 2 жыл бұрын
In the latest version of unraid there is a symbolic link in /root/.ssh that points to /boot/config/.ssh or whatever the path is. So they keys get put on the usb drive already.
@TomWhi
@TomWhi 2 жыл бұрын
@@SPXLabs thanks for the clarification! That's great to know
@SPXLabs
@SPXLabs 2 жыл бұрын
BUT in retrospective I think that if the container updates the keys generated in the container will have to be regenerated
@TomWhi
@TomWhi 2 жыл бұрын
@@SPXLabs yeah I guess that could be mapped through to the container from the host so they're preserved? However the private key will then be in a share on the array or something
@SPXLabs
@SPXLabs 2 жыл бұрын
@@TomWhi It could be, by default some keys are mapped in the appdata directory that comes with the container but I couldn't get any of the pre-provided keys to work.
@gkaplan443
@gkaplan443 Жыл бұрын
What would be great, Most of us will have an Unraid server that is also our backup server. We don't have 2 unraid servers. So please put out a video to configure the Luckybackup Docker or another rsync docker, that would backup of various Windows PC's to the Unraid server both to the array or also to an unassigned disk (as the backup).
@SPXLabs
@SPXLabs Жыл бұрын
Like backup Windows data that is on your PC to Unraid?
@Naaackers
@Naaackers 7 ай бұрын
Yo dude! Thanks for this video. I followed it one time and got it working, but going through a second time, I'm running into an error. At the 10:19 mark, you show locating the folder on the server that you want to backup your data to. However, when I'm typing out my path for the "remote" server, all I see are folders and and files on the source server. So it makes it look like I'm trying to backup the server into itself. Is there a reason the UI doesn't show the directory or files/folders of the remote server? I'm doing a backup job instead of a sync, so when I do a dry run of the task, the source and the destination both show local paths with no mention to IP address of the remote host, even though I followed your same steps of checking 'remote host' box, adding ssh key, etc. Your screen at 10:33 shows a local path for Sync directory A, but a remote path for B. I'm not a linux guy so it just seemed silly or odd that you can't just browse to the directory you want to back stuff up to like you can when selecting the source path. Thanks in advance!
@SPXLabs
@SPXLabs 7 ай бұрын
I think you can't browse the remote directories because LuckyBackup doesn't establish a connection with the server until you run the commands. You will just have to know what the path is before hand not sure of a better way.
@donprokop66
@donprokop66 2 жыл бұрын
Could you please provide update on Lucky Backup? In terms of stability, updates, maintance etc. Thx
@SPXLabs
@SPXLabs 2 жыл бұрын
Just an FYI, I don't use this method daily. In my opinion it's more complicated than the method that I use. My preferred method is using RSYNC with User Scripts for weekly backups. It has worked flawlessly for months and is not effected by container updates. kzfaq.info/get/bejne/pcplZstllc_RgXU.html
@ahwayzcool4630
@ahwayzcool4630 Жыл бұрын
Just what I was looking for! Is there a way to make your main server power up the backup server, do the backup and then power down the backup server?
@SPXLabs
@SPXLabs Жыл бұрын
Yes. You can use user scripts to send a magic packet to make another computer turn on. It’s call “Wake On LAN”. Then after a backup finishes you can use a script to ssh and shutdown the remote computer.
@ahwayzcool4630
@ahwayzcool4630 Жыл бұрын
@@SPXLabs OK thanks! I'm still new to this unraid server stuff. Do you know of a tutorial that shows how to do this?
@SPXLabs
@SPXLabs Жыл бұрын
I do not know if one off the top of my head. Also I’d start with making sure your MOBO supports WOL
@ahwayzcool4630
@ahwayzcool4630 Жыл бұрын
Ok thanks. 🙂
@Ducati1198desmo
@Ducati1198desmo 2 жыл бұрын
Cron is not working for me
@Blue-go5fj
@Blue-go5fj 2 жыл бұрын
Maybe I'm doing something wrong, but when I go to select my id_RSA file it only sees the known_hosts file but when i run ls on the .ssh file i can see all 3 files? any idea what im doing wrong?
@SPXLabs
@SPXLabs 2 жыл бұрын
Make sure the directories / mount point is correct. Restart the container. If neither of those work… then maybe change permissions of the files to something like 644. chmod 644 id_rsa*
@miicar204
@miicar204 7 ай бұрын
Quick question. I need to backup some shares that are private, or not shown to SMB at all. When giving LB "/mnt/user" and root = true, I can only see the shares that are shares. But if i give LB only "/" then i see all the shares (even hidden ones), but i get a double "/mnt/user/mnt/user/(share name)". the extra "/mnt/user" is annoying and i don't understand why i cant see all the shares, if my start point is "/mnt/user", since i do have root = true set as well!?! Maybe I'm not understanding something here??
@SPXLabs
@SPXLabs 7 ай бұрын
I have absolutely no idea how any of this works for what you are trying to do.
@mochalatte3547
@mochalatte3547 2 жыл бұрын
What 10GIG Switch do you folks recommend? I am getting rid of my old 1gig switch and just upgraded to CAT6
@SPXLabs
@SPXLabs 2 жыл бұрын
Depends on your budget I suppose. I rock a Unifi XG 16 but I don’t believe they sell them anymore.
@mochalatte3547
@mochalatte3547 Жыл бұрын
@@SPXLabs Thank you. I opted for Mikrotik switch and the SFP+ Mikrotik offers as well. Downside is the negotiation needs to be manually set for 10G otherwise the upload speed is dismal compared to the download speed for a 5000 mb/s connection. (about 4300 mbps down but up is 250 mbps).
@KS-wr8ub
@KS-wr8ub 10 ай бұрын
At 9:40 you say that you really should have a user to manage backups, an I 100% agree, but in Unraid there's no way to use SSH with anything else than root. Do you have any way of getting around that?
@SPXLabs
@SPXLabs 10 ай бұрын
I haven't tried it personally but I'd imagine it would require manipulating the sshd_config or maybe another ssh plugin.
@ahwayzcool4630
@ahwayzcool4630 Жыл бұрын
when trying to send the ssh key to my backup unraid server im getting connection refused. hmm. Nevermind. I figured it out. In unraid backup pc i had to go to settings, management access and enable ssh.
@SteveHill68K
@SteveHill68K 4 ай бұрын
Thanks for posting your solution. I ran into the same problem myself.
@ahwayzcool4630
@ahwayzcool4630 4 ай бұрын
@SteveHill68K You welcome. It can be a pain trying to figure this stuff out.
@TheBeardedLibertarian
@TheBeardedLibertarian Жыл бұрын
anybody get sendmail or sendEmail working, both just time out on me?
@kimsonvu
@kimsonvu 2 жыл бұрын
Should i do sync 2 ways with Lucybackup?
@SPXLabs
@SPXLabs 2 жыл бұрын
Well, that's really a question I can't answer because it depends on you. However, I can give you tons of information to figure out if you should do it or not. Synchronize source & destination Use this task type in order to sync the source with the destination by keeping the most recent files at both of them. It can prove really useful if you modify specific files from different locations. **Please note that if you delete files at either the source or the destination and you perform this task, you will end up with these files created again because they still exist at the other location. Example: Let's assume that you are working on a project. You have created the directory /home/luckyb/project at your home PC and save all relevant files in there. At the same time there is a need to work on some of these files at another PC, so you copy them at your usb flash drive (location: /media/myUSB/project). There are times when you do not remember which file you edited when and from where. So you create a task declaring: source: /home/luckyb/project/ destination: /media/myUSB/project/ task type: “sync directories” This will result in a 2-way transfer. Newest modified files will be transfered from source to destination or the other way round. Also freshly created files at one of the locations will be copied over to the other.
@CupidFromKentucky
@CupidFromKentucky Жыл бұрын
Why is there background music?
@TechySpeaking
@TechySpeaking 2 жыл бұрын
First
@rfehr613
@rfehr613 Жыл бұрын
Does this work to copy data from Windows to Unraid?
@SPXLabs
@SPXLabs Жыл бұрын
I don’t believe so. If Windows has rsync or the ability to install it then probably yea
@rfehr613
@rfehr613 Жыл бұрын
@@SPXLabs Windows doesn't have rsync, but you can setup rsync on a Linux machine to access Windows shares. That's why i thought maybe this might work the same way too.
@SPXLabs
@SPXLabs Жыл бұрын
Oh okay. I'm not too familiar with Windows like that so I can't say for sure.
@ryanmalone2681
@ryanmalone2681 2 ай бұрын
So ridiculous every way to do a simple transfer of data is so complex. I just want want to drag & drop it. Spent 6 hours today trying to figure this out and still no data on my new TrueNAS device. Good thing I only have 100TB to transfer. 😭
@SPXLabs
@SPXLabs 2 ай бұрын
Personally I feel that this was is more complex than my preferred way of just using rsync in “User Scripts” but everyone is too afraid to type in some very simple commands. I think you would be better off just using rsync. You could also technically map/mount both servers to the same computer then drag and drop files. But I wouldn’t recommend it.
@R50_J0
@R50_J0 Жыл бұрын
Thank you for demonstrating that UNRAID is still not production-ready. It's a home server enthusiast's pretty play toy, and the community plugins are a testing ground for beta code.
@SPXLabs
@SPXLabs Жыл бұрын
No problem. I haven’t heard of anyone claiming it’s meant for business, I hope no one is.
@orlandoautomall
@orlandoautomall 2 жыл бұрын
it is a terrible idea to backup an unbraid server to another server that is locally in the same network. Please do not do this. The server should be in another location, preferably far enough so that natural disasters are unlikely to render both servers at risk.
@SPXLabs
@SPXLabs 2 жыл бұрын
I do both local and distance.
@ajugland
@ajugland 2 жыл бұрын
Doesnt work when I have a user and password in order to login to qnap. Console in luckybackup when trying to transfer ssh key doesnt work. Is it another way to do it?
@SPXLabs
@SPXLabs 2 жыл бұрын
It sounds like the ssh keys aren’t working correctly or aren’t shared correctly. Is there a way in Qnap to disable password authentication? That’s not a good idea but you could test it out and see what happens. You can use sshpass with rsync to add the password to the rsync command but that also isn’t a very good approach.
@ajugland
@ajugland 2 жыл бұрын
@@SPXLabs Thanks. Yes its possible to remove password. I found a way just to use SMB password. I mounted SMB in unraid and then added the shares to luckybackup container. And boom. Amazing sync and backup for us who like GUI. 4 hours and 15 minutes copying 211 000 files and about 2,6TB. Had to compress small files to rar and then i saved about 4 hours each time i take backup. And now i got 2 servers in sync and one backup pluss nextcloud to PCs.
How to Backup your Mac with Timemachine & Unraid - 2022
14:10
Spaceinvader One
Рет қаралды 18 М.
Making an Auto Backup / Failover Server - part 1
11:06
Spaceinvader One
Рет қаралды 31 М.
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 30 МЛН
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45
Don't Lose Your Data Like a Dummy
20:48
Snazzy Labs
Рет қаралды 149 М.
ZFS Essentials: Auto-Converting Folders to Datasets on Unraid
23:11
Spaceinvader One
Рет қаралды 27 М.
NEVER install these programs on your PC... EVER!!!
19:26
JayzTwoCents
Рет қаралды 3,1 МЛН
How Do I Backup All My Servers???
19:49
Craft Computing
Рет қаралды 176 М.
How to Backup your Windows PC to an Unraid Server using Windows Backup
15:06
I Lost All My Appdata Due to a Reckless Mistake !!
21:57
Spaceinvader One
Рет қаралды 25 М.
DITCHING my Homelab software for UNRAID
17:28
TechHut
Рет қаралды 53 М.
How to Backup Unraid to Backblaze B2
13:29
TheDadNerd
Рет қаралды 8 М.
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 30 МЛН