How to use PAX command on OSX to perform incrementals.  Problem specifying time.   PRIORITY!

Posted on 2007-03-26
Last Modified: 2013-11-24
I'm trying to use PAX (the archive utility) on 10.4.9 OSX Server.   I'm trying to get this set up so that I can archive back to a particular day in order to do incremental backups, but when the backups run, the PAX always gets everything even though I'm setting up the proper date format as far as I can tell from the man pages.    

Here is the command I'm using to try to back up anything that has been modified since March 25, 2007 at midnight.
pax -w -x cpio  -T 0703250000.00/cm -f /Volumes/Backups/OSX/april-Level5-3-26-2007.cpio .

Instead of backing up what was changed from yesterday to today, this command is backing up EVERYTHING on that directory where I'm running it.   So it is probably the wrong date format, although that is how it said to do it in the man page.

Please help, I need this going ASAP.

Question by:wmitch2535
  • 2
  • 2
LVL 12

Assisted Solution

dalesit earned 500 total points
ID: 18806517
Quick test - can you run

find . -mtime 1 -print

to verify what files are showing up with a modification time of one day.

Are these different from the results you were getting above? ie you have more or less the numbers you would expect?



Author Comment

ID: 18808086
I tried that find . -mtime 1 -print and it did exactly as I would expect.  Only those files that were modified within the past day were shown while the rest of the files were not.  When you just performed a find. -print, it gave me thousands of files instead of the 100 that it showed me when I ran your command.  

Thanks for the thought!
LVL 12

Accepted Solution

dalesit earned 500 total points
ID: 18808269
How about if you change the flags on the pax  command?

pax -w -x cpio  -T 0703250000.00/m -f /Volumes/Backups/OSX/april-Level5-3-26-2007.cpio .

and just search on the modification date? Doing this works for me..... The previous test indicates that your modification dates are OK.

Also have a look at which gives a nice alternative mechanism for doing backups and archiving.



Author Comment

ID: 18811786
Actually the problem turned out to be the /cm switch on the time command.   The problem was that each night, there is a cron script that copies the data from  one partition to another partition.   This updates the inodes to be all modified from that time they were copied.  The /cm flag therefore caused everything to be selected.   I have since removed the /cm flag and it works great now.

Thank you all for your help!

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How do I remove all Safari bookmarks and start my Bookmarks afresh ? 2 78
apache vhosts on mac not being recognized 5 69
Mac Online Backups 7 57
Sluggish MBP browser 17 53
Are you new to OS X?  This helpful advice could get you quickly up to speed if you are making the transition from windows or totally new to OS X. Finder gives you the visual connection between you and the files located on the hard drive of your A…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now