Switches

/license

This outputs the license details (LGPL), it can not be used with any other switch (if it is, they’ll be ignored)

/path:

This is how you define the path it’ll use – this option is required

/days:

This is the max age of the backups, anything older will be deleted – this option is required

/zip

This will ZIP (compress) any uncompressed files with the file extension of .bak (MSSQL Backups)

/log

This will output to a log file (amend), if no path is specified it will use the current working directory, if no filename is used, the default will be used.

/debug

If this is set, it will output debug information, no actual work will be done. It’s useful for testing as it checks file permissions and confirms what will happen without actually doing it.

/safe

If TidyBackups detects a corrupt ZIP, it will be deleted, unless /safe has been used

/preserve:

This is the min number of backups that should remain, it will overwrite the /days. The idea is if your backups stop working, you will always keep at least a few. If no days are supplied, then it will default to 6. It will keep this number of each database. The database is determined by the filename, it assumes it’s in the format of databasenamedatetime.bak (or such).

Last edited Nov 3, 2012 at 12:41 AM by matt40k, version 2

Comments

No comments yet.