I have a Synology NAS with which I have been able to synchronise my desktop computer files using a client rpm package from Synology. for some time now, Synology no longer provides an rpm package for this, so that I am unable to synchronise my data with the NAS.
However, Synology does provide the desktop client package as a Windows exe file. (By the way also a .deb package as well). Is it conceivable that I use the Windows client to synchornise my files using the VM? What do I need to do to set it up? What may be the pitfalls?
I am running Gnome with btrfs on Leap 15.3.
Were you using the âActive Backup for Business â Synology App or, something else? â Possibly the Synology âDrive Clientâ?
[HR][/HR]Not that, that really matters â
The Synology NAS boxes usually have an NFS Server function.
The simple answer is, setup the NFS Server on the NAS to export the directory where the Linux files are located.
The not so simple part of this solution is that, the UID and GID of that directory and, all the sub-directories and, all the files in those directories, have to be changed to have the same UID and GID as that of the user on the Linux machine.
Usually, youâll have to login to the admin user of the NAS box via SSH, to setup the UID and GID values â âchown ⌠â â the NAS boxes usually run Linux âŚ
Then, simply mount the NAS box via NFS from the Linux machine â I use the Linux auto-mounter function.
> systemctl list-unit-files | grep -i 'autofs'
autofs.service enabled disabled
>
The scripts I use to which invoke ârsyncâ to drop all the changed and new files onto my NAS box have a code section like this â
if -d /mnt/NAS-Box/NFS/$effectiveUserID/$systemHostName ]]
then
.
.
.
fi
Alternatively, you can enable the ârsyncâ daemon on the Synology NAS â <Rsync | DSM - Synology Knowledge Center ;
But, please be aware that, youâll have to store the username and password of the NAS user being served by the rsync daemon in your backup scripts.
Thanks for your input.
I used the Synology Drive Client, and would hope to use the .exe version of it, if that were possible.
The rsync route seems rather daunting to me.
hnimmo:
Thanks for your input.
I used the Synology Drive Client, and would hope to use the .exe version of it, if that were possible.
The rsync route seems rather daunting to me.
Just in case the following is of interest to youâŚ
https://forums.opensuse.org/showthread.php/559542-Using-Wine-for-NAS-synchronisation?p=3065169#post3065169
Just realised it was you who I was advising in that thread!lol!
My bad. I have to confess that I abandoned that one because I couldnât figure out how to a) progress from a one-shot synchronisation to a permanent synchronisation service, b) be sure of its robust treatment of all files, and c) integrate it as a background task that needs almost no attention from me, i.e. just like the Synology Drive Client. So much for my initial enthusiasm for your suggestionsâŚ:shame:. Thank you for your patience with me!
My question with this thread is perhaps a total pipe-dream. Is it possible that âSynology Drive Client-xxx.exeâ might work somehow under Leap 15.3./Gnome desktop just as the equivalent âSynology Drive Client-xxx.rpmâ used to? What is required to achieve that?
FWIW, I stumbled across this reddit thread re RPM packageâŚ
https://www.reddit.com/r/synology/comments/ejumga/synology_drive_client_for_fedora_linux/
âŚone kind user has provided a recent RPM packages that may (or may not) work for youâŚ
https://github.com/EmixamPP/synology-drive/releases/tag/3.0.3-12923
YMMV
Thank you. That was an excellent tip. This Synology-Drive app seems to work as hoped:) Your help is much appreciated
Yes, itâs not simple â except as a Bash script â the options which need to be set are many âŚBe that as it may, an example â I automount the NFS Server on the NAS box â
#!/bin/bash
echo " \"Archiv_Users_Home_NAS\""
echo ""
systemHostName=$(hostname --short)
effectiveUserID=$(whoami)
#
# Cannot use -a --archive: both imply -rlptgoD
# -g --group "preserve group" is possibly not supported by a QNAP TS-131P.
cd
pwd
echo ""
if -d /mnt/NAS-001/NFS/$effectiveUserID/$systemHostName ]]
then
echo "Mounted NAS NFS $effectiveUserID $systemHostName"
echo ""
echo "** .config/:"
/usr/bin/rsync -rlpt --backup --update --8-bit-output --omit-dir-times --omit-link-times --one-file-system --whole-file --progress --stats --human-readable /home/$effectiveUserID/.config/ /mnt/NAS-001/NFS/$effectiveUserID/$systemHostName/dot.config
echo ""
echo "** .local/share/:"
/usr/bin/rsync -rlpt --backup --update --exclude=gegl-0.?/*** --exclude=gvfs-metadata/*** --exclude=flatpak/*** --8-bit-output --omit-dir-times --omit-link-times --one-file-system --whole-file --progress --stats --human-readable /home/$effectiveUserID/.local/share/ /mnt/NAS-001/NFS/$effectiveUserID/$systemHostName/dot.localShare
echo ""
echo "** .mozilla/:"
/usr/bin/rsync -rlpt --backup --update --8-bit-output --omit-dir-times --omit-link-times --one-file-system --whole-file --progress --stats --human-readable /home/$effectiveUserID/.mozilla/ /mnt/NAS-001/NFS/$effectiveUserID/$systemHostName/dot.mozilla
echo ""
echo "** User files:"
/usr/bin/rsync -rlpt --cvs-exclude --backup --update --exclude=.* --exclude=.*/*** --exclude=public_html --8-bit-output --cvs-exclude --omit-dir-times --omit-link-times --one-file-system --whole-file --progress --stats --human-readable /home/$effectiveUserID/ /mnt/NAS-001/NFS/$effectiveUserID/$systemHostName/home
echo ""
echo "** User .* files:"
/usr/bin/rsync -lpt --backup --update --8-bit-output --omit-link-times --one-file-system --whole-file --progress --stats --human-readable /home/$effectiveUserID/.bashrc /mnt/NAS-001/NFS/$effectiveUserID/$systemHostName/home
/usr/bin/rsync -lpt --backup --update --8-bit-output --omit-link-times --one-file-system --whole-file --progress --stats --human-readable /home/$effectiveUserID/.profile /mnt/NAS-001/NFS/$effectiveUserID/$systemHostName/home
/usr/bin/rsync -lpt --backup --update --8-bit-output --omit-link-times --one-file-system --whole-file --progress --stats --human-readable /home/$effectiveUserID/.signature /mnt/NAS-001/NFS/$effectiveUserID/$systemHostName/home
/usr/bin/rsync -lpt --backup --update --8-bit-output --omit-link-times --one-file-system --whole-file --progress --stats --human-readable /home/$effectiveUserID/.emacs /mnt/NAS-001/NFS/$effectiveUserID/$systemHostName/home
/usr/bin/rsync -lpt --backup --update --8-bit-output --omit-link-times --one-file-system --whole-file --progress --stats --human-readable /home/$effectiveUserID/.vimrc /mnt/NAS-001/NFS/$effectiveUserID/$systemHostName/home
echo ""
echo "** Finished!!"
echo ""
else
echo ""
echo "NFS NAS is not available"
echo ""
fi
exit 0
# End of Archiv_Users_Home_NAS
[HR][/HR]Which only begs the question â
Is a GUI application better than a script?
With a script, I can backup a userâs Home directory from a Virtual Terminal or, a SSH session.
hnimmo
May 9, 2022, 11:18am
10
dcurtisfra:
Yes, itâs not simple â except as a Bash script â the options which need to be set are many âŚBe that as it may, an example â I automount the NFS Server on the NAS box â
Which only begs the question â
Is a GUI application better than a script?
With a script, I can backup a userâs Home directory from a Virtual Terminal or, a SSH session.
âŚthe answer to which will obviously depend on the skills and preferences of the user, maybe even his ideological tendenciesâŚ:\
boenis
February 26, 2023, 4:22pm
11
I use the synology drive client.
Erfahren Sie mehr zu technischen Informationen anhand von WeiĂbĂźchern, BenutzerhandbĂźchern und Datenblättern und verschaffen Sie sich so einen Ăberblick Ăźber die Produktpalette von Synology. Laden Sie die neusten Software-Patches herunter, um die...
Synology Drive Client: Download â Ubuntu 64 bits, deb
alien -r synology-drive-client-*.deb
rpmrebuild -enp synology-drive-*.rpm
uncomment all lines with â(Qt_5_PRIVATE_API)(64bit)â
then you can install the rpm package without errors.
1 Like
hnimmo
February 26, 2023, 6:43pm
12
boenis:
I use the synology drive client.
Download-Zentrum - download | Synology Inc.
Synology Drive Client: Download â Ubuntu 64 bits, deb
alien -r synology-drive-client-*.deb
rpmrebuild -enp synology-drive-*.rpm
uncomment all lines with â(Qt_5_PRIVATE_API)(64bit)â
then you can install the rpm package without errors.
Is alien an OpenSUSE package?
boenis
February 27, 2023, 7:28am
13
You can get alien form here:
https://software.opensuse.org/package/alien
PS: Do not uncomment but comment out all lines with â(Qt_5_PRIVATE_API)(64bit)â
1 Like
hnimmo
February 27, 2023, 9:07am
14
Where (when?) do the lines to be commented out appear?
boenis
February 27, 2023, 9:40am
15
The rpmrebuild command opens a config file in the vim editor. Search for (Qt_5_PRIVATE_API)(64bit) and put a # in front of each line that matches.
boenis
February 27, 2023, 9:56am
16
Otherwise, you can download the resulting rpm file directly from here:
https://boeni.com/downloads/synology-drive-7.2.1-13272.x86_64.rpm
1 Like
hnimmo
February 27, 2023, 11:13am
17
Either I did not wait long enough, or the config file was not opened for editing.
boenis
February 27, 2023, 1:41pm
18
Hm, maybe you are using a different version to me. Or are you using rpmbuild instead of rpmrebuild?
jhhh
February 26, 2024, 11:25am
19
Knowing this is an old Thread - still I had the same problem.
I used the alien route and it works fine without any problems for 6 month now⌠though itâs not convenient to update.
But now there is an official flatpak on flathub:
Maybe this also helpsâŚ
jhhh
system
Closed
March 27, 2024, 11:26am
20
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.