Fix relative input paths being silently skipped

rsync reads --files-from entries relative to the source directory
('/'), so relative inputs pointed to the wrong path and were ignored
due to --ignore-missing-args. Convert inputs to absolute paths.
This commit is contained in:
Fuxino
2026-10-08 17:35:35 +02:00
parent 0f4a100ac7
commit 2c2649113d
+2 -1
View File
@@ -508,7 +508,8 @@ class Backup:
if not os.path.exists(i):
logger.warning('Input %s not found. Skipping', i)
else:
fp.write(i)
# rsync reads --files-from paths relative to the source ('/')
fp.write(os.path.abspath(i))
fp.write('\n')
count += 1