NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
el_patron
Dec 21, 2019Tutor
RN314, snapshots do no start on one home share, but on others...
Hi there, I have a strange issue with the snapshots on one home folder. There the snapshots do not start, allthough a snapshot folder is present. In all other folders and shares on the NAS there is ...
- Dec 21, 2019
Did you ever have ssh enabled? If so, it is possible that /home/Ulrike was created with ssh?
I think this could also have happened if the home folders were restored with a backup before the user ever accessed the NAS with file explorer or finder.
One option is to copy off the files, then delete the user account and the folder /home/Ulrike. Then recreate the user account, and access the NAS with that person's credentials. That should re-create the share. Then copy back the folder contents.
el_patron
Dec 21, 2019Tutor
well, I do not know what went wrong there and how I did it that time, but something is messed up with that home folder...
I deleted the user, and I tried to delete the folder, but it cannot be removed completely, or at least it has no effect trying it from the admin page.
Then I logged in via ssh as root. Then I saw in the home folder a single ".ssh" folder with a single file "ssh_authorized_keys" with only read-write rights to the owner, that was deleted. Even as root I cannot remove it. Very strange. How to get rid of the file and the folders..?
el_patron
Dec 21, 2019Tutor
ok. now I learned something on file attributes. After
chattr -i ssh_authorized_keys
it was possible to delete the file. Now I will follow the plan :-)
- SandsharkDec 21, 2019Sensei
Note that part of the plan is that you must log into the server using that user's credentials before you restore the backup. That's because the NAS creates a share (btrfs sub-volume) for each user, not just a folder.
Alternately, from SSH, you can use mkhomedir_helper <username>.to create it..
- el_patronDec 22, 2019Tutor
I added the user share, logged in with the user credentials and the home-folder was created. I also added the access to the snapshots for the user and a snapshot folder appeared.
Then I copied back the files and activated the change of the owner properties of the files to the owner of the home share. With that, also a snapshot folder was copied back and the owner of this folder was changed to the user and owner of the home share.
Nothing further happened up to now.
Is there an easy way to check if the snapshots start working..? Currently I have smart weekly snapshots. I could set to hourly snapshots, but there might be a smarter way... Thanks!
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!