---------- Original Message ----------------------------------
From: Ken Schneider
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@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
rdist, maybe?
On Thu, 9 Oct 2003 07:44:55 -0700
"Matt Stamm"
---------- Original Message ---------------------------------- From: Ken Schneider
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@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Thursday 09 October 2003 07:44, Matt Stamm wrote:
From: Ken Schneider
Date: Thu, 09 Oct 2003 10:12:34 -0400 On Thu, 2003-10-09 at 09:31, Matt Stamm wrote: 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.
I use unison for this purpose. It's on the SuSE CDs and also available for Windows at http://www.cis.upenn.edu/~bcpierce/unison/. HTH Michael
On Thu, Oct 09, 2003 at 07:44:55AM -0700, Matt Stamm wrote:
---------- Original Message ---------------------------------- From: Ken Schneider
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?
rsync Henry Harpending
participants (4)
-
Henry Harpending
-
Matt Stamm
-
Michael Hieb
-
Michael Siefritz