backup a file periodically
I want to know a code to backup (copy) a file periodically,
daily, weekly, and monthly plus every I close the program
maybe with a little encryption
I've made one with encryption but when I copy any big file i got some error
(i forget it) and it's not periodicaly
if i only backup a txt file it's work
ps: sorry for my horrible english, I'm suck on it :P
Re: backup a file periodically
Re: backup a file periodically
Quote:
Originally Posted by
dextrometofan
I've made one with encryption but when I copy any big file i got some error (i forget it)
You can't possibly expect anyone to offer any suggestions based on this can you?
We need the code AND we need the number and exact wording of the error.
1 Attachment(s)
Re: backup a file periodically
i'm messed up my code very much,
& it's my last "save" backup
though it's horrible to see
it's on form2
still using button to backup (not periodically)
using caesar criple + str(whatever I forgot how to spell it) to encrypt
maybe someone could help me to fix it up
Re: backup a file periodically
Create one backup function (in a module). Then, based on the settings a user chose, call it in the Form_Unload event (application closing), or if it is periodical, create a Timer that will run once a minute (Interval 60.000) and check the current date/time (Now) against the date/time of the last backup. Then, depending on the DateDiff between the two and the period the user chose (every hour, daily, weekly etc) call the backup function.