Rsync command:
$ rsync -ah --progress --delete /path/* 192.168.1.1:/path/
Gives error
[email protected]'s password: Could not chdir to home directory /var/services/homes/ohto: ... rsync: failed to set permissions on "/path": Operation not permitted (1)
I can copy, create, delete, modify files and folders inside NAS folder. Syncronizing with Grsync and Rsync fails.
Problem persists even after resetting and formatting the NAS.
Grsync is version 1.2.5, Rsync is 3.1.1, Ubuntu Gnome 16.04, Gnome 3.20.1 NAS is Synology 212j with DSM DSM 6.0-7321
How can I syncronize my files to NAS without errors?
In the end, I want to my files to be safe from cryptolockers. This is one step into that direction. I cannot achieve that goal without first getting my files to NAS.
Since you're syncing from Linux to DSM, I'd suggest using rsync directly, without first mounting the NAS destination on your desktop. There's no point letting SMB/samba sit in the middle - it will introduce extra potential problems, particularly with file naming and features not supported by SMB (such as symbolic links).
There are a lot of different ways to set this up, depending on what you want to achieve (one-off sync, regular backups etc.), and I'm not sitting in front of my NAS right now, so probably the best advice I can give is "look up rsync in the DSM help", and "tell us a bit more about what you're trying to achieve."
This has nothing to do with zfs, but with insufficient rights for your sync programs to access the gvfs folder.
You can test this by mounting something so that
/var/run/user/1000/gvfs
is populated and then do asudo ls /var/run/user/1000/gvfs
and als /var/run/user/1000/gvfs
. Only the last one will list the contents of the gvfs folder, the first one fails with insufficient access rights.As evidenced by the pkexec in your post, you are trying to run them as root, which fails here. Just run them as the user.
your user account ohto doesn't seem to have a sensible home directory on the remote end , this is causing a login issue and making rsync attempt to use somewhere i can't write to for temp files.
ohto is probably an account for service that has an unusual home dir , have a look in /etc/passwd to see where its home dir is.
Against cryptolockers use for example an offline USB disk.
For online offsite automatic encrypted backup use BitTorrent Sync.
Install BitTorrent Sync to your computer and run it http://gamblisfx.com/how-to-install-bittorrent-sync-2-2-7-on-ubuntu-gnome-15-04/
Go to
with your browser
Install BitTorrent Sync, or Sync, to NAS http://help.getsync.com/hc/en-us/articles/206215185-Synology
After Sync is installed, run it and click the URL
The rsync command lacks username, the correct rsync command in this case is
Appropriate username and rsync service must be enabled in NAS.