DA Corporate

Software and services for online backups and campaign management
Welcome to DA Corporate Sign in | Join | Help

ArchiveFile utility program

File Details
Downloads: 836 File Size: 24kB
Posted By: Doug Clutter Views: 1339
Date Added: Tue, Sep 11 2007

A utility program that renames a file (or series of files) to make room for a new version of the file.  Great for keeping multiple versions of things like an Oracle Export.  Automatically deletes the oldest archive so that you don't waste disk space.

Example 1:
Assume you have these files: test.txt, test~1.txt, test~2.txt, test~3.txt

ARCHIVEFILE test.txt /M:3
will do the following:
 test~3.txt is deleted because it is the oldest archive file
 test~2.txt is renamed to test~3.txt
 test~1.txt is renamed to test~2.txt
 test.txt is renamed to test~1.txt

Example 2:
Assume you have these files: test.txt, test~001.txt, test~002.txt, test~003.txt
and all of the files are 250k
and you have 100k of free disk space

ARCHIVEFILE test.txt /M:300 /F:2
will do the following:
 /F:2 says that you want to have >500k of free disk space (2 * 250k)
 so test~003.txt is deleted which increases free disk space to 350k
 and test~002.txt is deleted which increases free disk space to 600k
 test~001.txt is renamed to test~002.txt
 test.txt is renamed to test~001.txt

Comments
No comments exist for this file.

Add Comment

Name (required)
Web Site (optional)
Comment (required)
Add