How to Backup Proxmox VM's to a Synology NAS (Tutorial)

Поділитися
Вставка
  • Опубліковано 13 гру 2024

КОМЕНТАРІ • 67

  • @redhonu
    @redhonu Рік тому +4

    thankyou for the short, concise and helpful video!

  • @BrazenNL
    @BrazenNL Рік тому +1

    Would love to see more Proxmox content on your channel!

  • @carl4046
    @carl4046 11 місяців тому +1

    Thanks for the tips dude!

  • @ORah82
    @ORah82 7 місяців тому +3

    Thanks alot! I would note that if you're backing up a CT you need to give the NAS folder specific permissions or allow EVERYONE or you'll get a permission denied error.

    • @sensemakedollars8715
      @sensemakedollars8715 5 місяців тому +1

      I have the same issue! How did you get it to work when backing up CTs? I literally approved everything and still get that "Cannot open: Permission denied"

    • @adminnimda8632
      @adminnimda8632 4 місяці тому

      @@sensemakedollars8715 Same. @rucotomo, did you fix this?

  • @QuikTechSolutions
    @QuikTechSolutions 2 роки тому

    Another outstanding video Frank!

  • @garcia0401
    @garcia0401 2 роки тому +1

    Excellent Vide! Please make more videos about Proxmox and Synology.

  • @adiands850
    @adiands850 8 місяців тому

    Fantastic, thanks for the tutorial!

  • @discooby1
    @discooby1 Рік тому

    Awesome video! To the point and it works! Thank you!

  • @darkshippo
    @darkshippo 2 роки тому +7

    you should add a disclaimer for backing up LXC. The backup will fail unless you login on the synology NAS as the admin-user, "sudo chmod 777 -R /volume1/proxmox" .

    • @WunderTechTutorials
      @WunderTechTutorials  2 роки тому

      I will look into this and update the written instructions if necessary. Thanks for letting me know!

    • @dubas1974
      @dubas1974 Рік тому

      This fixed it for me. LXC would fail without it. I wish I saw this sooner as it was really frustrating since I only had one container built and it would not backup until I found this. :\ otherwise, thanks for the tutorial :)

    • @louisdid8883
      @louisdid8883 Рік тому

      Thank you. I faced that error. Your command did the trick and solve the issue if you have a LXC.

    • @mikloj
      @mikloj 3 місяці тому

      This works, thank you! Though, if security (user access) on that shared drive is a concern, you can also edit the Proxmox configuration. Just run nano /etc/vzdump.conf, uncomment the tmpdir line, and set it to tmpdir: /tmp. This way, temporary files are stored locally on Proxmox instead of the shared drive, and /tmp automatically empties itself, typically on reboot.

  • @daveswoodwork
    @daveswoodwork 2 роки тому

    Great video! I own a QNAP, but all you tell me was very helpfull

  • @kevinhughes9801
    @kevinhughes9801 2 роки тому

    Great stuff set this up after seeing this thanks. Love to see more vids on proxmox plz

  • @therealrayy7k
    @therealrayy7k Місяць тому

    Just a FYI, if anyone is running unprivileged LXC containers, you'll get an permission error and will have to make a change to the folders NFS Permissions. Specifically change Squash to "Map all users to admin" @ 1:11

    • @therealrayy7k
      @therealrayy7k Місяць тому

      @wundertech Can we get a tutorial on how to install Tailscale inside a LXC container to access plex, for example. Im assuming it would be more secure than enabling Remote Access inside plex?

  • @odrisystems4620
    @odrisystems4620 Рік тому

    Thank you brother

  • @TechMeOut5
    @TechMeOut5 2 роки тому +1

    Excellent video Frank! I don't use proxmox personally but the video itself is excellent, clear and very well explained

  • @2008spoonman
    @2008spoonman 2 роки тому +1

    So what exactly does PBS (Proxmox Backup Server) do more compared to your backup method?

    • @WunderTechTutorials
      @WunderTechTutorials  2 роки тому

      I would say that the biggest difference is that you don't need to set up a second server. There are other differences, but that's probably the biggest.

    • @2008spoonman
      @2008spoonman 2 роки тому

      @@WunderTechTutorials thanks. I use PBS and the file/directory restore option is very handy. 👍🏼

  • @mohamedfarhanal-subaey1670
    @mohamedfarhanal-subaey1670 Рік тому

    thank you for your video I backed up all VM on synology but I get an error when I try to back up pihole CT

  • @MrEe1010
    @MrEe1010 Рік тому

    What are the steps to backup an iso from Proxmox to Synology? I don't see any easy way to do this. Also, when backing up the vm, it places it in a folder on the Synology called "dump" in the Proxmox share. Is there a way to tell it to place it in the "images" folder (for example) in the Proxmox share instead?

  • @spokje
    @spokje Рік тому

    Wow you really helpmed me out with this video! I have one question though. What if your whole Proxmox server crasht (bad SSD for example) and you would have to restore from the automated backups from the synology nas; would you first have to create the VM's manually before restoring from the backup, or is it possible to restore VM's from snapshots without having to create the empty VM's itself first? Edit: I found out you can just go to your NFS share from proxmox, click the backup, choose Restore, and then start from scratch with the backup. This is awesome!

    • @WunderTechTutorials
      @WunderTechTutorials  Рік тому

      Nope! You'd just connect to the NAS storage and can then restore them. I've done it a few times in the past.

  • @ierosgr
    @ierosgr 2 роки тому +1

    How come and you used nfs instead of iscsi. NFS requires sync (slower) writes

    • @WunderTechTutorials
      @WunderTechTutorials  2 роки тому +1

      Mostly because for backups that run overnight, I don't really need the absolute peak performance (it's also a lot easier to set up than iSCSI), but you're absolutely right - I should have pointed out that you can use both.

    • @tdragon87
      @tdragon87 Рік тому

      Was thinking the same thing.

  • @notreallyme425
    @notreallyme425 2 роки тому

    Just starting to learn Proxmox, is there a way to backup the Proxmox server configurations and not just the VMs?

    • @WunderTechTutorials
      @WunderTechTutorials  2 роки тому +1

      I think that Proxmox Backup Server would do that. www.proxmox.com/en/proxmox-backup-server
      However, with this option, you can't. The next best option would be to run an rsync from Proxmox to the NFS storage on your NAS (off the top of my head).

  • @jenniferw8963
    @jenniferw8963 Рік тому

    Thanks for this video. I got this all working. But I notice every time Proxmox backs up on the Synology it does a full backup each time, no incremental backups. Isn't there a way to setup deduplication on the Synology NAS so all the duplicated is redudantly stored? I've done just two days of backups and it has already eaten up 67gb. AT this rate it will fill up hte NAS storage in no time lol.
    I wonder if I should try Proxmox Backup Server, I heard that does incremental backups. Would be cool if there was a way to run Proxmox Backup Server in a VM on the Synology NAS and use the NAS storage.

    • @WunderTechTutorials
      @WunderTechTutorials  Рік тому

      That was going to be my suggestion. Proxmox Backup Server does what you're looking for.

    • @jenniferw8963
      @jenniferw8963 Рік тому

      @@WunderTechTutorials I've read here and there, via google search, that people have managed to get the Proxmox Backup Server running in a VM on Synology.
      What about setting up Proxmox Backup Server as a VM within the Proxmox Cluster with iSCSI storage (or w/e) to the Synology NAS?

    • @WunderTechTutorials
      @WunderTechTutorials  Рік тому

      I would think that would work, though I imagine that you might run into issues if the cluster has a problem...I guess that could be a problem on any device though.

    • @WordupG
      @WordupG 9 місяців тому

      @@WunderTechTutorials Your tutorial in this video worked fine. I tried to get it working with a Proxmox Backup Server VM but ran into many permission problems. It would be cool for you to do a video on that setup. Thanks

  • @paulminott150
    @paulminott150 Рік тому

    Followed step by step but once in proxmox setting up NFS storage it does not give me the opportunity to ADD (not highlighted). Any idea why?

    • @WunderTechTutorials
      @WunderTechTutorials  Рік тому

      Were you able to select the folder (Export)? As long as you do and select the correct Content, I haven't seen a situation where it won't allow you to add it.

  • @geraldh.8047
    @geraldh.8047 2 роки тому

    So what about backing up machines that are running? It seems this guide assumes the VM is shut down or did I misunderstand something?

    • @WunderTechTutorials
      @WunderTechTutorials  2 роки тому +1

      Nope! They will back up even if they are running.

    • @geraldh.8047
      @geraldh.8047 2 роки тому

      @@WunderTechTutorials Thank you very much!

  • @sesshoumarusama7397
    @sesshoumarusama7397 2 роки тому

    What about i cases where the proxmox host itself crashed and went lost. How to restore then, because there are no VMs to select and then go to the backup tab... right?

    • @WunderTechTutorials
      @WunderTechTutorials  2 роки тому

      Hopefully this helps! forum.proxmox.com/threads/restore-vm-to-new-vm-id.84952/

  • @nursenmaranc4659
    @nursenmaranc4659 Рік тому

    Hi Frank! I'm new to Proxmox and Nas environment, and Proxmox can't back up due to the problem that is called "no space left on nas". I have 16 tb of space on my nas but proxmox already used like 14.25 tb of the space that I have. How can I solve this, any idea?

    • @WunderTechTutorials
      @WunderTechTutorials  Рік тому

      Do you know exactly what is in the Proxmox folder on the NAS? If it's mostly backups (you can see the backups by clicking the node name, then backups, then changing it from local to the NAS in the top right), did you set a retention policy? If you didn't, it could be saving all backups which could be the problem.

    • @nursenmaranc4659
      @nursenmaranc4659 Рік тому

      @@WunderTechTutorials First of all thank you for replying. I've just figured out that proxmox does not backup to nas but it backs up to pbs which is running out of storage. And I checked the proxmox file in nas and there is nothing that can keep that much storage. And for the backup which uses pbs storage, I checked the retention policy. It is set like keep last: 1, keep daily: 3, keep weekly: 1, keep monthly: 1, keep yearly: 1. I'd really appreciate If you can help me.

    • @WunderTechTutorials
      @WunderTechTutorials  Рік тому

      @@nursenmaranc4659 The only real help I can offer is generic things as I don't use PBS with my NAS.
      1. Check to make sure the recycle bins are emptied.
      2. Check to make sure any snapshots you are using have correct retention policies and consider deleting old ones.
      3. Use the storage analyzer to determine where all the data is.

  • @Yakuza13329
    @Yakuza13329 6 місяців тому

    Just tried this and got "create storage failed: mount error: mount.nfs: access denied by server while mounting 192.168.1.2:/volume1/Proxmox (500)" when adding NFS to Proxmox.

    • @sleepingwonder
      @sleepingwonder 6 місяців тому

      two things 1) ensure there is no space in shared folder name you created in the nas 2) if you arealso backing up lxc containers , then in the shared folder nas nfs permission options in squash -put map all users to admin (as LXC runs as unprivileged user)

  • @tombouie
    @tombouie 2 роки тому

    Thks but DS2022+ or bust

    • @WunderTechTutorials
      @WunderTechTutorials  2 роки тому

      I'm happy to create a video on them, but what exactly are you looking for in it? I haven't created one because truthfully, there isn't that much different besides some hardware changes and I don't know how much value I can provide to viewers. Happy to create one though!

    • @tombouie
      @tombouie 2 роки тому

      @@WunderTechTutorials Oh thks for replying & being so thoughtful.
      Ultimately I want a KISS home NAS to do everything I can do on Google but some privacy (ex: manage it for all my friends/family/etc) & it seems that a synology DS20?? & DSM7.0 are the best band for the buck. I've been on the fence about getting a DS20?? for years but learning tons about how to geek manage it-all (ex: DSM, applications, & the dreaded sysadmin ;):
      Still confused about NAS? NAS explained in 3 minutes ua-cam.com/video/k13sQxybqiA/v-deo.html
      Synology DiskStation NAS Introduction ua-cam.com/video/CaInLiK4zFM/v-deo.html
      Synology - Global Event Introduction Video ua-cam.com/video/IXPnP__Ipvc/v-deo.html
      Synology Surveillance Station Features ua-cam.com/video/MtVp9IlVzYo/v-deo.html
      Synology - Play. Collaborate. Achieve. Live BeyondCloud ua-cam.com/video/UsnBqL_pzcs/v-deo.html
      Synology - Be Your Own Cloud ua-cam.com/video/QOtW9CBsTys/v-deo.html
      Synology | Introduction to Synology Collaboration Suite ua-cam.com/video/M9OZ-i9N8NA/v-deo.html
      Synology DSM 6.0 : Spreadsheet , Note Station, Mail Plus Email ua-cam.com/video/PtKPd-sWdEw/v-deo.html
      Hopefully DS2022+ will melt-my-ice-cream & I'll go for it. Until then it's !DS2022+ or bust! (wuhooooooooo ;)

    • @tombouie
      @tombouie 2 роки тому

      @@WunderTechTutorials Sorry for the delayed reply but I really had to think about your kindness. A little background 1st:
      *Most UA-camrs are pretty nice but shallow short-return folks. You definitely deviated from my youtube expectations.
      *My simple ultimate goal is figure-out the best/simplest wat to provide my family/relatives/friends/etc a web-server just like google offers. I've spent ~5years planning on it starting with doing it with a DIY server/linux (ex: now I have ~500 pages of research/implementation plan). I finally realized a turn-key applicance is the only pragmatic way to-go and I completed everyone available. Since what I want is mostly want/need is support & software apps ; synology is it. Match like MS Windows OS for the home, synology home NASes puts a simply/candy-coated interface on a nightmare of horrible complexity I just spent ~5years of brain-numbing researching on.
      *THE REQUEST: Create a few short KISS videos that any/everybody could understand/use but allows newbies (ex: my-wife) to buy, set-up, use, connect tech support, etc, etc as well as absolutely enjoy an inexpensive synology NAS. This is what MS Windows OS for the home does well ; why the OS dominants the home market ; & what synology is trying to do in the home market. For example one reason I married my-wife is she has little/no technical skill and hates all geeks/nerds (except me of-course, well most times ;). However I'm always amazed how you can use the MS Windows OS & have absolutely no-clue of how it really works at-all (ignorance is bliss ;). Of course if she really gets mad at MS Windows, she tells me to fix-it quick/now or she just buys another computer. I thinks I'll try her way of doing things (oh don't tell her she might have been right ;).
      PS: Oh Oh !DS2022+ or Bust!

    • @WunderTechTutorials
      @WunderTechTutorials  2 роки тому

      @@tombouie I agree that Synology devices are generally harder to implement because Synology has good documentation telling you HOW to implement things, but not necessarily WHY you should implement them.
      For cases like this, I tried to create a universal "Synology NAS Setup & Configuration Guide" that brings people through the entire process: www.wundertech.net/synology-nas-initial-setup-ultimate-guide/
      With that said, it's still not "complete" in the sense that very few beginners would be able to fully understand what's being implemented and why (because as you said, these are more complex devices than would initially be expected). I will certainly keep that in mind for future videos and see what I can come up with!

    • @tombouie
      @tombouie 2 роки тому

      @@WunderTechTutorials Again most UA-camrs are usually shallow/megalomaniacs but you're quite the polite/normal person (refreshing ;).
      Well I says with lots of experience under-your-belt it's fairly easy to find endless complex solutions to a difficult problem (ex: I gots over a ~500 page doc on my research about how to setting-up the perfect home web-server/NAS to replace google).
      Epic Rap Battle: Nerd vs. Geek ua-cam.com/video/2Tvy_Pbe5NA/v-deo.html
      However at-best it's only a few solutions to a difficult problem that least complex, most practical, shortest-time, least amount of profanity/throwing-things, that my wife can easy use, etc, etc and I gets to use & move-on with my life.
      Here's a cool english-fellow that actually did what I was taking about with a Synology NAS. So I trying to follow his lead:
      How to setup a Synology NAS (DSM 6) Part 1: Familiarising yourself with a Synology NAS ua-cam.com/video/Yua6dGpg4qo/v-deo.html
      When I gets my DS222+ (or Bust!) ; I'll mainly use his & your UA-cam Channels for support.

  • @toddshreve
    @toddshreve 2 роки тому

    Thanks for this!
    My Proxmox server has 3x guests. 1x qemu and 2x lxc.
    The qemu appears to backup fine. The 2x lxc fail to backup.
    The log files for the 2x lxc written to my Synology NAS have these 2 lines
    ***
    2022-05-09 00:21:14 INFO: tar: /mnt/pve/synology-nas-storage/dump/vzdump-lxc-101-2022_05_09-00_21_13.tmp: Cannot open: Permission denied
    2022-05-09 00:21:14 INFO: tar: Error is not recoverable: exiting now
    ***
    This is repeated for lxc 102
    I tried setting backups to "Stop". Same results.
    I tried doing a manual backup from the backup menus on one of the lxc guests and the Proxmox window shows the same error.
    I can't determine if the permission issue is Proxmox or Synology, but given that a logfile is created it would seem rights are in order on the Synology.
    Thoughts?

    • @WunderTechTutorials
      @WunderTechTutorials  2 роки тому +1

      I did a quick Google search (I haven't tried to back up any LXC containers), and it looks like you might need to add additional permissions.
      Here's a great thread explaining it: forum.proxmox.com/threads/backup-of-container-to-synology-fails.100877/
      I will take a look at this when I get some time and add it to the written tutorial!

    • @toddshreve
      @toddshreve 2 роки тому

      @@WunderTechTutorials Thank you!

    • @toddshreve
      @toddshreve 2 роки тому +2

      @@WunderTechTutorials This fixed it for me
      ********
      Editing vzdump.conf (../etc/):
      # vzdump default settings
      #tmpdir: DIR
      tmpdir: /tmp
      *********

    • @WunderTechTutorials
      @WunderTechTutorials  2 роки тому +1

      @@toddshreve Glad you got it fixed! Thanks for sharing the solution!

    • @balint_v
      @balint_v 2 роки тому +1

      @@toddshreve
      thx, this solved the problem for me too 🤘