Skip to Content

Adding Timestamp to the file after archiving using SFTP sender adapter

Apr 05 at 08:35 PM


avatar image
Former Member


I have add timestamp like "yyyyMMddHHmmss" with out any spaces or special chars while archiving the file using SFTP adapter in pass through scenario.

when i use %TS it is adding like "yyyy-MM-dd_HH-mm-ss".

is there a way we can add a time stamp as per my requirement in SFTP adapter with out UDF. Please provide your inputs.



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jan Holakovsky Apr 09 at 09:19 AM

Hello, according to note 1876228 %TS can't be modified. I would try running OS command after message processing to rename the file properly.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Jan,

Appreciate your reply, i have to archive the file in SFTP path it self not on NFS, does OS command support support to do this on SFTP path. ?



If it's directly on the SFTP server, than I suggest you create a rename script on your PI OS and run this script as a OS command, since it probably won't be a simple single line command. Check this guide -

for SFTP it will be similar, only the connection to SFTP will be different.