Solved

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

Posted on 2007-03-26
4
410 Views
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.   yymmddhhmm.ss

Please help, I need this going ASAP.
David


0
Comment
Question by:wmitch2535
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 12

Assisted Solution

by:dalesit
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?

Cheers,

Joel
0
 

Author Comment

by:wmitch2535
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!
0
 
LVL 12

Accepted Solution

by:
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 http://matt.makalumedia.com/archives/000833.html which gives a nice alternative mechanism for doing backups and archiving.

Cheers,

Joel
0
 

Author Comment

by:wmitch2535
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!
David
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Connectivity using SMB Symptoms When connecting to Windows Server shares from a Mac you receive an error similar to "Connection failed because the original item could not be found"Authentication persistently fails to a Windows Server from a Mac wi…
If you other experts are anything like me you are always looking into and testing out new features. While I was doing some research one day I ran across an app that I installed on my Mac and used as a security system. Mac OS X: SecureHome uses your …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

733 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