Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Backup By Create Date??

Status
Not open for further replies.

rhearn

IS-IT--Management
Nov 6, 2000
22
0
0
CA
I need to backup some files by create/modify date. Does anyone know of any easy way to do this. I would probably be using either TAR or BACKUP.

Thanks In Advance.

Rich
 
It's impossible a backup by creation date because AIX (like other normal *ixes do) doesn't store the creation date of files!

You can backup files like this:
Relative paths:
[tt]
cd /starting/dir
find . -print | backup -iqvf /backup/file/or/device
[/tt]
Full paths
[tt]
find /starting/dir -print | backup -iqvf /backup/file/or/device
[/tt]

You can specify modification dates like this
Relative way:
[tt]
cd /starting/dir
find . -mtime +9 -print | backup -iqvf /backup/file/or/device
[/tt]
The [tt]-mtime +9[/tt] tells to [tt]find[/tt] command to only select files with nine or more days old of modified (Exactly 9*24 hours old of modified). Change to suit your needs.
I hope it works...
Unix was made by and for smart people.
 
the backup command has incremental backups

Remember you do need a mksysb from time to time to have the boot up, and lv sizes and stuff as well as data....




You can also do it with a find command........... by mtime or by comparison of file dates.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top