Про линуксы

Feb 12, 2014 01:46

О том, как безобидный GNU tar может сделать вам большую подлянку ( Read more... )

Leave a comment

Comments 8

kiryl February 12 2014, 00:32:02 UTC
Правильный tar -- это cpio ;)

Reply


inhate February 12 2014, 04:06:06 UTC
последний раз - rsync -avz

Reply

jek_hor February 12 2014, 07:01:29 UTC
Ну там ровно то же самое, вот и причина:

-o, --owner
This option causes rsync to set the owner of the destination file to be the same as the source file, but only if the receiving rsync is being run as the super-user (see also the --super and --fake-super options). With‐
out this option, the owner of new and/or transferred files are set to the invoking user on the receiving side.

The preservation of ownership will associate matching names by default, but may fall back to using the ID number in some circumstances (see also the --numeric-ids option for a full discussion).

Reply

poligraph February 12 2014, 10:27:05 UTC
+1

Reply

jek_hor February 12 2014, 12:42:26 UTC
Это и была причина фейла :)

Reply


measles February 12 2014, 07:43:29 UTC
Жэня, а я калі пераязджаў у свой час з аднаго дыстра на другі, то як раз так і зрабіў. А як раз лічбавы UID карыстальніка крыху змяніўся. Таксама было цікава і пазнавальна.

Reply


abbra February 12 2014, 09:15:45 UTC
cpio же. У tar есть и другие проблемы, например, обрезание имен пользователей и групп для совместимости с HP UX.

Reply

jek_hor February 12 2014, 12:42:02 UTC
Угу. Проверил по коду - лишними интеллектом и инициативностью не страдает.

Reply


Leave a comment

Up