Hetzner Nextcloud for Backup storage?
-
Hi all.
I saw that this has already been discussed on the forum. But still interesting is the possibility of implementation.
I have a 1TB nextcloud. I would like to use it as a storage for backups. Is it possible to mount a folder on the cloudron server to transfer files using the web dav protocol?
My attempts to execute the instructions from the Nextcloud documentation consistently end up with the error mount: /root/nextcloud: can't find in /etc/fstab.
Has anyone already tried doing this?
I would like to get your advice. -
@BrutalBirdie I only want to store backups of applications there. Since I have server backup enabled on my hetzner. But due to the large size of the applications, I cannot afford to create them on the server.
And I remembered that I have a lot of space on Nextcloud that can be used. -
AFAIK, there is "reliable" way to mount webdav based filesystem. I think there is davfs2 via fuse but those things always hit some issues because they are not real filesystems with user permissions. But I won't stop you from trying
-
If you create the directory /mnt/mynextcloud and then put the following line in your /etc/fstab
https://<fqdn-of-your-nextcloud>/remote.php/dav/files/<your-username>/ /mnt/mynextcloud davfs defaults,uid=1000,gid=100,_netdev,auto 0 0
You should be able to store your backups in your nextcloud.
Automatically after reboot or manually with this command:sudo mount /mnt/mynextcloud
Note 1: you have to replace the values between <> with the correct values for your nextcloud instance and also make sure you use the correct uid and gid.
Note 2: I won't recommend this for reliable backups as it can be really slow and, well, just unreliable.
-
I checked and got this result.
Indeed, with large file sizes, I had problems with backup.
(Archive size less than 3 GB was transferred to the nextcloud without problems. With a larger one, an error almost always occurred when copying or restoring.)
Thanks for the advice. I was really interested to see the result.The topic can be considered closed.
Thanks to all.