OPNsense Forum

English Forums => 26.1, 26,4 Series => Topic started by: SchengFui on July 07, 2026, 01:52:59 PM

Title: (os-sftp-backup) Backup-Files get Unix-Timestamp
Post by: SchengFui on July 07, 2026, 01:52:59 PM
Hi there,

config-Backups created with os-sftp-backup get the unix-Timestamp and wrong Domain: opnsense.localdomain-1783424751.5848.xml

Is there any way to make this more readable, like when manually downloaded: config-OPNsense.lgpug.intern-20260707135038.xml

Thank you!
Title: Re: (os-sftp-backup) Backup-Files get Unix-Timestamp
Post by: cookiemonster on July 07, 2026, 05:03:39 PM
Wrong domain? It comes from your settings: System | Settings | General
So you need to set the correct domain there and the config will adapt. As for the unix timestamp I'm sure there was a discussion about it before on the forum. It must habe been agreed to leave for a reason. Of course finding the conversion from unix epoch is easy but we all know that.
Title: Re: (os-sftp-backup) Backup-Files get Unix-Timestamp
Post by: SchengFui on July 08, 2026, 10:12:50 AM
Hello Cookiemonster,

thank you for your reply!
Title: Re: (os-sftp-backup) Backup-Files get Unix-Timestamp
Post by: SchengFui on July 10, 2026, 12:32:56 PM
hi there,

for me sorting files descending with unix epoch in filename somtimes differs from sorting by change date. (i have to sort by change date rather than by filename to get correct result).

What am i doing wrong?
Title: Re: (os-sftp-backup) Backup-Files get Unix-Timestamp
Post by: cookiemonster on July 10, 2026, 02:10:24 PM
It would be for anyone. You're not wrong.
The system is unix-like so it has a date function. If you type "date" without the quotes, it'll present the human-readable date and time.
You could write some script to append it or something like that.
Let me see if I can find the previous conversation on this forum about it.
p.s. the download will also have a human timestamp of the downloaded file on the receiving system, which could also be useful.
Title: Re: (os-sftp-backup) Backup-Files get Unix-Timestamp
Post by: cookiemonster on July 10, 2026, 05:40:06 PM
I couldn't find the conversation on this forum in my mind.
So in the meantime I'll still suggest either testing the available api or do this unix-to-human change/append to the file, either before sending or at the destination. Sure both have pros and cons.
Title: Re: (os-sftp-backup) Backup-Files get Unix-Timestamp
Post by: SchengFui on July 13, 2026, 04:15:59 PM
Hello Cookiemonster,

thank you for your reply!

Right now i'm using the human timestamp of the downloaded file on the receiving system as a workaround and i can live with that.

Compared to the timestamp when manual downloading the config i thought this was some kind of a bug.

I think we can close this topic.

again, thank you.