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


    Cloudron Forum

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

    rsync + hardlink, only on file system backend or any ext4 even if remote?

    Support
    backups hardlinks
    3
    5
    171
    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.
    • avatar1024
      avatar1024 last edited by girish

      Hello, just got a quick question.

      The Cloudron docs says that rsync will use hard links to save space only if using the filesystem backend so only if backups are saved on the local server. I was wondering if this is strictly true or whether it is possible to use hard link on a remote volume if the volume partition is ext4?

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

        @avatar1024 if the filesystem is remote, then mostly it won't matter what filesystem it uses locally. For example a folder, used over sshfs or samba/cifs, might reside physically on an ext2 or zfs or anything.

        Generally most Linux filesystems support hardlinks though, but not all remote filesystems do. Samba/cifs does support hardlinks, however the server also has to have the support. So the answer is often not obvious.

        avatar1024 1 Reply Last reply Reply Quote 0
        • avatar1024
          avatar1024 @nebulon last edited by

          @nebulon Thanks for your reply and sorry the question was confusing cause I talked about "volume partition".
          The Cloudron docs says that hard link will be used only with the filesystem back-end.
          So the question is, if we use another backend (sshfs, CIFS, etc.), and if the remote file system and server do support hard links, will hard links be used on the backup to save space on the remote drive, or will they not be used because of not using the filesystem backend?

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

            @avatar1024 you can see which backend supports it by virtue of having the hardlink checkbox in the backup configuration dialog available. Looks like the docs are a bit vague there.

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

              I have clarified the text a bit more now.

              1 Reply Last reply Reply Quote 1
              • First post
                Last post
              Powered by NodeBB