Nextcloud Backup without Data
-
I also asked hetzner support about hardlinks & they said:
It seems that Samba is transferring the Hard Links correct, but not always showing them correct. You could use rsync directly, in order to back up your data to the Storage Box. For example: -----------------%<----------------- rsync --progress -H -e 'ssh -p23' --recursive <local_directory> <username>@<username>.your-storagebox.de:<target_directory> -----------------%<-----------------
Also - like msbt - it was working in the beginning & then started giving errors about hardlinks.
jdaviescoates - Do you mean the borgbackup to Hetzner storagebox - or the Synology pull?
nebulon - Is there a way to do a cloudron app only -minus nc data backup? I'm only able to keep 2 days of native cloudron backups at the moment & would very much prefer more than that!
-
-
# cd /var/storagebox/test # touch foo # ln foo bar # ln foo baz # ls -l foo bar baz -rw-rw---- 3 yellowtent yellowtent 0 May 11 20:44 bar -rw-rw---- 3 yellowtent yellowtent 0 May 11 20:44 baz -rw-rw---- 3 yellowtent yellowtent 0 May 11 20:44 foo
rather disappointing, seems to work
-
@msbt If possible, please trigger a backup as well with hardlinks. I would like to know why it fails. Maybe there is some limit somewhere we are hitting in CIFS.
-
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
touch
ing 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. -
-
@iqweb said in Nextcloud Backup without Data:
jdaviescoates - Do you mean the borgbackup to Hetzner storagebox - or the Synology pull?
Both! Thanks
-
We have now setup a separate hetzner box to sync large amount of data to debug this issue.
-
@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!
-
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.