paries
asked on
tar with --newer-mtime includes all the directories
hello, each night i am running the command
It is finding and adding all the files modified OK, but also adding every directory. For my system that is over a GIG and yet total modified files are only a couple 100MB
I looked at the doc and there wasn't anything that jumped out. tar --incremental will not work in my situation
thanks for any suggestions/help
/bin/tar cfz $TARFILENAME --newer-mtime=\"$yesterday 00:00:01-06:00\" /home
It is finding and adding all the files modified OK, but also adding every directory. For my system that is over a GIG and yet total modified files are only a couple 100MB
I looked at the doc and there wasn't anything that jumped out. tar --incremental will not work in my situation
thanks for any suggestions/help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
find option given above is good for finding all files modified and then adding to tar.