The other day i was asked how do I backup my quicken data files but I want it to be seemless and automatic without me knowing, maybe it can send me an email to let me know that the backup went through.
This is very simple for My favorite Scripting Language MS Powershell
I started looking for the Quicken Data directory that contains the Quicken data files.
Then I made a folder for the backups to be put in on a weekly basis or daily depending on the customer choice
After I finish this script maybe I can have it send the user a email with a copy and paste from one of thse scripts on www.techjunkie.tv
here is the code to what i have so far
$date = get-date -uformat “%Y-%m-%d_%H%M”
$backuppath = “F:\Quicken_Backups”
$Month = (get-date).AddMonths(-15)
$Path = “G:\!scott_data\qk_data\quicken_data_fromdisk”
If (Test-Path -Path $Path) {
Cp $path -Destination $backuppath”\”$date -Recurse
echo “backup Completed!!!”
}
$Container = ls $backuppath | ? {$_.psiscontainer}
ForEach ($file in $Container) {
IF ($file.LastAccessTime -lt $month) {
del -Path $file.fullname -recurse -whatif
}
}
Let me know what you think guys
and as always please@!!! leave me a comment if u use this on your own Quicken 2005 to automaticly backitup