Re: busybox, sh et rsync

Top Page

Reply to this message
Author: Frédéric
Date:  
To: Guilde
Subject: Re: busybox, sh et rsync
Le samedi 13 août 2016, Frédéric a écrit :

> rsync --server --sender -vlogDtpArIxe.iLsfx --timeout=1800 . /storage
>
> J'ai utilisé ces options dans le fichier authorized_keys de Openelec,
> mais ça ne marche pas ; lors du backup, le NAS me dit :
>
> Failed to run rsync, return rc 3072 (12)
> 'rsync' command returns rc=3072
>
> rsync: ACLs are not supported on this server
> rsync error: syntax or usage error (code 1)
> at /home/stephan/projects/openelec-addons-7.0/build.OpenELEC-WeTek_Play.arm-7.0-devel/rsync-3.1.2/main.c(1567)
> [server=3.1.2] rsync: connection unexpectedly closed (0 bytes received so
> far) [Receiver] rsync error: error in rsync protocol data stream (code
> 12) at io.c(226) [Receiver=3.1.1]


Bon, en fait, c'est con : ce sont les options de rsync, tout bêtement !

J'ai viré l'option A (ACL), et ça marche.

Y'a quand même un truc zarbi : si je monte via NFS le partage du NAS où je
backupe via rsync, il y a des dossier auxquels je n'ai pas accès, même en
root :

# ls -la /mnt/nas/Backup/wetek/storage/
total 8
drwxr-xr-x+ 1 root root  180 août  13 18:43 .
drwxrwxrwx+ 1   98   98   50 août  13 18:32 ..
-rw-------+ 1 root root 3857 août  13 16:48 .ash_history
-rw-------+ 1 root root    0 juin  29 08:26 .ash_history.14004.new
-rw-r--r--+ 1 root root  320 août  12 16:58 .ash_profile
drwxr-xr-x+ 1 root root  146 août  13 18:43 .cache
drwxr-xr-x+ 1 root root  318 août  13 18:43 .config
drwxr-xr-x+ 1 root root   58 août  13 18:32 .kodi
drwxr-xr-x+ 1 root root    0 août  13 18:32 screenshots
drwxr-xr-x+ 1 root root   80 août  13 18:44 .smb
drwx------+ 1 root root   30 août  13 18:44 .ssh   <<<<<<<<<<<
drwxr-xr-x+ 1 root root    0 août  13 18:32 .update


# ls -la /mnt/nas/Backup/wetek/storage/.ssh/
ls: impossible d'ouvrir le répertoire
'/mnt/nas/Backup/wetek/storage/.ssh/': Permission non accordée

Pourquoi ? Est-ce dû au fait qu'il y a un '+' à la fin des droits ? C'est
quoi ? les ACLS, justement ?

-- 
    Frédéric