Provided are a method, system, and program for archiving files. A
hierarchical file system having directories is provided. An archival
retention policy is associated with at least one of the directories in
the hierarchical file system, wherein the retention policy applies to
files included in the associated directory, and wherein the retention
policy specifies a retention time indicating a time period during which a
file is subject to the retention policy.