Here:
alias backup {
if ($1 == $time) { echo -a $date(%backup.date,hh:nn:sstt - mm/dd/yyyy) | return }
if ($1 == daily) { .timerbackup 0 86400 backup }
if ($1 == weekly) { .timerbackup 0 604800 backup }
if (!$isdir(backup)) { mkdir backup }
copy -o *.ini backup\*.ini
set %backup.date $ctime
}
This is just a really simply method. If you wanted, you could also have it compress the files or add a dialog to it. But this will work. Just include more copy commands for each file/filetype you want to back up, using the same format as the *.ini one. Also, feel free to format the last backup date/time however you like.
USE:
/backup ---- Backup up one time.
/backup daily ---- Backup immediately and once every day.
/backup weekly ---- Backup up immediately and once every week.
/backup time ---- Display the date/time it was last backed up.