8. Scheduling your Backup
The last thing to do is schedule the backups to raun automatically.
If you can, type cmd in to the search on start and press enter.
Copy and paste the following in to the DOS window.
schtasks /create /tn "Backup 2 Google" /tr "C:\Python34\python.exe '%USERPROFILE%\Google Drive\ai.net.nz\aibackup.py'" /sc daily /st 11:20:00 /rl HIGHESTT
This should all go on one line! And after pressing enter is should say
SUCCESS: The scheduled task "Backup 2 Google" has successfully been created.
Another way of doing this schedule is via the control panel.
- Open up your computers Control Panel.
- Go to System and Security

- Open up Administrative Tools

- Open up Task Scheduler

- Click on Task Scheduler Library

- Click on Create Basic Task

- Give the task a name : Backup 2 Google, Click Next

- Set the trigger to Daily, Click Next
- Give the task a time to run, choose a time when the computer will be on, Click Next.

- Action is Start a program, Click Next
- Click Browse and go to C:\Python34\ and choose python.exe

- The "Add arguments (optional):" is the path to Google Drive\ai.net.nz\aibackup.py, for example "C:\Users\tony\Google Drive\ai.net.nz\aibackup.py".
- This Add arguments must be enclosed in "Speech Marks", Click Next
- Tick the "Open the Properties dialogue for this task when I click Finish". and click Finish
- In the new window all we need to do is tick Run with highest privileges.

- Done, now we need to ensure that the backup actually runs at the time you set it to run!