Restic with rclone serve running in background kills/logout active session (linux)

Hello,

i dont know what i’m doing wrong, but if i start a restic task in the background with & at the end of the commandline, after the work is done, the active session which started the task ends with an logout. ??

e.g.
this works fine, of course:
--------------
userA@homeserver:~$ restic -r rclone:remoteserver-restic:backup1/ --password-file /home/userA/Cloud/.LocalBackup/restic_remoteserver.dat --verbose snapshots
repository 018a1846 opened successfully, password is correct
ID        Time                 Host                         Tags        Paths
-----------------------------------------------------------------------------------------
b4f3e414  2021-03-01 00:15:14  host              /home/userA/Cloud
3d3faeb5  2021-03-02 16:13:18  host              /home/userA/Cloud
8bbb07c9  2021-03-03 14:12:48  host              /home/userA/Cloud
d39d46b6  2021-03-04 15:35:19  host              /home/userA/Cloud
348482ad  2021-03-05 17:26:59  host              /home/userA/Cloud
1565dd1b  2021-03-07 01:38:11  host              /home/userA/Cloud
0f6ea5b5  2021-03-08 13:06:39  host              /home/userA/Cloud
2385b811  2021-03-08 13:10:37  host              /home/userA/Cloud
4fa529f1  2021-03-08 13:15:32  host              /home/userA/Cloud
-----------------------------------------------------------------------------------------
9 snapshots
userA@homeserver:~$
----------------

now as a background task:

----------------
userA@homeserver:~$ restic -r rclone:remoteserver-restic:backup1/ --password-file /home/userA/Cloud/.LocalBackup/restic_remoteserver.dat --verbose snapshots &
[1] 21185
userA@homeserver:~$ repository 018a1846 opened successfully, password is correct
ID        Time                 Host                         Tags        Paths
-----------------------------------------------------------------------------------------
b4f3e414  2021-03-01 00:15:14  host              /home/userA/Cloud
3d3faeb5  2021-03-02 16:13:18  host              /home/userA/Cloud
8bbb07c9  2021-03-03 14:12:48  host              /home/userA/Cloud
d39d46b6  2021-03-04 15:35:19  host              /home/userA/Cloud
348482ad  2021-03-05 17:26:59  host              /home/userA/Cloud
1565dd1b  2021-03-07 01:38:11  host              /home/userA/Cloud
0f6ea5b5  2021-03-08 13:06:39  host              /home/userA/Cloud
2385b811  2021-03-08 13:10:37  host              /home/userA/Cloud
4fa529f1  2021-03-08 13:15:32  host              /home/userA/Cloud
-----------------------------------------------------------------------------------------
9 snapshots

------>>here: any key i hit on keyboard leads to the logout:

logout
[1]+  Done                    restic -r rclone:remoteserver-restic:backup1/ --password-file /home/userA/Cloud/.LocalBackup/restic_remoteserver.dat --verbose snapshots
-----------------------

this is reagardless of restic-command used. the remote is an ftp, but i also tried with sftp. doesnt changed this behavior.

now, this all works flawless when using a local repositiory.
any ideas, what is causing that? :smiley:

thanks in advance.