Syncing folders over network -- syntax
Alvin
info at alvin.be
Fri Apr 1 10:53:03 UTC 2011
On Friday 01 April 2011 11:15:59 Georgi Kourtev wrote:
> Hello,
>
> I am trying to sync one folder of my PC with a network folder under samba.
> Is this the correct syntax:
>
> rsync -r -t -v --progress -s /home/Documents/Folder smb://PC-
> desktop/share/Documents
>
> I have error when using the above. The output of rsync is
>
> ssh: Could not resolve hostname smb: Name or service not known
> rsync: connection unexpectedly closed (0 bytes received so far) [sender]
> rsync error: unexplained error (code 255) at io.c(601) [sender=3.0.7]
> Rsync process exit status: 255
You can't use KIOslaves (smb://) at the command line (as far as I know).
There are different solutions here:
- Mount the share and rsync (only solution when destination is Windows):
# mount -t cifs -o username=<insert-here> //pc-desktop/share/Documents /mnt
# rsync -rt --progress /home/Documents/Folder/ /mnt/
- Set up an rsync server or use rsync over ssh
# rsync -rt --progress /home/Documents/Folder/ rsync://pc-
desktop/share/Documents/
# rsync -rt --progress -e ssh /home/Documents/Folder/ pc-
desktop:/share/Documents/
More information about the kubuntu-users
mailing list