Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of Issues with Synology DSM 6 #553

Closed
caco3 opened this issue Mar 11, 2016 · 28 comments
Closed

List of Issues with Synology DSM 6 #553

caco3 opened this issue Mar 11, 2016 · 28 comments

Comments

@caco3
Copy link

caco3 commented Mar 11, 2016

This is not a real BackinTime related issue but more a list of issues concerned the usage with the Synology DSM 6.

There are some instructions in the wiki (https://github.com/bit-team/backintime/wiki/FAQ#how-to-use-synology-dsm-5-with-bit-over-ssh), but they are mostly related to DSM 5 and do not work anymore on DSM 6.
To keep track of those issues and to have a platform to discuss them, I started this issue. If there is a better way for this please let me know.

@caco3
Copy link
Author

caco3 commented Mar 11, 2016

Issue 1 (solved): When a new diskstation user (i.e. backup) gets created, one has to give it access to the shell by changing the shell in /etc/passwd. This works as expected, how ever after a few minutes, the shell gets reset to its default. This was working correctly in DSM 5!

Note: This is only related of using rsync over SSH!

=> Solution: The user has to be added to the administration group (Users > Settings)

@caco3
Copy link
Author

caco3 commented Mar 11, 2016

Issue 2 (kind of solved): SSH login as non-root does not work anymore with DSM 6 RC (but was with DSM 6 Beta 2), see also https://forum.synology.com/enu/viewtopic.php?f=260&t=115444

After a while it now suddenly works, no clue why...

@Germar
Copy link
Member

Germar commented Mar 11, 2016

Thanks for sharing your experience here with others. I don't own a Synology device so I can't help. Only one thing: please don't use #Number because GitHub will link this to the bug with that number and at the moment there is no way to remove those false links again

@caco3
Copy link
Author

caco3 commented Mar 11, 2016

No problem. I removed the #Number (I still can edit my comments).

@Germar
Copy link
Member

Germar commented Apr 22, 2016

Next release 1.2.0 (no release date yet) should make it lot easier with a NAS because almost everything will be done only with rsync. No need for full featured find ... -exec support anymore 🙌

@mabl
Copy link

mabl commented May 16, 2016

Next release 1.2.0 (no release date yet) should make it lot easier with a NAS because almost everything will be done only with rsync.

Hi @Germar, is there any news on this? I'd really like to try it out.

@Germar
Copy link
Member

Germar commented May 16, 2016

@mabl if you're using Ubuntu you can try our testing PPA. It's already in there

sudo add-apt-repository ppa:bit-team/testing
sudo apt-get update
sudo apt-get upgrade

Or you can install from source.

@helge42
Copy link

helge42 commented Jun 4, 2016

Hi,
I have DSM6 and tried the instructions mentioned above. When I do " ssh backup@synology " the root file system is the home directory of the user backup. This differs from the instructions and it did not work.
Any ideas?
Sincerely, Helge

@szma
Copy link

szma commented Jun 17, 2016

I am using BIT with DSM 6 over SSH. I followed the DSM 5 instructions (Mounting and port settings) and had to add "--rsync-path=/bin/rsync" to the rsync flag in the settings. Everything works fine so far.

@helge42
Copy link

helge42 commented Jun 17, 2016

Hi,
I got it!

On DSM 6 you can edit the user-root-dir for sFTP
Control Panel -> File Services -> FTP -> General -> Advanced Settings -> Security Settings -> Change user root directories -> Select User
Now select the user "backup" and Change root directory to "User home"

That's it. The ssh user-root-directory is on DSM6 the "User home" by default.

No extra Volumes or bind-mounts on Synology, this not necessary anymore ;). Everything is now in the home-dir of the user backup.
In BackinTime I started with a fresh profile.

Sincerely, Helge

@Germar
Copy link
Member

Germar commented Jun 17, 2016

It would be great if one of you guys could modify the FAQ for DSM6. It's world writeable. Just copy and modify the DSM5 section.
Thanks in advance!

@helge42
Copy link

helge42 commented Jun 18, 2016

Yes, I will update the FAQ.

But I have a question for @szma to get the things right:
Do you have activated the home service? (The second item of the FAQ)
If you didn't: there are two ways to get the things working. Yours and mine.

@simgunz
Copy link

simgunz commented Jul 2, 2016

@helge42 Can you elaborate on that?

If my backup folder is stored in /volume1/backups/backintime, what path should I specify in the BIT ssh path settings after applying the suggested settings?

@helge42
Copy link

helge42 commented Jul 2, 2016

I have updated the FAQ: https://github.com/bit-team/backintime/wiki/FAQ#id23

@simgunz You can leave the path empty. BIT will create a folder "backintime" in the home directory. Please leave a note, if the FAQ for DSM6 is right.

@simgunz
Copy link

simgunz commented Jul 2, 2016

@helge42 In the FAQ I would still advise to create a new share to keep the backups instead of having them in the home of the user backup. Then in the SFTP home settings the user can select this share as root for the user. Isn't it more clean?

@simgunz
Copy link

simgunz commented Jul 3, 2016

My previous post was wrong, because setting the backups share as root for SFTP doesn't solve the problem that the root for SSH is different.

I've tried a different approach:

  1. Set the SFTP root to the backup user home
  2. Create a symlink as follow (as user backup)
mkdir /volume1/homes/backup/volume1
ln -s /volume1/backups/ /volume1/homes/backup/volume1/backups
  1. Set as target path in BIT /volume1/backups

Still this approach doesn't work.

sshfs -p 22 -o ServerAliveInterval=240 -o IdentityFile=/home/simone/.ssh/backup_id_rsa backup@192.168.0.250:/volume1/backups /home/simone/.local/share/backintime/mnt/D8BF5749/mountpoint

I get backup@192.168.0.250:/volume1/backups: Not a directory

If I mount /volume1 only, I the mount is fine but then I cannot access or list the backups directory (which is the symlink)

ls /home/simone/.local/share/backintime/mnt/D8BF5749/mountpoint/backups

produce ls: cannot read symbolic link '/home/simone/.local/share/backintime/mnt/D8BF5749/mountpoint/backups': Bad message

This is probably why the mount bind was needed in the first place with DSM5, right?

@helge42
Copy link

helge42 commented Jul 3, 2016

Yes. I think with DSM6 you can only use the homedirs for backintime. Only you can alter the root directory for SSH there will be the way described for DSM5.
But there is an advantage: now every user can install and configure his own backintime backup! The user can take his homedir on the synology. No superuser access is needed. (if you have more users ;)

@helge42
Copy link

helge42 commented Jul 3, 2016

There are issues in this configuration:

Backup of files greater then 500MiB yields to a brocken pipe. You must activate this option to prevent this.

The transfer rate which is shown is not correct: it increases all the time.

@Germar
Copy link
Member

Germar commented Jul 3, 2016

Thanks everyone for putting this together! I highly appreciate it!

@helge42 if you manually transfer a file >500MiB does rsync yield a broken pipe, too? Which rsync version is used on DSM6?

The transfer rate is incorrect. Has nothing to do with DSM6. rsync doesn't provide a better result.

@szma
Copy link

szma commented Jul 7, 2016

@helge42 sorry, for the late response, but yes I have enabled the home service as stated in the FAQ.

@derrafa
Copy link

derrafa commented Jul 8, 2016

Hi everybody.
I just bought a Synology Diskstation and wanted to move my bit-backup there. I tried that now for a couple of days but didn't succeed.
My issue is that I wanted to have the backup in an encrypted folder. Since DSM6 only supports encrypted shared folders the home-folder solution mentioned above doesn't work and because of the encfs security issues I would rather not use bit-encryption.

Is there any other way?

Thanks!

@szma
Copy link

szma commented Jul 8, 2016

@derrafa Imho you can use the DSM5 way and backup to a shared folder. Don't forget to add "--rsync-path=/bin/rsync" as additional option in your bit profile.

@derrafa
Copy link

derrafa commented Jul 9, 2016

Thanks a lot, it worked!

@caco3
Copy link
Author

caco3 commented Jan 24, 2017

Just a note:
2 days ago I got the following error:
grafik
Opening the BiT config and pressing apply showed this:

Permission denied, please try again.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.1]

It might have been due to an update or some unwanted changes on the synology system.
Anyway, it got solved by enabling the rsync service in the control panel:
grafik
Since this was not yet documented in the wiki, I guess it might be a new config. I now updated the wiki.

@caco3
Copy link
Author

caco3 commented Jan 24, 2017

Update:
It was caused by the fact that I removed the shared folder NetBackup. How ever actually DSM shows a warning:
grafik

@Proton23
Copy link

Hi!

I would like to encrypt the folder like derrafa did, but I don't know what you mean with "the DSM5 way".
I guess you mean this https://github.com/bit-team/backintime/wiki/Hardware-Specific-Setups#how-to-use-synology-dsm-5-with-bit-over-ssh

What steps are necessary?

Best regards

@szma
Copy link

szma commented Nov 19, 2017

It's been a while, but basically you have the right link. I did steps 1-15, leaving out the rest, because I already can login to my NAS without password.
Then, when configuring your backintime profile, add "--rsync-path=/bin/rsync" as additional option.

EDIT: I also left out steps 5 and 12, since I didn't want to create a new user

@Proton23
Copy link

Proton23 commented Dec 4, 2017

Thanks for the answer, but I decided that it's to much effort (didn't know the path to enter and so on) and putting everything into home is actually a very good solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants