PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.security.ssh > rsync shooting itself in the foot by setting permission 000 on directory
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.security.ssh SSH secure remote login and tunneling tools.

rsync shooting itself in the foot by setting permission 000 on directory

Réponse
 
LinkBack Outils de la discussion
Vieux 20/12/2006, 14h12   #1
Steven Mocking
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut rsync shooting itself in the foot by setting permission 000 on directory

During a backup of a large directory from a Windows XP machine to a
Linux machine, rsync sets permissions on a directory to 000. This
effectively prevents it from writing the subdirectories and files to it.

The user my rsync script runs as on the winbox does have access to these
files, so even when preserving permissions, it should be accessible for
the rsync user on the target machine. I could probably work around this
by not using the --perms option and setting an umask at the receiving
end, but it's not very elegant.

Any other ideas? Is this even a feature?

The rsync version on the windows machine is

rsync version 2.6.8 protocol version 29
Copyright (C) 1996-2006 by Andrew Tridgell, Wayne Davison, and others.
<http://rsync.samba.org/>
Capabilities: 64-bit files, socketpairs, hard links, symlinks,
batchfiles, inplace, no IPv6, 64-bit system inums, 64-bit internal inums
  Réponse avec citation
Vieux 23/12/2006, 14h58   #2
Nico
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: rsync shooting itself in the foot by setting permission 000 on directory


Steven Mocking wrote:

> During a backup of a large directory from a Windows XP machine to a
> Linux machine, rsync sets permissions on a directory to 000. This
> effectively prevents it from writing the subdirectories and files to it.
>
> The user my rsync script runs as on the winbox does have access to these
> files, so even when preserving permissions, it should be accessible for
> the rsync user on the target machine. I could probably work around this
> by not using the --perms option and setting an umask at the receiving
> end, but it's not very elegant.
>
> Any other ideas? Is this even a feature?


Rsync runs extremely poorly on Windows machines, in my experience. I'd
suggest you make sure to use "rsync -avvH" to do a bit of testing, but
even better do a Samba mount of the directory on the Linux machine, and
rsync *THAT* to your local Linux box. And look into using "rsnapshot"
to make it a bit safer and faster.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h15.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 5,11724 seconds with 10 queries