Mihle

Members
  • Posts

    132
  • Joined

  • Last visited

Everything posted by Mihle

  1. Standard config in ddclient dont have the use=web in the cloudflare section, but after struggling to figure it out, as ddclient log only said something about missing IP, I came over this and adding that seemed to make it work. Had an easier time setting it up for Namecheap that I used before than Cloudflare.
  2. Trying to make a script I can run that backs stuff up to an unassigned devices HDD. #!/bin/bash #Destination of the backup: destination="/mnt/disks/OfflineBackup" #Name of Backup disk drive=dev1 ######################################################################## #Backup with docker containers stopped: #Stop Docker Containers echo 'Stopping Docker Containers' docker stop $(docker ps -a -q) #Backup Docker Appdata via rsync echo 'Making Backup of Appdata' rsync -avr --delete "/mnt/user/appdata" $destination #Backup Flash drive backup share via rsync echo 'Making Backup of Flash drive' rsync -avr --delete "/mnt/user/NAS Flash drive backup" $destination #Backup Nextcloud share via rsync echo 'Making Backup of Nextcloud' rsync -avr --delete "/mnt/user/NCloud" $destination #Start Docker Containers echo 'Starting up Docker Containers' /etc/rc.d/rc.docker start ######################################################################## #Backup of the other stuff: #Backup Game Backup share via rsync echo 'Making Backup Game Backup share' rsync -avr --delete "/mnt/user/Game Backups" $destination #Backup Photos and Videos share via rsync echo 'Making Backup of Photos and Videos share' rsync -avr --delete "/mnt/user/Photos and Videos" $destination ######################################################################## #Umount destination echo 'Unmounting and spinning down Disk....' /usr/local/sbin/rc.unassigned umount $drive /usr/local/sbin/rc.unassigned spindown $drive #Notify about backup complete /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Backup to Unassigned Disk" -d "A copy of important data has been backed up" -i "normal" echo 'Backup Complete' I am not sure if I should use echo or logger? Also, in a test script, I didnt manage to get the 2>&1 >> $LOGFILE that I see some use at the end of rsync commands to do anything, what does it do and should I try to get it to work? Some do >> var/log/[something].log (together with some date command) What do they do? For reference, I set the drive to automount, then I want to manually have to start the script, but when its done running I want to be ready to just unplug without having to press anything more. (and then take to another location until its time to update it) (offline backup)
  3. This is my current scrip, havent tested the hole script at once yet: #!/bin/bash #Destination of the backup: destination="/mnt/disks/OfflineBackup" #Name of Backup disk drive=dev1 ######################################################################## #Backup with docker containers stopped: #Stop Docker Containers echo 'Stopping Docker Containers' docker stop $(docker ps -a -q) #Backup Docker Appdata via rsync echo 'Making Backup of Appdata' rsync -avr --delete "/mnt/user/appdata" $destination #Backup Flash drive backup share via rsync echo 'Making Backup of Flash drive' rsync -avr --delete "/mnt/user/NAS Flash drive backup" $destination #Backup Nextcloud share via rsync echo 'Making Backup of Nextcloud' rsync -avr --delete "/mnt/user/NCloud" $destination #Start Docker Containers echo 'Starting up Docker Containers' /etc/rc.d/rc.docker start ######################################################################## #Backup of the other stuff: #Backup Game Backup share via rsync echo 'Making Backup Game Backup share' rsync -avr --delete "/mnt/user/Game Backups" $destination #Backup Photos and Videos share via rsync echo 'Making Backup of Photos and Videos share' rsync -avr --delete "/mnt/user/Photos and Videos" $destination ######################################################################## #Umount destination echo 'Unmounting and spinning down Disk....' /usr/local/sbin/rc.unassigned umount $drive /usr/local/sbin/rc.unassigned spindown $drive #Notify about backup complete /usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Backup to Unassigned Disk" -d "A copy of important data has been backed up" -i "normal" echo 'Backup Complete' I am not sure if I should use echo or logger? Also, in a test script, I didnt manage to get the 2>&1 >> $LOGFILE that I see some use at the end of rsync commands to do anything, what does it do and should I try to get it to work? for reference, I set the drive to automount, then I want to manually have to start the script, but when its done running I want to be ready to just unplug without having to press anything more. (and then take to another location until its time to update it) (offline backup)
  4. I have seen some scripts include "echo", "logger" and behind some commands they write 2>&1 >>[some adress to a log file], and a date command, what do they do? Any website I havent found yet that explains it? (might be searching for the wrong things)
  5. So, If I used: rsync -avr --delete /mnt/cache/Ncloud It would only do data on the cache, if I did; rsync -avr --delete /mnt/disk1/Ncloud It would only do the data on the array disk, but if I do: rsync -avr --delete /mnt/user/Ncloud It will do everything no matter where its located? (same with appdata)
  6. Would it work fine if you just do the Nextcloud share and Appdata share for Nextcloud? do you need to turn off Nextcloud while it runs?
  7. How would I go about backing up Nextcloud database in a script like this where partal of the data could be on the cache? Would just selecting the hole share work? would Nextcloud have to be stopped?
  8. Found a script someone posted here I am not quite sure how to use yet. But, do I need to do anything special for Nextcloud that is partly on cache?
  9. So I want to have something that can backup both just shares, and data that Nextcloud has (MariaDB), both stored on array and in cache, whenever I press a button OR the drive get connected to the NAS. (Offline copy I would update every few months, store offsite maybe), I tried searching the forum and google already, but didnt really find questions I was looking for, if anyone have links, feel free to share. How would I go about doing that? rsync? Something else? If script, is there some script that someone else have made that I can use and modify or something? I know nothing about rsync or scripts. Just a normal share is probably the easiest, but Nextcloud that is its own thing and a database, I am guessing you cant just treat the same? Would Nextcloud have to be not running while it is happening, if so, how? Less important right now to answer: How would I Restore the Nextcloud part if I need to? For reference, I can not just copy a hole drive, the drive I want to backup to is smaller than my other disk, but I dont feel I need to have an offline copy of everything.
  10. I dont really have many power outages, for a two month period it was much more than usual at about once every two weeks. Usually its like once every year at maximum, usually less. Never had more than once on one day.
  11. Nice! The 1000VA one would probably be overkill then, my NAS average load unless I do something that loads it right there is less than 80W
  12. Would Cyberpower Value Pro VP1000ELCD be a good UPS from my nas that dont draw that much (less than 200W)? Specs says battery is replaceable by qualified personnel or something, so I am guessing I would manage to do that.
  13. I dont know how I didnt realize that is how you did it.... Thank you!
  14. Tried, still compresses it to about 1,5mb per image in the PDF. (they are high resolution)
  15. So I have gotten my hand on a 3TB surveillance drive (free) and it seem to be in OK shape. So I got the idea of backing up the most important info on it (photos documents and so on) (not close to 3TB, more like 500gb) in encrypted form and then storing it in another location and then every X months take it home to update it and then back to storage. As its another location I would prefer the data to be encrypted. Is there any way I can set up so I plug it in, then press a button in unRAID, then the backup/backup update automatically happens (selectable shares) and then I can take it out and put it back? If so, how? I have found scripts that do something similar, but none of them encrypt the data, its just a straight copy. I want it to be encrypted in some form.
  16. Seems like this compresses my PDFs when it run more than I want to (I am perfectionist) The documentation on OCRmyPDF itself says there are settings for it, "Optimization", that says the command --optimize N (N is number depending on what you want) But I havent figured out how to do it in the Docker, so do anyone know how?
  17. Any scripts that backups selected shares (including for example nextcloud) to an SATA unassigned device with the backup being encrypted? (want to backup to a drive 2-4 times a year and store it outside my own home)
  18. So I have gotten my hand on a 3TB surveillance drive (free) and it seem to be in OK shape. So I got the idea of backing up the most important info on it (photos documents and so on) (not close to 3TB, more like 500gb) in encrypted form and then storing it in another location and then every X months take it home to update it and then back to storage. As its another location I would prefer the data to be encrypted. Is there any way I can set up so I plug it in, then press a button in unRAID, then the backup/backup update automatically happens (selectable shares) and then I can take it out and put it back? If so, how?
  19. I am getting the same error with youtube.dl but I know 100% sure I have never removed the sample on it, I dont even know what it is. I only use Swag with Nextcloud. Tho I see that that config was last updated summer 2020...
  20. Thanks, seem to have worked, now I am getting this error instead tho: And the speed issues that started after updating to Nextcloud 21 is still there, aka slow switching between menus of nextcloud itself, like dashboard, files, or going to settings, is so much slower than before I updated to 21. (from 20) I think it might be related to NC 21 pinging the CPU much harder for some reason? EDIT: after some googeling and changing min max spare and start servers, the numbers are only getting larger?? And its only me that access the server and this is only happening when I access next cloud via web, does not happen if I do it via app. EDIT: I think I found part of the slowness issue.... For some reason I tried to test in private browsing, there it was fast as it was in NC 20. So I thought, thats weird, so I deleted cookies related to nextcloud and my site, and changed nothing. Then I tried disabeling one and one browser plugin, and it got fixed. You know what plugin caused it? Dark Reader. A plugin that is only supposed to make sites darker. Why would it cause that, both the slowness and excess PHP children on my NC server? (yes, the errors is gone) EDIT: the PHP error still happens but site is much faster.
  21. My php error file reports this error: WARNING: [pool www] server reached pm.max_children setting (5), consider rasing it Can that be the cause of the slowness I experience? If so, how do I change it?
  22. Its a gone a while and its not become any faster in switching between the tabs like dashboard and files and stuff. Its slower than Nextcloud 20 for me, and pings the CPU harder.
  23. Thank You! that is what I did wrong. Seems like the name of the file dont matter for Nextcloud, I now moved the old renamed file one step up in the file structure and it worked Just curious, what do the "Strict-Transport-Security“-HTTP-Header" do? Dont seem like that one even was in my old file.
  24. Ah, ok, I will do that then. The problem was that I did not find it in that file... I dont know why. After i used the command, a line got added to the end of that config tho, or I was blind, its on the last line now tho. Its faster to just use that command anyway, if you do it straight away and dont do like me and first open the cofig, then dont find it, then find the command on internet and then do it. OR you could just probably add the line yourself completely.