From owner-freebsd-questions@FreeBSD.ORG Fri Apr 5 01:07:56 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 37793592 for ; Fri, 5 Apr 2013 01:07:56 +0000 (UTC) (envelope-from fbsd8@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id B358E864 for ; Fri, 5 Apr 2013 01:07:55 +0000 (UTC) Received: from [10.0.10.1] ([173.88.202.176]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 4 Apr 2013 18:07:49 -0700 Message-ID: <515E23E2.1090906@a1poweruser.com> Date: Thu, 04 Apr 2013 21:07:46 -0400 From: Joe User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: FreeBSD questions Subject: using pax command for archive & restore Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 05 Apr 2013 01:07:49.0778 (UTC) FILETIME=[FDC75720:01CE3199] X-Sender: fbsd8@a1poweruser.com X-Authenticated-Sender: fbsd8@a1poweruser.com X-EchoSenderHash: [fbsd8]-[a1poweruser*com] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Apr 2013 01:07:56 -0000 I archive using the pax command like this pax -wzXt -x cpio -f ${archive_path_file} ${ip_path_file} ${ip_path_dir} and restore pax -rz -pe -f ${archive_path_file} and it restores the contents back to the same location it came from which is what I want. Now I would like to restore that archive file to a different directory. Tried different combinations of flags on the pax command and can't figure out the correct combination. pax -rz -pe -f ${archive_path_file} ${temp_dir} just gives me a syntax error. This has to be simple, but I can't see the trees because the forest is in the way. What am I missing here? Thanks