Effortlessly create backup versions in-case file become corrupt, or issues arise.
Potential Usecase is backing up specified files every night, weekly, etc.
Table of Contents
To get the OneDrive Auto Backup to Github working; follow the steps below.
- Note: Only works on Windows Machines.
- Clone the repo
git clone https://github.com/APet99/OneDrive-Auto-Backup-to-Github
-
Complete all steps under Getting Started
-
Set the bat file up to execute on a desired interval:
- Open the Window's Task Scheduler
start taskschd.msc
- Click "Create Task"
- General:
- Add a name for the task
- Triggers:
- New > Set the frequency you prefer
- Actions:
- Select the bat file
- Add Arguements:
- Parameter 1 (Required): File Path to the git Repository
- Parameter 2+: The file name of the file in OneDrive that should be backed up.
- Example:
myFile1.docx myFile2.xlsx myFile3.pdf
-
Optionally, The script can be ran from a command line:
OneDriveBackup.bat C:\my\github\dir\ myFile1.docx myFile2.xlsx myFile3.pdf
Want to help? Contributions foster an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Alex Peterson - Discord: You12boo_#6682 Email: Petersonalex99@gmail.com