Link to home
Start Free TrialLog in
Avatar of wmitch2535
wmitch2535

asked on

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

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.   yymmddhhmm.ss

Please help, I need this going ASAP.
David


SOLUTION
Avatar of dalesit
dalesit

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wmitch2535
wmitch2535

ASKER

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!
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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!
David