Hello, power-pro!
Here are a couple of scripts to be added to PowerPro manual or simply
used by whoever wants them.
Basically, they duplicate the functionality of simple backup programs,
such as TaskZip, without big download and memory overhead and with
some extra flexibility. The first one provides simple all-inclusive
backup and the second one is incremental backup (only files changed
from last run are archived).
I use them like this: on a weekly basis I run something similar to
.Backup("c:\backup\mywork", "c:\mywork\*.*")
This archives everything in c:\mywork directory and its
subdirectories, puts the result as one big file into
c:\backup\mywork.rar and removes "archive" bit from all files that
were archived.
I execute the second script on a daily basis:
.IncrBackup("c:\backup\mywork", "c:\mywork\*.*")
This gives me seven more files (one for each day) in the same
directory which take very little time to create (only new and changed
files are archived in them) but together they contain all the
information that was changed last week.
Of course, I have multiple backups for multiple important directories
scheduled at different weekdays.
The scripts try to prevent backup damage by not killing previous
version of backup file if there is some problem with the latest one
and showing a message. Backup job is run at slightly lower priority
than normal programs so as not to interfere with my work if I happen
to be working when backup time comes.
===================Backup.txt===============
If (File.validpath(arg(1) ++ ".RAR")) do
File.Delete(arg(1)++"1.RAR")
File.Move(arg(1)++".RAR", arg(1)++"1.RAR")
Else
Message &("Backup problem - no "++arg(1)++".RAR present, trying backup anyway")
Endif
cmd /c start /BELOWNORMAL rar a -m5 -s -r -ac "&(arg(1)).RAR" "&(arg(2))"
===================IncrBackup.txt===============
File.Delete(arg(1)++Date.WeekDay(Date.Today)++".RAR")
rar a -m5 -s -r -ao -ac "&(arg(1))&(Date.WeekDay(Date.Today)).RAR" "&(arg(2))"
--
Best regards,
Pavel Grodek, PC Week/RE, Editor. mailto:[EMAIL PROTECTED]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/