Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There is a tar file which was created few days before, this tar file was created on the /files directory.

And now /files directory has new files uploaded in it.

My question is how to create another files with only the new files uploaded.


share|improve this question

Sounds to me like you want to do a incremental backup (Also look at differential to see if that is what you want). Here is good tutorial on how to do incremental backups with tar.

If you want just a diff, than use the -d switch (at least with GNU tar):

-d, --diff, --compare
              find differences between archive and file system

So for example tar -df foo.tar *

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.