Archiving directories

2018-04-16 Thread Loon, Eric van (ITOPT3) - KLM
Hi guys,
I noticed something unexpected with creating archives. Let me explain what I 
did:

1)  Under root in the homedir I created a directory called test with two 
subdirs (test1 and test2) and one file (testfile).

2)  The directory test and everything in it is owned by a non-root account 
in Linux.
When I create an archive with dsmc ar /root/test/ -subdir=yes I notice that 
everything is archived as expected:

Directory-->   4,096 /root/test [Sent]
Normal File--> 1,032 /root/test/testfile [Sent]
Directory-->   4,096 /root/test/test1 [Sent]
Directory-->   4,096 /root/test/test2 [Sent]
Archive processing of '/root/test/*' finished without failure.

Then I issued the same command again. This time the output is not the same:

Normal File--> 1,032 /root/test/testfile [Sent]
Archive processing of '/root/test/*' finished without failure.

Only the file is archived, not the directory itself, nor the subdirectories. 
Not a big issue you might think, but it can be when you retrieve the whole 
tree. When the first archive is made yesterday and the second one today, the 
result of a retrieve will be different. A retrieve with -fromdate="04/15/2018" 
will retrieve the file and subdirs with the original (non-root) owner. A 
retrieve with -fromdate="04/16/2018" however will retrieve the file with the 
non-root owner and it will recreate the /root/test directory with root as 
owner. Since the subdirs are not archived on the 16th, they are not being 
retrieved at all.
I cannot understand why the (sub)directories are not being archived during the 
second archive command.
Kind regards,
Eric van Loon
Air France/KLM Storage Engineering


For information, services and offers, please visit our web site: 
http://www.klm.com. This e-mail and any attachment may contain confidential and 
privileged material intended for the addressee only. If you are not the 
addressee, you are notified that no part of the e-mail or any attachment may be 
disclosed, copied or distributed, and that any other action related to this 
e-mail or attachment is strictly prohibited, and may be unlawful. If you have 
received this e-mail by error, please notify the sender immediately by return 
e-mail, and delete this message.

Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its 
employees shall not be liable for the incorrect or incomplete transmission of 
this e-mail or any attachments, nor responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch 
Airlines) is registered in Amstelveen, The Netherlands, with registered number 
33014286



Re: Archiving directories

2018-04-16 Thread Efim
Hi,
I think it's because the archive description is the same (the default is 
"Archive Date: mm/dd/")
With the same archive description, the directory can not be copied again 
because it can affect already archived data.
Can you try to use a unique description when you run second archive?
Efim



> 16 апр. 2018 г., в 16:47, Loon, Eric van (ITOPT3) - KLM 
>  написал(а):
> 
> Hi guys,
> I noticed something unexpected with creating archives. Let me explain what I 
> did:
> 
> 1)  Under root in the homedir I created a directory called test with two 
> subdirs (test1 and test2) and one file (testfile).
> 
> 2)  The directory test and everything in it is owned by a non-root 
> account in Linux.
> When I create an archive with dsmc ar /root/test/ -subdir=yes I notice that 
> everything is archived as expected:
> 
> Directory-->   4,096 /root/test [Sent]
> Normal File--> 1,032 /root/test/testfile [Sent]
> Directory-->   4,096 /root/test/test1 [Sent]
> Directory-->   4,096 /root/test/test2 [Sent]
> Archive processing of '/root/test/*' finished without failure.
> 
> Then I issued the same command again. This time the output is not the same:
> 
> Normal File--> 1,032 /root/test/testfile [Sent]
> Archive processing of '/root/test/*' finished without failure.
> 
> Only the file is archived, not the directory itself, nor the subdirectories. 
> Not a big issue you might think, but it can be when you retrieve the whole 
> tree. When the first archive is made yesterday and the second one today, the 
> result of a retrieve will be different. A retrieve with 
> -fromdate="04/15/2018" will retrieve the file and subdirs with the original 
> (non-root) owner. A retrieve with -fromdate="04/16/2018" however will 
> retrieve the file with the non-root owner and it will recreate the /root/test 
> directory with root as owner. Since the subdirs are not archived on the 16th, 
> they are not being retrieved at all.
> I cannot understand why the (sub)directories are not being archived during 
> the second archive command.
> Kind regards,
> Eric van Loon
> Air France/KLM Storage Engineering
> 
> 
> For information, services and offers, please visit our web site: 
> http://www.klm.com. This e-mail and any attachment may contain confidential 
> and privileged material intended for the addressee only. If you are not the 
> addressee, you are notified that no part of the e-mail or any attachment may 
> be disclosed, copied or distributed, and that any other action related to 
> this e-mail or attachment is strictly prohibited, and may be unlawful. If you 
> have received this e-mail by error, please notify the sender immediately by 
> return e-mail, and delete this message.
> 
> Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its 
> employees shall not be liable for the incorrect or incomplete transmission of 
> this e-mail or any attachments, nor responsible for any delay in receipt.
> Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch 
> Airlines) is registered in Amstelveen, The Netherlands, with registered 
> number 33014286
>