# cd parent_directory
# tar Ecbf 256 - source_data | (cd /target_directory/ ; tar xf - );
In this example, we're copying /parent_directory/source_data
to /target_directory/source_data
, where source_data
is usually a directory.Notice that this can easily be converted to a
for
statement that iterates parent_directory
and starts a tar session for each of its subdirectories.
No comments:
Post a Comment