Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Navigation

    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Nextcloud Backup without Data

    Support
    backups cifs hardlinks hetzner
    5
    24
    214
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • nebulon
      nebulon Staff last edited by

      Just to give a bit more information here. I can confirm that sometimes creating hardlinks within a cifs mount on a hetzner storage box fails like:

      root@my ~ # cp -al /backups/snapshot/app_caafd030-50c4-413d-82b8-733e28d9da01/data/public/ /backups/foo
      cp: cannot create hard link '/backups/foo/public/css/fonts/element-icons.ttf' to '/backups/snapshot/app_caafd030-50c4-413d-82b8-733e28d9da01/data/public/css/fonts/element-icons.ttf': No such file or directory
      

      However as soon as I touch or read/write that failing file, it starts working just fine.

      If someone else here sees the same issue, maybe you can try to also see if touching a file which is failing fixes the hardlink creating. Given that this seems quite the sporadic issue, it would help to gather more information here to see if this indeed is consistent.

      1 Reply Last reply Reply Quote 1
      • I
        iqweb last edited by

        I'll switch back to rsync with hardlinks & try touching the error files too

        1 Reply Last reply Reply Quote 0
        • girish
          girish Staff last edited by

          @iqweb We are monitoring @nebulon 's backups in the meantime, so we can find a workaround. Maybe as simple as a retry or maybe using rsync instead or creating hardlinks manually in node might do the trick.

          1 Reply Last reply Reply Quote 0
          • M
            msbt App Dev last edited by

            I've been using hardlinks for a few days now and encountered no problems so far. Would the backup job notify me if some links couldn't be generated? Not sure what happened the last time I tried that.

            1 Reply Last reply Reply Quote 0
            • nebulon
              nebulon Staff last edited by

              Yes you would receive a notification and email if a backup job failed

              1 Reply Last reply Reply Quote 0
              • I
                iqweb last edited by

                Seems to be working for me now too!

                1 Reply Last reply Reply Quote 0
                • jdaviescoates
                  jdaviescoates @iqweb last edited by

                  @iqweb said in Nextcloud Backup without Data:

                  jdaviescoates - Do you mean the borgbackup to Hetzner storagebox - or the Synology pull?

                  Both! Thanks 😊

                  1 Reply Last reply Reply Quote 0
                  • nebulon
                    nebulon Staff last edited by

                    Just a heads up, I have seen some bad behavior with cifs mount and hard-links on my personal Cloudron, which made some backups corrupt.

                    So please everyone who is using this for now with relevant data, do not use hardlinks.

                    jdaviescoates 1 Reply Last reply Reply Quote 1
                    • girish
                      girish Staff last edited by

                      We have now setup a separate hetzner box to sync large amount of data to debug this issue.

                      1 Reply Last reply Reply Quote 1
                      • jdaviescoates
                        jdaviescoates @nebulon last edited by

                        @nebulon said in Nextcloud Backup without Data:

                        So please everyone who is using this for now with relevant data, do not use hardlinks.

                        I'm not sure if this applies to me or not. I backup to a Hetzner Cloud Volume (not storage box). Currently I have hardlinks enabled. Should I turn them off?

                        What should I look for in the logs to see if this is effecting me?

                        Thanks!

                        1 Reply Last reply Reply Quote 0
                        • nebulon
                          nebulon Staff last edited by

                          It highly depends on how a "disk" is mounted onto the server. The hardlinks issue is only there for cifs mounts and since cifs/samba support hardlinks since a very long time, this seems to be related in particular to the hetzner storage boxes at the moment.

                          jdaviescoates 1 Reply Last reply Reply Quote 1
                          • jdaviescoates
                            jdaviescoates @nebulon last edited by

                            @nebulon OK thanks, so I don't think this applies to me.

                            This is how Hetzner Cloud Volumes are mounted:

                            mounting a hetzner volume.png

                            1 Reply Last reply Reply Quote 0
                            • nebulon
                              nebulon Staff last edited by

                              correct in your case this should not be any issue as this is mounted like a regular ext4 which supports hardlinks just fine.

                              1 Reply Last reply Reply Quote 2
                              • First post
                                Last post