Replies: 3 comments 2 replies
-
When you have spaces in a directory name it needs to be quoted. That is the nature of using *nix type scripts. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Where do you see unquoted paths in my config (for Windows^^)? |
Beta Was this translation helpful? Give feedback.
1 reply
-
You need a single backslash (\) in front of spaces. E.g.:
restic-binary = ***@***.***\ Line\ Tools\\restic_x64\\restic.exe"
…________________________________
From: highend
Sent: Thursday, November 21, 2024 7:18 PM
To: creativeprojects/resticprofile
Cc: Subscribed
Subject: [creativeprojects/resticprofile] Windows: Space(s) in paths don't work? (Discussion #433)
Hi,
I'm trying to use resticprofile on Windows.
resticprofile 0.29.0
restic 0.17.3
Test profiles.toml:
version = "1"
[global]
restic-binary = ***@***.*** Line Tools\\restic_x64\\restic.exe"
[default]
repository = "T:\\backup\\restic"
password-file = ***@***.*** Line Tools\\restic_x64\\key.pub"
[default.backup]
verbose = true
skip-if-unchanged = true
cache-dir = "T:\\restic_cache"
files-from = ***@***.*** Line Tools\\restic_x64\\include_paths.txt"
exclude-file = ***@***.*** Line Tools\\restic_x64\\exclude_patterns.txt"
resticprofile.exe --verbose backup --dry-run
Result:
2024/11/22 00:57:21 resticprofile 0.29.0 compiled with go1.23.2
2024/11/22 00:57:21 using configuration file: profiles.toml
2024/11/22 00:57:21 loading: profiles.toml
2024/11/22 00:57:21 memory available: 4656MB
2024/11/22 00:57:21 using restic 0.17.3
2024/11/22 00:57:21 profile 'default': starting 'backup'
2024/11/22 00:57:21 command environment: reusing previous
2024/11/22 00:57:21 starting command: ***@***.*** Line Tools\restic_x64\restic.exe backup --cache-dir=T:\restic_cache ***@***.*** Line Tools\restic_x64\exclude_patterns.txt ***@***.*** Line Tools\restic_x64\include_paths.txt --password-file=T:\backup\restic\key.pub --repo=T:\backup\restic --skip-if-unchanged --verbose --dry-run
***@***.***' is not recognized as an internal or external command,
operable program or batch file.
2024/11/22 00:57:21 backup on profile 'default': exit status 1
If I double quote all paths and run restic with the output of the command from above, the backup runs fine (ofc, with --dry-run here)...
What am I doing wrong?
—
Reply to this email directly, view it on GitHub<#433>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AE6GOSWIXRAJQVQPJULJRAD2BZZ5FAVCNFSM6AAAAABSIGLVFGVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGUZDSOJTHA>.
You are receiving this because you are subscribed to this thread.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to use resticprofile on Windows.
resticprofile 0.29.0
restic 0.17.3
Test
profiles.toml
:resticprofile.exe --verbose backup --dry-run
Result:
If I double quote all paths and run restic with the output of the command from above, the backup runs fine (ofc, with --dry-run here)...
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions