Mailinglist Archive: opensuse (3785 mails)

< Previous Next >
Re: [SLE] tar question
  • From: "Matt Stamm" <suselist@xxxxxxxxx>
  • Date: Thu, 9 Oct 2003 07:44:55 -0700
  • Message-id: <200310090744.AA79823274@xxxxxxxxx>
---------- Original Message ----------------------------------
From: Ken Schneider <kschneider@xxxxxxxx>
Date: Thu, 09 Oct 2003 10:12:34 -0400

>On Thu, 2003-10-09 at 09:31, Matt Stamm wrote:
>> I have a question on tar 'extract'
>>
>> i want to perform an extract that only overwrites files that are older than the ones in the tar archive and skips (doesn't overwrite) ones that are newer than those in the tar archive.
>>
>> I've read the info pages. I saw the '--overwrite' and '--keep-old-files' options but they do not do what I want. It seems the options are, either overwrite all files (--overwrite option), or skip files that already exist (--keep-old-files option).
>>
>> How can I do a date test and --overwrite files that are older than those in the tar archive, and --keep-old-files that are newer then the ones in the tar archive?
>>
>> Please help!
>>
>> Thanks
>> Matt
>
>Since a tar archive was supposed to be a backup of the files on the
>hard-drive it is assumed that the files in the tar archive can never be
>newer that those on the hard-drive hence that option would not be
>available. Should be but is not.
>

Understand. So that means tar is not useful when trying to keep two systems syncronized? I use tar to syncronize certain folders on my office and home systems. I've noticed that if i get home and update some files and then extract my office backup, the updates get overwritten. I was hoping there was a tar option that would prevent that.

Any ideas on how to accomplish this?

>--
>Ken Schneider
>unix user since 1989
>linux user since 1994
>SuSE user since 1998 (5.2)
>
>
>--
>Check the headers for your unsubscription address
>For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
>Also check the archives at http://lists.suse.com
>Please read the FAQs: suse-linux-e-faq@xxxxxxxx
>
>
>

< Previous Next >