The backup command with --stdin-command behaviour is not working as expected.
it doesn't detect changes in the file and therefore shows the old value
The first backup shows 1 New but the second when changing the content of the stdin output shows 1 unchanged
version 0.11.3
bash-5.1# rustic backup --no-scan --host backup-container --stdin-filename=echo.txt --stdin-command="echo 'test'" -
[INFO] using no config file, none of these exist: /root/.config/rustic/rustic.toml, /etc/rustic/rustic.toml, ./rustic.toml
[INFO] repository opendal:s3:backups: password is correct.
[INFO] using no cache
[INFO] using no parent
[INFO] starting to backup ["echo.txt"] ...
[INFO] Files: 1 new, 0 changed, 0 unchanged
[INFO] Dirs: 1 new, 0 changed, 0 unchanged
[INFO] Added to the repo: 147 B (raw: 125 B)
[INFO] processed 1 files, 5 B
[INFO] snapshot 35020d4e successfully saved.
[INFO] backup of - done.
bash-5.1# rustic dump 35020d4e:/echo.txt
test
^^^ Thats what we expected
bash-5.1# rustic backup --no-scan --host backup-container --stdin-filename=echo.txt --stdin-command="echo 'newtest'" -
[INFO] using no config file, none of these exist: /root/.config/rustic/rustic.toml, /etc/rustic/rustic.toml, ./rustic.toml
[INFO] repository opendal:s3:backups: password is correct.
[INFO] using no cache
[INFO] using parents 35020d4e
[INFO] starting to backup ["echo.txt"] ...
[INFO] Files: 0 new, 0 changed, 1 unchanged
[INFO] Dirs: 0 new, 0 changed, 1 unchanged
[INFO] Added to the repo: 0 B (raw: 0 B)
[INFO] processed 1 files, 0 B
[INFO] snapshot 79f30b94 successfully saved.
[INFO] backup of - done.
bash-5.1# rustic dump 79f30b94:/echo.txt
test
^^^ should show newtest
with the version rustic 0.11.2 it worked as expected
bash-5.1# rustic backup --no-scan --host backup-container --stdin-filename=echo.txt --stdin-command="echo 'test'" -
[INFO] using no config file, none of these exist: /root/.config/rustic/rustic.toml, /etc/rustic/rustic.toml, ./rustic.toml
[INFO] repository opendal:s3:backups: password is correct.
[INFO] using no cache
[INFO] using no parent
[INFO] starting to backup - ...
[INFO] Files: 1 new, 0 changed, 0 unchanged
[INFO] Dirs: 1 new, 0 changed, 0 unchanged
[INFO] Added to the repo: 0 B (raw: 0 B)
[INFO] processed 1 files, 5 B
[INFO] snapshot df9d0c4b successfully saved.
[INFO] backup of - done.
bash-5.1# rustic dump df9d0c4b:/echo.txt
test
^^^ Thats what we expected
bash-5.1# rustic backup --no-scan --host backup-container --stdin-filename=echo.txt --stdin-command="echo 'newtest'" -
[INFO] using no config file, none of these exist: /root/.config/rustic/rustic.toml, /etc/rustic/rustic.toml, ./rustic.toml
[INFO] repository opendal:s3:backups: password is correct.
[INFO] using no cache
[INFO] using no parent
[INFO] starting to backup - ...
[INFO] Files: 1 new, 0 changed, 0 unchanged
[INFO] Dirs: 1 new, 0 changed, 0 unchanged
[INFO] Added to the repo: 0 B (raw: 0 B)
[INFO] processed 1 files, 8 B
[INFO] snapshot 640dc08d successfully saved.
[INFO] backup of - done.
bash-5.1# rustic dump 640dc08d:/echo.txt
[INFO] using no config file, none of these exist: /root/.config/rustic/rustic.toml, /etc/rustic/rustic.toml, ./rustic.toml
[INFO] repository opendal:s3:backups: password is correct.
[INFO] using no cache
[INFO] getting snapshot ...
newtest
^^^ newtest is the content ! Thats what we expected
The backup command with --stdin-command behaviour is not working as expected.
it doesn't detect changes in the file and therefore shows the old value
The first backup shows 1 New but the second when changing the content of the stdin output shows 1 unchanged
version 0.11.3
with the version rustic 0.11.2 it worked as expected