in reply to Re: Seeking help on a backup script
in thread Seeking help on a backup script

Given that you are going from a windows box I'm not sure if you ahve access to epoch time. You can always use the localtime values to build up A YYYYMMDDHHMMSS type of date string as well.

And I third holli's suggestion of encoding the date into the filename and simply sorting based on the filename.

If you want to go the extra mile you could leverage something like rsync to do incrementals .


...stumbling down the path toward enlightenment

Replies are listed 'Best First'.
Re^3: Seeking help on a backup script
by Anonymous Monk on Aug 31, 2006 at 16:15 UTC
    Dear monks,

    Thank you for your ideas/suggestions. I am going to encode the date into the backup filename. It will be easy to determine the older files by sorting on the filenames. Additionally, the filenames will automatically include information on when the backup was made. So, the site admin can use a simple directory listing to check on the backup status.

    Kind Regards,

    Anand Mathur