Solved

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

Posted on 2007-03-26
4
420 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

If you are using Mac OS X and have a large number of login items set up in accounts, under system preferences, you may find that your computer is sluggish and unresponsive during startup until everything is done launching. Another problem that a…
In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
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 …
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

622 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