kmwoley / restic-windows-backup

Powershell scripts to run Restic backups on Windows
MIT License
330 stars 68 forks source link

Windows Task Scheduler doesn't process config.ps1 #53

Closed LasoGit closed 1 year ago

LasoGit commented 3 years ago

EDIT: see last post

Dear Kevin,

many thanks for your work! I followed your installation instructions successfully until defining $BackupSources in config.ps1.

This will back up C:\ entirely:

$BackupSources = @{} $BackupSources["C:\"] = @(

'Users'

)

I only want to include a specific folder and can't manage to replace the # 'Users' line with C:\path\to\folder Can you please advise? Sorry for raising this as an issue, I searched the forum to no avail and think this is the best place to look for an answer...

rawtaz commented 3 years ago

@LasoGit You have to explain the problem. What do you mean by "can't manage to replace the # 'Users' line"? It's just a line of text - replace it using a text editor?

LasoGit commented 3 years ago

@rawtaz Sorry for not explaining the issue concisely. Following the instructions, I successfully initialized a new repo (step 4 ii.) so assume I did everything right up to that point. In step 5, I changed the default $BackupSources in order to only backup "folder123" and not the entire drive C:. I replaced lines 27-30 in config.ps1 with this:

$BackupSources = @{} $BackupSources["C:\"] = @( users\user\path\to\folder123 )

I omitted step 6 (nothing to exclude), followed step 7 (exclusion from win detection) and finally triggered the task manually in Task Scheduler. In the Task Scheduler, "Restic Backup" shows as "running", but nothing happens except for empty error logs appearing in Githubissues.

  • Githubissues is a development platform for aggregating issues.