1)If I'll use both archive_command(rsync) and streaming option I will have duplicated wals on the barman side and then I will backup every wal twice, wont I ?
2)Yes I got it that barman cron will do the job for me, but why you mentioned that the streaming directory is the one that will contain the wals ? I checked the incoming directory in my configureation and this is the result :
barman show-server ptktl-psgsqldb1 | grep incoming
incoming_wals_directory: /PostgreSQL/barman//ptktl-psgsqldb1/incoming
max_incoming_wals_queue: None
I though that the wals will be coppied to the incoming directory. If it isnt true, why I have that directory ?
3)I deleted the content of the directory as you suggested.
4)I didnt have a load problem but I found out that it was because I didnt assign any value to the archive_command and because of that the pg_stop_backup failed to finish. After setting the archive_command to /bin/true it worked like magic.
5)Now It seems that i have problems with the slot :
2018-07-15 12:36:39,512 [9043] barman.server ERROR: Check 'receive-wal running' failed for server 'ptktl-psgsqldb1'
2018-07-15 12:42:20,175 [11270] barman.server ERROR: Check 'replication slot' failed for server 'ptktl-psgsqldb1'
2018-07-15 12:42:20,178 [11270] barman.server ERROR: Check 'failed backups' failed for server 'ptktl-psgsqldb1'
2018-07-15 12:42:20,183 [11270] barman.server ERROR: Check 'receive-wal running' failed for server 'ptktl-psgsqldb1'
barman check ptktl-psgsqldb1
...
replication slot: FAILED (slot 'barman' not active: is 'receive-wal' running?)
receive-wal running: FAILED (See the Barman log file for more details)
When I check the slots status in pg_replication_slot I see that the status of the slot is f. Is this is the reason behind the errors ? If yes how can I active the slot ? Or its just means that the slot is not in use right now ?
Thanks , Mariel.