Automatically sync local folders to Dropbox while skipping cache and large files.
-
Configure paths in
config.ps1:$SourcePath = "D:\YourSourceFolder" $DropboxPath = "C:\Users\YourUsername\Dropbox\YourBackupFolder" $LogPath = "D:\Logs\sync_log.txt"
-
Run manual sync:
make sync
-
Setup automatic scheduling:
# Run PowerShell as Administrator .\setup_scheduler.ps1
DropSync.ps1- Main sync scriptconfig.ps1- Your personal pathssetup_scheduler.ps1- Creates Windows scheduled tasksMakefile- Simple commands (make sync,make help)
Default: Runs automatically 4 times daily at 11:00 AM, 3:00 PM, 6:00 PM, 8:00 PM.
To customize times: Edit the trigger times in setup_scheduler.ps1 before running:
$trigger1 = New-ScheduledTaskTrigger -Daily -At "09:00" # Change to your preferred time
$trigger2 = New-ScheduledTaskTrigger -Daily -At "13:00" # Change to your preferred time
# etc.Folders: .git, node_modules, __pycache__, .venv, logs, dist, build, etc.
Files: *.pkl, *.csv, *.h5, *.log, *.tmp, etc.
make sync # Run sync now
make log # View last 20 log entries
make help # Show all commands- Sync logs:
D:\Logs\sync_log.txt - Task status:
Get-ScheduledTask -TaskName 'DropSync*' - Task history: Task Scheduler GUI (
taskschd.msc)
View scheduled tasks:
Get-ScheduledTask -TaskName 'DropSync*'Test a task manually:
Start-ScheduledTask -TaskName "DropSync_Morning"Remove all tasks:
Get-ScheduledTask -TaskName 'DropSync*' | Unregister-ScheduledTask- Windows PowerShell
- Dropbox desktop app installed
- Administrative privileges (for scheduler setup only)
Your workspace is now automatically backed up to Dropbox!